@php $doctorName = $doctor['full_name'] ?? 'Doctor'; $displayDoctorName = str_starts_with($doctorName, 'Dr.') ? $doctorName : 'Dr. ' . $doctorName; $roomName = $room['room_name'] ?? 'Dental Room 1'; $q = $nextQueue ?? null; $patient = $q['patient'] ?? []; $appt = $q['appointment'] ?? []; $patientName = $patient['full_name'] ?? 'No waiting patient'; $patientId = $patient['upsi_id'] ?? '-'; $faculty = $patient['faculty'] ?? '-'; $treatment = $appt['reason'] ?? 'Dental Treatment'; $time = !empty($appt['appointment_time']) ? date('g:i A', strtotime($appt['appointment_time'])) : '-'; @endphp Call Next Patient
{{ now()->format('D, d M Y') }}
🔔
@if(session('success'))
{{ session('success') }}
@endif

Call Next Patient

{{ $roomName }} · Queue Announcement

@if($q)
Now Calling

{{ $q['queue_number'] ?? '-' }}

{{ $patientName }}

{{ $treatment }} · {{ $roomName }}

Patient Details

Patient Name {{ $patientName }}
Patient ID {{ $patientId }}
Faculty {{ $faculty }}
Treatment {{ $treatment }}
Room {{ $roomName }}
Scheduled Time {{ $time }}
@csrf
@csrf
← Back to Queue
@else
No waiting patient available for this room.
@endif