@vite(['resources/css/app.css', 'resources/js/app.js'])
{{-- ── LEFT SIDEBAR ── --}} @include('layouts.navigation') {{-- ── MOBILE SIDEBAR BACKDROP ── --}}
{{-- ── MAIN AREA ── --}}
{{-- ── TOPBAR ── --}}
{{-- Desktop: sidebar toggle --}}
{{-- Mobile: hamburger --}}
{{-- Page heading (slot) --}} @php $routeName = request()->route()?->getName() ?? ''; $pageName = match(true) { str_starts_with($routeName, 'live-orders') => 'Live Orders', str_starts_with($routeName, 'reports') => 'Reports', str_starts_with($routeName, 'customers') => 'Customers', str_starts_with($routeName, 'loyalty') => 'Loyalty', str_starts_with($routeName, 'stock') => 'Stock', str_starts_with($routeName, 'staff') => 'Staff', str_starts_with($routeName, 'brands') => 'Brands', str_starts_with($routeName, 'branches') => 'Branches', str_starts_with($routeName, 'profile') => 'Profile', default => 'Dashboard', }; @endphp
{{ $pageName }}
{{-- User dropdown --}}
{{ strtoupper(substr(Auth::user()->name, 0, 2)) }}
{{ Auth::user()->name }}
Signed in as
{{ Auth::user()->email }}
{{ __('Profile') }}
@csrf
{{ __('Log Out') }}
{{-- /app-topbar --}} {{-- ── PAGE HEADER (from page $header slot) ── --}} @isset($header)
{{ $header }}
@endisset {{-- ── PAGE CONTENT ── --}}
{{ $slot }}
{{-- /app-main-wrap --}}
{{-- /app-layout --}} {{-- ── MOBILE BOTTOM NAV HIDDEN (REMOVED) ── --}} @stack('scripts')