@vite(['resources/css/app.css', 'resources/js/app.js']) @livewireStyles
{{-- Sidebar component --}} {{-- Main area --}}
{{-- Top bar --}}
{{-- Page title --}}

@isset($pageTitle){{ $pageTitle }}@else{{ isset($header) ? strip_tags((string)$header) : 'Dashboard' }}@endisset

{{-- Shortcut links --}} {{-- Right cluster --}}
{{-- + New dropdown --}} {{-- Low stock bell --}} @php $lowStockCount = \App\Models\Product::forCurrentOrganization() ->whereRaw('stock_quantity <= low_stock_threshold') ->count(); @endphp @if($lowStockCount > 0) @endif
{{ now()->format('d M Y') }}
{{ strtoupper(substr(Auth::user()->name ?? 'U', 0, 1)) }}
{{ Auth::user()->name ?? '' }}
{{-- Flash messages --}}
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
{{-- Page slot --}}
@isset($header){{-- header slot consumed, not rendered in content --}}@endisset {{ $slot }}
{{-- /app-main --}}
{{-- /app-shell --}} @stack('modals') @livewireScripts @stack('scripts')