@vite(['resources/css/app.css', 'resources/js/admin.js']) @php $user = auth()->user(); $themePreference = $user?->theme_preference; if (! in_array($themePreference, ['light', 'dark', 'auto'], true)) { if ($user?->dark_mode_enabled) { $themePreference = 'dark'; } else { $themePreference = (string) setting('admin_theme_default', 'light'); } } if (! in_array($themePreference, ['light', 'dark', 'auto'], true)) { $themePreference = 'light'; } @endphp
@include('admin.partials.topbar', [ 'heading' => $heading ?? 'Dashboard', 'subheading' => $subheading ?? null, 'quickActions' => $quickActions ?? [], ])
@if(session('status'))
{{ session('status') }}
@endif @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @yield('content') @include('partials.made-by-footer')
@if(!empty($quickActions ?? []))
@endif @include('admin.partials.toast') @include('admin.partials.modal')