{{-- PWA block — manifest link + theme color + apple-mobile-web-app meta tags. Renders only when admin has enabled PWA at /admin/settings/pwa. Pulls theme color + icon URLs from system_settings so the chrome (Android URL bar, iOS status bar) matches whatever the admin saved. --}} @php $pwaEnabled = (bool) \App\Models\SystemSetting::get('pwa_enabled', false); if ($pwaEnabled) { $themeColor = (string) \App\Models\SystemSetting::get('pwa_theme_color', '#075E54'); $shortName = (string) \App\Models\SystemSetting::get( 'pwa_short_name', \App\Models\SystemSetting::get('app_name', config('app.name', 'WaDesk')), ); $iconUrl = (string) \App\Models\SystemSetting::get( 'pwa_icon_192', (string) (\App\Support\Brand::faviconUrl() ?? ''), ); } @endphp @if ($pwaEnabled) @if ($iconUrl) @endif @endif