@php $activeTheme = (string) config('fronted.active_theme', 'theme1'); $availableThemes = (array) config('fronted.themes', []); $activeTheme = array_key_exists($activeTheme, $availableThemes) ? $activeTheme : 'theme1'; $activeThemeEntry = (string) data_get($availableThemes, "{$activeTheme}.entry", "resources/js/{$activeTheme}/app.js"); @endphp ($appearance ?? 'system') == 'dark']) >
@php $frontendBootstrap = function_exists('frontend_theme_bootstrap') ? frontend_theme_bootstrap() : []; $frontendThemeConfig = [ 'name' => data_get($frontendTheme ?? [], 'name', $activeTheme), 'label' => data_get($frontendTheme ?? [], 'label', 'theme1'), 'tone' => data_get($frontendTheme ?? [], 'tone', 'noir'), ]; $frontendBrandTitle = data_get($frontendBootstrap, 'brand.title', config('app.name', 'Captex')); $frontendFavicon = data_get($frontendBootstrap, 'meta.favicon', asset('favicon.ico')); @endphp {{-- Inline script to detect system dark mode preference and apply it immediately --}} {{-- Inline style to set the HTML background color based on our theme in app.css --}} {!! favicon_tags() !!} @includeIf('fronted.partials.site-verification') @includeIf('fronted.partials.tracking') @includeIf('fronted.partials.pwa') @includeIf('fronted.partials.cookie') @includeIf('fronted.partials.custom-script') @fonts @viteReactRefresh @vite(['resources/css/app.css', $activeThemeEntry])