@include('shared.toastr') @php $cms = app(\App\Services\CmsSettingsService::class)->get(); $branding = $cms['branding'] ?? []; $cp = $cms['client_panel'] ?? []; $themeManager = app(\App\Services\ThemeManager::class); $selectedTheme = $themeManager->active(); $themePalette = $themeManager->palette(); // The installer-selected theme supplies the client portal defaults. An // administrator can opt into the older CMS panel palette explicitly. $useCustomPanelPalette = ($cp['use_custom_palette'] ?? 'no') === 'yes'; $panelValue = static fn (string $key, mixed $themeDefault) => $useCustomPanelPalette ? ($cp[$key] ?? $themeDefault) : $themeDefault; @endphp