{{-- Header --}}
Booking & Monitor Antrean Klinik Pantau antrean berjalan dan ambil nomor antrean Anda.
{{-- Filter untuk Monitor --}}
Semua Dokter @foreach (\App\Models\Doctor::all() as $doc) {{ $doc->name }} @endforeach
{{-- MONITOR ANTREAN SEKARANG --}}

Dipanggil Sekarang

{{ $currentCalling ? $currentCalling->doctor->name : 'Monitor Antrean' }}

{{ $currentCalling ? $currentCalling->serviceCategory->name : 'Silakan pilih dokter untuk monitor spesifik' }}

{{-- ID: calling-number untuk dideteksi script --}}
{{ $currentCalling ? str_pad($currentCalling->queue_number, 2, '0', STR_PAD_LEFT) : '--' }}
@if ($currentCalling)

Nama Pasien

{{-- ID: calling-name untuk dibaca script --}}

{{ Str::limit($currentCalling->patient->name, 20) }}

@else

Belum ada pemanggilan

@endif
{{-- Sisi Kiri: Form Booking --}}
Buat Janji Temu Lengkapi data di bawah ini.
Pilih Poli... @foreach ($categories as $cat) {{ $cat->name }} @endforeach Pilih Dokter... @foreach ($doctors as $doc) {{ $doc->name }} @endforeach Ambil Antrean
{{-- Sisi Kanan: Daftar Antrean Saya --}}
Riwayat Antrean Saya Daftar antrean Anda yang aktif maupun yang sudah selesai.
No. Antre Tanggal Status Keluhan Singkat Aksi @forelse ($myAppointments as $app) #{{ $app->queue_number }} {{ $app->appointment_date->translatedFormat('d F Y') }} @php $statusConfig = match ($app->status) { 'waiting' => ['color' => 'yellow', 'label' => 'Menunggu'], 'calling' => ['color' => 'blue', 'label' => 'Dipanggil'], 'finished' => ['color' => 'green', 'label' => 'Selesai'], 'cancelled' => ['color' => 'red', 'label' => 'Batal'], default => ['color' => 'zinc', 'label' => $app->status], }; @endphp {{ strtoupper($statusConfig['label']) }} {{ Str::limit($app->notes, 30) }} @empty Belum ada data antrean. @endforelse
{{-- MODAL KARTU ANTREAN (Tetap sama) --}} @if ($selectedAppointment)
{{ $site->name ?? 'KLINIK' }} Bukti Antrean Digital
Nomor Antrean
{{ str_pad($selectedAppointment->queue_number, 3, '0', STR_PAD_LEFT) }}
Tutup
@endif
{{-- SCRIPT SUARA PANGGILAN --}}