@php $role = session('login_role'); $rolePath = $role === 'staff' ? 'staff' : 'student'; $portal = $role === 'staff' ? 'STAFF PORTAL' : 'STUDENT PORTAL'; $displayRole = $role === 'staff' ? 'Staff' : 'Student'; $userName = $profile['full_name'] ?? session('login_name') ?? 'User'; @endphp Walk-In Availability

Walk-In Availability

{{ now()->format('D, d M Y') }}

Today's Walk-In Availability

Walk-in service is shown for today only. No booking is required. Please come directly to PKU Dental during the available time.

Available slots are updated by PKU Dental on the same day.
@if(count($walkInSlots ?? []) > 0)
@foreach($walkInSlots as $slot) @php $remaining = (int)($slot['available'] ?? ((int)($slot['capacity'] ?? 0) - (int)($slot['booked_count'] ?? ($slot['used_count'] ?? 0)))); $isFull = $remaining <= 0; @endphp

Dental Room {{ $slot['room_number'] ?? '-' }}

{{ !empty($slot['start_time']) ? date('g:i A', strtotime($slot['start_time'])) : '-' }} - {{ !empty($slot['end_time']) ? date('g:i A', strtotime($slot['end_time'])) : '-' }}
Remaining Slots {{ max(0, $remaining) }}
Total Capacity {{ $slot['capacity'] ?? 0 }}
@if($isFull) Full @else Available @endif
@endforeach
@else
No walk-in slots are available today.
@endif