{{-- Optional: Add meta description and keywords if this layout is used for pages that need them --}} {{-- --}} {{-- --}} @if(setting('site_favicon')) @else {{-- Optional: Add a default favicon link here if you have one in public/ --}} @endif @vite(['resources/css/app.css', 'resources/js/app.js']) @livewireStyles @stack('styles') {{-- Added for page-specific styles --}} {{-- Removed separate script block for dark mode, handled by x-init --}} @if(session()->has('original_admin_id'))
You are currently logged in as {{ Auth::user()->name }} (Impersonating). Return to Admin ({{ session('original_admin_name') }})
@endif {{-- Main layout container --}} {{-- Added flex and h-screen to make the sidebar and main content take full height --}}
@livewire('navigation-menu') {{-- Content area below top nav, split into sidebar and main content --}}
@include('layouts.partials.user-sidebar') {{-- We will create this file next --}} {{-- flex-1 makes it take up the remaining horizontal space --}}
@if (isset($header)) {{-- Sticky header within the main content area. sm:top-auto makes it sticky only on small screens if top nav is also sticky. --}}
{{-- max-w-full ensures it fills the available width within the main content area --}}
{{ $header }}
@endif {{-- sm:ml-64 pushes content right on desktop when sidebar (assumed width-64) is visible --}}
@include('layouts.partials.flash-messages') {{-- Include flash messages --}} @yield('content') {{ $slot ?? '' }} {{-- Use $slot for Jetstream/Livewire pages, fallback to @yield('content') --}}
@stack('modals') @stack('scripts') {{-- Added for page-specific scripts like the chat widget --}} @livewireScripts