@php $settings = $settings ?? \App\Models\StoreSetting::getSettings(); $activeTheme = $settings->getActiveTheme(); $mainMenus = $mainMenus ?? \App\Models\StoreNavMenu::with(['children', 'page', 'category'])->mainMenus()->get(); $bgColor = $settings->bg_color ?: ($activeTheme['bg_color'] ?? '#0a0f1d'); $primaryColor = $settings->primary_color ?: ($activeTheme['primary_color'] ?? '#6366f1'); $accentColor = $settings->accent_color ?: ($activeTheme['accent_color'] ?? '#06b6d4'); $textColor = $settings->text_color ?: ($activeTheme['text_color'] ?? '#f8fafc'); $themeKey = $settings->theme_template ?: 'dark_tech'; $isLight = ($themeKey === 'clean_retail'); $isRoyal = ($themeKey === 'royal_wholesale'); @endphp