@php $locale = request()->attributes->get('active_locale', app()->getLocale()); $htmlDir = request()->attributes->get('is_rtl', false) ? 'rtl' : 'ltr'; @endphp @php // Guarded: the database may be unavailable during first-run install. try { $serverTheme = auth()->user()?->theme ?? null; } catch (\Throwable) { $serverTheme = null; } @endphp {{-- config('app.name') is overridden at boot from the admin-configured brand name (see BrandingServiceProvider), so this needs no direct SystemSetting lookup. --}} {{ config('app.name') }} @php try { $faviconPath = \App\Models\SystemSetting::get('app_favicon_path'); // Honor the disk the favicon was actually saved to (may be a cloud // provider). Hardcoding 'public' produced a wrong/404 URL whenever // the active storage disk was not the local public one. $faviconDisk = \App\Models\SystemSetting::get('app_favicon_disk', 'public'); if ($faviconPath) { app(\App\Services\StorageManager::class)->ensureDiskReady($faviconDisk); $faviconUrl = \Illuminate\Support\Facades\Storage::disk($faviconDisk)->url($faviconPath); } else { $faviconUrl = null; } } catch (\Throwable) { $faviconUrl = null; } @endphp @if($faviconUrl) @else {{-- Fallback brand icon: SVG for modern browsers, .ico for legacy, PNG apple-touch for iOS home-screen. See public/whatsmine-icon.svg. --}} @endif @php // Branding: resolved here rather than in a view composer so the @endif @inertiaHead @inertia