{{-- Dark is the shipping theme; the React SPA's semantic tokens key off this class (assets/tailwind.css). --}}
{{ config('app.name', 'Pterodactyl') }}
@section('meta')
{{-- An extension that registers one of these elements (registerHeadTags)
replaces the panel's default instead of adding a second one. --}}
@unless ($extensionHead->replaces('link', 'apple-touch-icon'))
@endunless
@unless ($extensionHead->replaces('link', 'icon'))
@endunless
@unless ($extensionHead->replaces('link', 'manifest'))
@endunless
@unless ($extensionHead->replaces('link', 'mask-icon'))
@endunless
@unless ($extensionHead->replaces('link', 'shortcut icon'))
@endunless
@unless ($extensionHead->replaces('meta', 'msapplication-config'))
@endunless
{{-- data-theme-token: the SPA keeps this tag equal to the --theme-color token.
A theme-color registered by an extension is left exactly as rendered. --}}
@unless ($extensionHead->replaces('meta', 'theme-color'))
@endunless
{{ $extensionHead }}
@show
@section('user-data')
@if(!is_null(Auth::user()))
@endif
@if(!empty($siteConfiguration))
@endif
@show
@yield('assets')
{!! $asset->cssImports('resources/scripts/index.tsx') !!}
{{-- Applied theme (p:theme:apply): token overrides linked after the app CSS so
the theme's :root/.dark declarations win the cascade at equal specificity. --}}
@if (file_exists(public_path('assets/theme.css')))
@endif
@section('content')
@yield('above-container')
@yield('container')
@yield('below-container')
@show
@section('scripts')
{{-- The import map must precede any module script: it lets runtime-loaded
extension bundles share the panel's React/TanStack/SDK module instances. --}}
{!! $asset->importMap() !!}
{!! $asset->js('resources/scripts/index.tsx') !!}
@show