@php
$brandName = trim((string) ($siteSettings['site_name'] ?? ''));
$brandName = $brandName !== '' ? $brandName : config('app.name', 'SnapNest');
$favicon = $siteSettings['favicon'] ?? null;
@endphp
@yield('title', $brandName)
@if ($favicon)
@endif
@vite(['resources/css/app.css', 'resources/css/frontend.css', 'resources/js/app.js'])
@include('partials.extensions-head')
@if(!empty($pwaSettings['enabled']))
@laravelPWA
@endif
@hasSection('hide_header')
@else
@include('components.frontend.header')
@endif
@yield('content')
@hasSection('hide_footer')
@else
@include('components.frontend.footer')
@endif
@include('partials.cookie-consent')
@include('partials.pwa-install-prompt')
@stack('scripts')