@php $__sn = \App\Models\SystemSetting::get('site_name', config('app.name')); $__fav = \App\Models\SystemSetting::get('favicon'); $__logoL = \App\Models\SystemSetting::get('logo_light'); $__logoD = \App\Models\SystemSetting::get('logo_dark'); @endphp @yield('title', $__sn . ' – AI-Powered Email Automation & CRM SaaS') @if($__fav) @else @endif {{-- PWA (conditional on admin setting) --}} @php $pwaEnabled = \App\Models\SystemSetting::get('pwa_enabled', 'false') === 'true'; @endphp @if($pwaEnabled) @php $pwaIcon = \App\Models\SystemSetting::get('pwa_icon'); @endphp @if($pwaIcon) @endif @endif @vite(['resources/css/app.css', 'resources/css/landing.css', 'resources/js/app.js']) @livewireStyles @stack('styles') {!! \App\Models\SystemSetting::get('head_code', '') !!} {{-- ═══ NAVIGATION BAR (same as landing page) ═══ --}} {{-- Page Content (padded for fixed nav) --}}
@yield('content')
{{-- ═══ FOOTER (fully dynamic from admin) ═══ --}} @php $__fc = \App\Models\Page::where('type', 'footer')->first()?->content ?? []; @endphp {{-- PWA Service Worker Registration & Install Prompt --}} @if($pwaEnabled ?? false) @include('partials.pwa-install-prompt') @endif {!! \App\Models\SystemSetting::get('footer_code', '') !!} @stack('scripts') @livewireScripts