@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