@include('shared.toastr') @php try { $cms = function_exists('cms') ? (cms() ?? []) : app(\App\Services\CmsSettingsService::class)->get(); } catch (\Throwable $e) { $cms = []; } $siteName = data_get($cms,'branding.site_name', site_brand_name()); $favicon = data_get($cms,'branding.favicon_url'); $a = data_get($cms,'auth',[]); try { $themeManager = app(\App\Services\ThemeManager::class); $activeTheme = $themeManager->active(); $themePalette = $themeManager->palette(); } catch (\Throwable $e) { $activeTheme = [ 'slug' => 'fortradex', 'auth_variant' => 'supplied-fortradex', ]; $themePalette = [ 'primary' => '#0B5ED7', 'secondary' => '#071A2E', 'accent' => '#F2C94C', 'surface' => '#0D243D', ]; } $authVariant = $activeTheme['auth_variant'] ?? 'supplied-fortradex'; $authStyleMode = data_get($a, 'style_mode', 'theme'); $themeAuth = (array) ($activeTheme['auth'] ?? []); $authColors = $authStyleMode === 'custom' ? (array) $a : $themeAuth; // Authentication artwork is rendered as abstract market geometry only. // The CMS switch remains functional, but portrait/people images are never loaded. $showAuthArtwork = data_get($a, 'show_artwork', 'yes') === 'yes'; $authArtwork = null; $toUrl = function($p){ if(!$p) return null; if(\Illuminate\Support\Str::startsWith($p, ['http://','https://','/'])) return $p; return asset($p); }; @endphp