@can('appointments.create') Book appointment @endcan
@if (request()->hasAny(['q', 'doctor'])) Clear @endif
@if ($entries->isEmpty())
@else
@foreach ($entries as $entry) @endforeach
Clinic date Patient Consultant Type Priority Actions
{{ $entry->appointment_date?->format('D, d M Y') }}
{{ $entry->slot_time ? substr((string) $entry->slot_time, 0, 5) : 'Any slot' }} · {{ $entry->department?->name ?? '—' }}
{{ $entry->patient?->full_name ?? '—' }}
{{ $entry->patient?->medical_record_number }}
{{ $entry->doctor?->name ?? 'Department pool' }}
View @can('appointments.manage-waitlist')
@csrf @method('PATCH')
@endcan
@if ($entries->hasPages())
Showing {{ $entries->firstItem() }}–{{ $entries->lastItem() }} of {{ $entries->total() }} {{ $entries->links() }}
@endif @endif

Consultants with upcoming bookings. A place can only be given on a day that still has capacity or with the overbooking privilege.

@if ($openDoctors->isEmpty())

No upcoming lists are open.

@else
@foreach ($openDoctors as $doctorId => $days)
{{ $days->first()->doctor?->name ?? 'Department pool' }}
@endforeach
@endif
  • A waitlisted booking holds its clinic day and consultant but has no token.
  • Giving it a place issues the next token in that consultant's sequence for the day.
  • If the day is still full, only someone holding the overbooking privilege can seat it.