@php use App\Models\Setting; $settings = Setting::all(); $primaryColor = $settings->where('key', 'primary_color')->first()?->value ?? '#4F46E5'; $secondaryColor = $settings->where('key', 'secondary_color')->first()?->value ?? '#64748B'; $loginBg1 = $settings->where('key', 'login_bg_color1')->first()?->value ?? '#4F46E5'; $loginBg2 = $settings->where('key', 'login_bg_color2')->first()?->value ?? '#7C3AED'; $appName = $settings->where('key', 'app_name')->first()?->value ?? 'SIAKAD'; $appDesc = $settings->where('key', 'app_description')->first()?->value ?? 'Sistem Informasi Akademik'; $showLogo = ($settings->where('key', 'login_show_logo')->first()?->value ?? '1') === '1'; $logoFile = $settings->where('key', 'logo')->first()?->value; $logoPath = $logoFile && file_exists(public_path('img/' . $logoFile)) ? asset('img/' . $logoFile) : null; $faviconFile = $settings->where('key', 'favicon')->first()?->value; $faviconPath = $faviconFile && file_exists(public_path('img/' . $faviconFile)) ? asset('img/' . $faviconFile) : null; $faviconUrl = $faviconPath ?: asset('favicon.ico'); @endphp @yield('title', 'Login - ' . $appName) @stack('styles')