Loheide-eu-mitarbeiterplatt.../resources/views/app.blade.php
Friederich Loheide b967c16b6d
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Failing after 8m49s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 8m47s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 8m40s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 9m24s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 11m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 12m4s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 10m37s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 45s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m12s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 10m41s
Einfache Ansicht für Klienten (0.57.0)
Rollen-Schalter simple_ui: größere Schrift, Leichte Sprache automatisch,
Startseite mit großen Kacheln; Hinweis in „Was sieht wer?“.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-30 16:34:14 +00:00

47 lines
2.6 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@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
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" @class(['dark' => $theme === 'dark']) data-theme="{{ $theme }}" data-ui="{{ $branding->interface() }}" @if (auth()->user()?->usesSimpleUi()) data-simple @endif>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="{{ $branding->primaryColor() }}">
<title inertia>{{ $branding->portalName() }}</title>
<link rel="icon" href="{{ $branding->faviconUrl() }}">
@if ($branding->appleTouchIconUrl())
<link rel="apple-touch-icon" href="{{ $branding->appleTouchIconUrl() }}">
@endif
<link rel="manifest" href="/manifest.webmanifest">
@if ($theme === 'system')
{{-- Dunkles Systemdesign vor dem ersten Zeichnen übernehmen – kein helles Aufblitzen. --}}
<script>if (matchMedia('(prefers-color-scheme: dark)').matches) document.documentElement.classList.add('dark');</script>
@endif
{{-- Plugin-SDK: Vue, Inertia und @inhaus/ui für separat installierte Plugins (vor jedem Modul-Skript) --}}
<script type="importmap">@json(\App\Plugins\PluginAssets::importMap(), JSON_UNESCAPED_SLASHES | JSON_HEX_TAG | JSON_HEX_AMP)</script>
@php($pluginAssets = app(\App\Plugins\PluginAssets::class)->forFrontend())
<script>window.__inhausPlugins = @json($pluginAssets, JSON_UNESCAPED_SLASHES | JSON_HEX_TAG | JSON_HEX_AMP);</script>
@vite('resources/js/app.js')
@foreach ($pluginAssets as $pluginAsset)
@foreach ($pluginAsset['css'] as $css)
<link rel="stylesheet" href="{{ $pluginAsset['base'].$css }}">
@endforeach
@endforeach
{{-- Erscheinungsbild nach dem Portal-CSS, damit seine Variablen gelten. --}}
@if ($stylesheet = $branding->stylesheetUrl())
<link rel="stylesheet" href="{{ $stylesheet }}">
@else
<style>{!! $branding->inlineCss() !!}</style>
@endif
@inertiaHead
</head>
<body>
@inertia
</body>
</html>