@php $role = session('login_role'); $rolePath = $role === 'staff' ? 'staff' : 'student'; $portal = $role === 'staff' ? 'STAFF PORTAL' : 'STUDENT PORTAL'; $date = session('booking_appointment_date'); $type = session('booking_appointment_type') ?? 'Dental Check-Up'; $morningSlots = collect($slots ?? [])->where('session', 'morning')->values(); $afternoonSlots = collect($slots ?? [])->where('session', 'afternoon')->values(); @endphp Select Time Slot - PKU Dental

Book Appointment — Step 3 of 4

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

Select a Time Slot

{{ $date ? date('l, d M Y', strtotime($date)) : '-' }} · {{ $type }}

@csrf

Morning Session

@if(count($morningSlots) > 0)
@foreach($morningSlots as $slot) @php $realSlot = $slot['available_slot'] ?? null; $available = $realSlot !== null && !($slot['is_full'] ?? true); $slotTime = $slot['slot_time'] ?? null; $slotSession = $slot['session'] ?? 'morning'; @endphp @endforeach
@else
No morning slots available.
@endif

Afternoon Session

@if(count($afternoonSlots) > 0)
@foreach($afternoonSlots as $slot) @php $realSlot = $slot['available_slot'] ?? null; $available = $realSlot !== null && !($slot['is_full'] ?? true); $slotTime = $slot['slot_time'] ?? null; $slotSession = $slot['session'] ?? 'afternoon'; @endphp @endforeach
@else
No afternoon slots available.
@endif
← Back

Booking Summary

Type{{ $type }}
Date{{ $date ? date('D, d M Y', strtotime($date)) : '-' }}
Time-
RoomAuto assigned