@php $cartCount = $cartCount ?? \App\Services\ThemeCartService::count(); $headerLogo = !empty($setting->logo) ? $setting->logo : ($setting->dark_logo ?? null); $brandName = $themeBrand['name'] ?? \App\Services\ThemeProfileService::brandName(); $menuItems = \App\Services\ThemeMenuService::items('smartbazar'); $navCategories = \App\Models\Category::withCount(['products as products_count' => fn ($q) => $q->where('status', 1)]) ->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
@if($setting->phone ?? null) {{ $setting->phone }} @endif
Track Order @if($signInUrl) Sign In @endif Cart {{ $cartCount }}
Menu
@foreach($menuItems as $item) {{ $item['label'] }} @endforeach @foreach($navCategories as $cat) {{ $cat->name }} @endforeach
Home Cart@if($cartCount > 0){{ $cartCount }}@endif @if($signInUrl) Account @else Shop @endif