@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
{{ __('Sign in to your account') }}