@if($appointment && $oldClinic)

Reschedule Appointment

Select a new date and time for your appointment

Current Appointment

{{ $oldClinic?->name ?? 'Loading...' }}
{{ $oldDate ? \Carbon\Carbon::parse($oldDate)->format('l, F j, Y') : 'Loading...' }}
{{ $oldSlot ?? 'Loading...' }}

Select New Date and Time

@if($selectedDate && \Carbon\Carbon::parse($selectedDate)->isWeekend())

Appointments are only available on weekdays.

@endif
@if($selectedDate && !empty($availability))
@if(collect($availability)->keys()->intersect(['08:00-09:00', '09:00-10:00', '10:00-11:00', '11:00-12:00'])->isNotEmpty())

Morning

@foreach(['08:00-09:00', '09:00-10:00', '10:00-11:00', '11:00-12:00'] as $slot) @if(isset($availability[$slot])) @endif @endforeach
@endif @if(collect($availability)->keys()->intersect(['12:00-13:00', '13:00-14:00'])->isNotEmpty())

Afternoon

@foreach(['12:00-13:00', '13:00-14:00'] as $slot) @if(isset($availability[$slot])) @endif @endforeach
@endif @if(collect($availability)->keys()->intersect(['14:00-15:00', '15:00-16:00', '16:00-17:00'])->isNotEmpty())

Evening

@foreach(['14:00-15:00', '15:00-16:00', '16:00-17:00'] as $slot) @if(isset($availability[$slot])) @endif @endforeach
@endif
@elseif($selectedDate && empty($availability))

No available time slots for this date. Please select another date.

@endif

What will happen:

  • Your current appointment will be updated to the new date and time
  • The old time slot will be released for other patients
  • You will receive a confirmation email for the new appointment
  • New reminder notifications will be scheduled
@else

Loading appointment details...

@endif