@php $branding = app(\App\Support\Branding::class); // Erzwungene Darstellung aus dem Erscheinungsbild, sonst die Wahl der Person; ?modus= nur für die Vorschau. $theme = $branding->forcedColorMode() ?? (auth()->user()?->theme ?? 'system'); if ($branding->isPreviewing() && in_array(request()->query('modus'), ['hell', 'dunkel'], true)) { $theme = request()->query('modus') === 'dunkel' ? 'dark' : 'light'; } @endphp $theme === 'dark']) data-theme="{{ $theme }}"> {{ $branding->portalName() }} @if ($branding->appleTouchIconUrl()) @endif @if ($theme === 'system') {{-- Dunkles Systemdesign vor dem ersten Zeichnen übernehmen – kein helles Aufblitzen. --}} @endif @vite('resources/js/app.js') {{-- Erscheinungsbild nach dem Portal-CSS, damit seine Variablen gelten. --}} @if ($stylesheet = $branding->stylesheetUrl()) @else @endif @inertiaHead @inertia