@php $fontFamily = \App\Models\Setting::get('admin_font_family', 'Inter'); $fontWeights = \App\Models\Setting::get('admin_font_weights', '400,500,600,700'); $fontWeightsUrl = preg_replace('/\s*,\s*/', ';', $fontWeights); $fontFamilyUrl = str_replace(' ', '+', $fontFamily); $googleFontsUrl = "https://fonts.googleapis.com/css2?family={$fontFamilyUrl}:wght@{$fontWeightsUrl}&display=swap"; try { $googleEnabledRaw = \App\Models\Setting::get('google_enabled', false); $googleEnabled = in_array($googleEnabledRaw, [1, '1', true, 'true', 'on', 'yes'], true); } catch (\Throwable $e) { $googleEnabled = false; } try { $activeLocales = \App\Models\TranslationLocale::query() ->where('is_active', true) ->orderBy('code') ->get(['code', 'name']); } catch (\Throwable $e) { $activeLocales = collect(); } @endphp @vite(['resources/css/app.css', 'resources/js/app.js']) @php try { $brandColor = \App\Models\Setting::get('brand_color', '#3b82f6'); } catch (\Throwable $e) { $brandColor = '#3b82f6'; } $brandColor = is_string($brandColor) ? trim($brandColor) : '#3b82f6'; if ($brandColor === '' || !preg_match('/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/', $brandColor)) { $brandColor = '#3b82f6'; } $brandHex = ltrim($brandColor, '#'); if (strlen($brandHex) === 3) { $brandHex = $brandHex[0] . $brandHex[0] . $brandHex[1] . $brandHex[1] . $brandHex[2] . $brandHex[2]; } $brandR = hexdec(substr($brandHex, 0, 2)); $brandG = hexdec(substr($brandHex, 2, 2)); $brandB = hexdec(substr($brandHex, 4, 2)); @endphp

{{ __('Customer Login') }}

{{ __('Sign in to your account') }}

@csrf @if(session('error'))

{{ session('error') }}

@endif @if(session('success'))

{{ session('success') }}

@endif @if($errors->any())

{{ __('There were errors with your submission') }}

    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@if($googleEnabled)
{{ __('OR') }}
@endif
@if(isset($activeLocales) && $activeLocales instanceof \Illuminate\Support\Collection && $activeLocales->count() > 0)
@foreach($activeLocales as $loc) @php $locCode = is_string($loc->code ?? null) ? trim((string) $loc->code) : ''; $locName = is_string($loc->name ?? null) ? trim((string) $loc->name) : ''; $locLabel = $locName !== '' ? $locName : $locCode; @endphp @if($locCode !== '')
@csrf
@endif @endforeach
@endif