@stack('json-ld') @vite(['resources/css/app.css', 'resources/js/app.js']) @php $navCategories = \App\Models\Category::with(['products' => function($q) { $q->where('status', 'available')->take(4); }])->get(); $topBannerActive = \App\Models\Setting::where('key', 'top_banner_active')->value('value') ?? '1'; $topBannerText = \App\Models\Setting::where('key', 'top_banner_text')->value('value') ?? 'Get 10% off your first order! Use code: WELCOME10'; @endphp @if($topBannerActive == '1' && !empty($topBannerText))
{{ $topBannerText }}
@endif
@isset($slot) {{ $slot }} @else @yield('content') @endisset
@livewireScripts