23 lines
1.1 KiB
PHP
23 lines
1.1 KiB
PHP
@props(['title' => 'TrafficPumper'])
|
|||
|
|
@php($navigation = app(\App\Support\PortalNavigationContext::class)->resolve(request()))
|
||
|
|
<!doctype html>
|
||
|
|
<html lang="{{ app()->getLocale() }}" data-bs-theme="light">
|
||
|
|
<head>
|
||
|
|
<meta charset="utf-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
|
<meta name="color-scheme" content="light dark">
|
||
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||
|
|
@if($navigation['kind'] === 'web')<meta name="trafficpumper-account-theme" content="{{ $navigation['user']->setting?->theme ?? 'system' }}"><meta name="trafficpumper-reduced-motion" content="{{ $navigation['user']->setting?->reduced_motion ? 'true' : 'false' }}">@endif
|
||
|
|
<title>{{ $title }}</title>
|
||
|
|
<script>{!! file_get_contents(resource_path('js/theme-manager.js')) !!}</script>
|
||
|
|
@livewireStyles
|
||
|
|
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<x-public-topbar :context="$navigation" />
|
||
|
|
@if (session('status'))<div class="container pt-3"><div class="alert alert-success">{{ session('status') }}</div></div>@endif
|
||
|
|
{{ $slot }}
|
||
|
|
@livewireScripts
|
||
|
|
</body>
|
||
|
|
</html>
|