@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') --}}