{{-- 1. CONTROL BAR --}}
{{-- Month Navigator --}}
{{ $viewDate->format('F Y') }}
{{-- Jump to Today --}}
{{-- Course Filter --}} {{-- Stats Summary --}}
Total Seats {{ $stats['total'] }}
Available {{ $stats['available'] }}
{{-- 2. LOADING STATE --}}
{{-- 3. BATCH GRID --}}
@forelse($batches as $batch) @php $percent = $batch->percent_full ?? 0; $avail = $batch->available_seats; // Color Logic if ($avail == 0) { $statusColor = 'status-full'; $textColor = 'text-danger'; $btnClass = 'btn-light disabled'; $btnText = 'Sold Out'; } elseif ($avail <= 5) { $statusColor = 'status-fast'; $textColor = 'text-warning'; $btnClass = 'btn-warning text-white'; $btnText = 'Book Now'; } else { $statusColor = 'status-open'; $textColor = 'text-success'; $btnClass = 'btn-primary'; $btnText = 'Book Now'; } @endphp
{{ $batch->batch_code }}
{{ $batch->course->name }}
{{ $batch->start_date->format('d') }} {{ $batch->start_date->format('M') }}
{{ $avail }} Seats Left
{{ $batch->booked_seats }} Booked
{{-- Progress Bar --}}
@empty
No batches found for {{ $viewDate->format('F Y') }}

Try changing the month or creating a new batch.

Create New Batch
@endforelse