@php $role = session('login_role'); $rolePath = $role === 'staff' ? 'staff' : 'student'; $portal = $role === 'staff' ? 'STAFF PORTAL' : 'STUDENT PORTAL'; $availableDates = $availableDates ?? []; $year = date('Y', strtotime($monthStart)); $month = date('m', strtotime($monthStart)); $monthName = date('F Y', strtotime($monthStart)); $daysInMonth = date('t', strtotime($monthStart)); $firstDay = date('N', strtotime($year . '-' . $month . '-01')); $currentDate = $appointment['appointment_date'] ?? null; $currentTime = $appointment['appointment_time'] ?? null; @endphp Reschedule Appointment

Reschedule Appointment

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

Reschedule Appointment

{{ $currentDate ? date('d M Y', strtotime($currentDate)) : '-' }} · {{ $currentTime ? date('g:i A', strtotime($currentTime)) : '-' }}

Current Appointment: {{ $currentDate ? date('d M Y', strtotime($currentDate)) : '-' }} at {{ $currentTime ? date('g:i A', strtotime($currentTime)) : '-' }}
Wednesday is reserved for walk-in patients only. PKU is closed on Saturday and Sunday.
@if(session('error'))
{{ session('error') }}
@endif
@csrf

{{ $monthName }}

Mo
Tu
We
Th
Fr
Sa
Su
@for($i=1; $i<$firstDay; $i++)
@endfor @for($day=1; $day<=$daysInMonth; $day++) @php $dateValue = $year . '-' . $month . '-' . str_pad($day, 2, '0', STR_PAD_LEFT); $isAvailable = isset($availableDates[$dateValue]); @endphp @if($isAvailable) @else
{{ $day }}
@endif @endfor
← Back to details

New Booking Summary

Patient{{ $profile['full_name'] ?? '-' }}
Treatment{{ $appointment['reason'] ?? 'Dental Check-Up' }}
New Date-
New TimeSelect next