@php $cartCount = $cartCount ?? \App\Services\ThemeCartService::count(); $brandName = strtoupper($themeBrand['name'] ?? \App\Services\ThemeProfileService::brandName()); $headerLogo = !empty($setting->logo) ? $setting->logo : ($setting->dark_logo ?? null); $menuItems = \App\Services\ThemeMenuService::items('panjabi'); $collections = \App\Models\Category::whereNull('parent_id')->where('status', 1) ->where(fn ($q) => \App\Services\ThemeCatalogService::applyThemeScope($q)) ->orderBy('sort_order')->get(); $signInUrl = Route::has('frontend.login') ? route('frontend.login') : (Route::has('login') ? route('login') : null); @endphp
Menu
@foreach($menuItems as $item) {{ $item['label'] }} @if(!empty($item['children'])) @foreach($item['children'] as $child) {{ $child['label'] }} @endforeach @endif @endforeach @foreach($collections as $col) {{ $col->name }} @endforeach