@php // ───────────────────────────────────────────────────────────────────────────── // CUSTOMER PORTAL THEME ENGINE // Controlled ONLY by portal_theme_preset — completely independent from main site // ───────────────────────────────────────────────────────────────────────────── $portalPreset = siteUrlSettings('portal_theme_preset') ?? 'indigo'; // Each preset carries its own complete color set $presetMap = [ 'indigo' => ['primary' => '#6366f1', 'accent' => '#a78bfa', 'dark' => false], 'emerald' => ['primary' => '#10b981', 'accent' => '#34d399', 'dark' => false], 'blue' => ['primary' => '#3b82f6', 'accent' => '#38bdf8', 'dark' => false], 'orange' => ['primary' => '#f97316', 'accent' => '#fb923c', 'dark' => false], 'dark' => ['primary' => '#64748b', 'accent' => '#94a3b8', 'dark' => true], ]; if ($portalPreset === 'custom') { $preset = [ 'primary' => siteUrlSettings('portal_primary_color') ?? '#6366f1', 'accent' => siteUrlSettings('portal_accent_color') ?? '#a78bfa', 'dark' => false, ]; } else { $preset = $presetMap[$portalPreset] ?? $presetMap['indigo']; } $adminSettings = [ 'portal_theme_preset' => $portalPreset, 'theme_preset' => 'fintech', // keep portal dynamic CSS active 'theme_name' => 'ocean_blue', 'theme_primary_color' => $preset['primary'], 'theme_accent_color' => $preset['accent'], 'theme_card_style' => siteUrlSettings('theme_card_style') ?? 'glass', 'theme_border_radius' => siteUrlSettings('theme_border_radius') ?? '16px', 'theme_font_size' => siteUrlSettings('theme_font_size') ?? 'medium', 'theme_font_family' => siteUrlSettings('theme_font_family') ?? 'Outfit', 'theme_nav_style' => siteUrlSettings('theme_nav_style') ?? 'sidebar', 'theme_widget_style' => siteUrlSettings('theme_widget_style') ?? 'glass', 'theme_mode' => siteUrlSettings('theme_mode') ?? 'dark', 'theme_transparency' => siteUrlSettings('theme_transparency') ?? '0.5', 'theme_blur' => siteUrlSettings('theme_blur') ?? '16px', 'theme_animations' => siteUrlSettings('theme_animations') ?? '1.0', 'theme_gradient_intensity' => siteUrlSettings('theme_gradient_intensity') ?? '0.7', 'theme_updated_at' => siteUrlSettings('theme_updated_at') ?? '0', ]; @endphp