41 lines
1.6 KiB
PHP
41 lines
1.6 KiB
PHP
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<title>{{ $title ?? config('app.name') }}</title>
|
|
|
|
<link rel="icon" href="/favicon.ico" sizes="any">
|
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
|
|
|
@include('partials.local-fonts')
|
|
|
|
@vite(['resources/css/portal.css', 'resources/js/app.js'], 'build/portal')
|
|
@livewireStyles
|
|
<link rel="stylesheet" href="{{ asset('vendor/livewire/livewire.css') }}">
|
|
@fluxAppearance
|
|
|
|
{{-- Phase 5 Anti-Flash-Bridge: siehe partials/head.blade.php. Identische
|
|
Cookie-Logik, damit Controller+Blade Admin-Pages denselben Mechanismus
|
|
bekommen wie Volt-Pages. --}}
|
|
<script>
|
|
(function () {
|
|
if (typeof window.Flux === 'undefined') return;
|
|
const writeCookie = () => {
|
|
const applied = document.documentElement.classList.contains('dark') ? 'dark' : 'light';
|
|
document.cookie = 'flux_appearance=' + applied + '; path=/; max-age=31536000; SameSite=Lax';
|
|
};
|
|
const original = window.Flux.applyAppearance;
|
|
window.Flux.applyAppearance = function (appearance) {
|
|
original.call(this, appearance);
|
|
writeCookie();
|
|
};
|
|
writeCookie();
|
|
})();
|
|
</script>
|
|
|
|
<!-- Debug: Asset-Status -->
|
|
<script>
|
|
console.log('Admin Head geladen');
|
|
console.log('Vite Assets:', {{ file_exists(public_path('build/admin/manifest.json')) ? 'true' : 'false' }});
|
|
console.log('Livewire CSS:', {{ file_exists(public_path('vendor/livewire/livewire.css')) ? 'true' : 'false' }});
|
|
</script>
|