{{-- 1. HEADER & ACTIONS --}}

Booking Analytics

Track revenue, enrollments, and status metrics.

Total Bookings
{{ number_format($metrics['total']) }}
Confirmed
{{ number_format($metrics['confirmed']) }}
Pending
{{ number_format($metrics['pending']) }}
Generated Revenue
₹{{ number_format($metrics['revenue']) }}
{{-- 3. SMART FILTER BAR --}}
{{-- 4. DATA TABLE --}}
{{-- Loader Overlay --}}
@forelse($bookings as $booking) @empty @endforelse
Booking Ref Student Details Course Enrolled Amount Status Date
{{ $booking->booking_code }}
{{ $booking->student->name ?? 'Deleted Student' }} {{ $booking->student->phone ?? 'N/A' }}
{{ $booking->course->name ?? 'Deleted Course' }}
{{ $booking->courseBatch->batch_code ?? 'No Batch' }}
₹{{ number_format($booking->total_amount) }} @php $sClass = match ($booking->status) { 'confirmed', 'completed' => 'status-confirmed', 'pending' => 'status-pending', default => 'status-cancelled', }; @endphp {{ ucfirst($booking->status) }}
{{ $booking->created_at->format('d M, Y') }}
{{ $booking->created_at->format('h:i A') }}
No Bookings Found

Try changing your filter dates or parameters.

@if ($bookings->hasPages()) @endif