@php $currentStatus = request()->input('status'); $isAllBookings = request()->routeIs('admin.bookings.index') && is_null($currentStatus); $isSettings = request()->routeIs('admin.settings.*'); $cntAll = \App\Models\Booking::count(); $cntPending = \App\Models\Booking::where('status', 'pending')->count(); $cntConfirmed = \App\Models\Booking::where('status', 'confirmed')->count(); $cntCompleted = \App\Models\Booking::where('status', 'completed')->count(); $cntCancelled = \App\Models\Booking::where('status', 'cancelled')->count(); @endphp

@yield('page-title', 'Dashboard')

@csrf
@if(session('success'))
{{ session('success') }}
@endif @if(session('warning'))
{{ session('warning') }}
@endif @yield('content')