{{ $roomName }} — Waiting Queue
{{ now()->format('l, d F Y') }}
{{ session('success') }}
@endif
@if(session('error')) {{ session('error') }}
@endif
Now Serving
{{ $current['queue_number'] ?? '-' }}
{{ $currentPatient['full_name'] ?? 'No active patient' }} @if($currentAppointment) · {{ $currentAppointment['reason'] ?? 'Dental Treatment' }} @endif
| Queue No. | Patient Name | Patient ID | Treatment | Appt Time | Status | Action |
|---|---|---|---|---|---|---|
| {{ $q['queue_number'] ?? '-' }} | {{ $patient['full_name'] ?? 'Unknown Patient' }} | {{ $patient['upsi_id'] ?? '-' }} | {{ $appt['reason'] ?? 'Dental Treatment' }} | {{ !empty($appt['appointment_time']) ? date('g:i A', strtotime($appt['appointment_time'])) : '-' }} | {{ $statusText }} | @if($status === 'active') @elseif($status === 'waiting') @else View → @endif |
| No patients in queue for today. | ||||||