Appointment Details

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

Patient Information

Full Name
{{ $patient['full_name'] ?? '-' }}
UPSI ID
{{ $patient['upsi_id'] ?? '-' }}
Email
{{ $patient['email'] ?? '-' }}

Appointment Information

Date
{{ date('d M Y',strtotime($appointment['appointment_date'])) }}
Time
{{ date('g:i A',strtotime($appointment['appointment_time'])) }}
Treatment
{{ $appointment['reason'] ?? '-' }}
Status
{{ ucfirst($appointment['status']) }}
@if(in_array(strtolower($appointment['status'] ?? ''), ['cancelled','cancelled_by_pku']))
Cancelled By
PKU Admin
Cancellation Reason
{{ $appointment['admin_action_reason'] ?? ($appointment['cancel_reason'] ?? '-') }}
@if(!empty($appointment['cancel_notes']))
Cancellation Notes
{{ $appointment['cancel_notes'] }}
@endif @if(!empty($appointment['cancelled_at']))
Cancelled At
{{ date('d M Y, g:i A', strtotime($appointment['admin_action_at'] ?? $appointment['cancelled_at'])) }}
@endif
User Response
{{ ucfirst(str_replace('_', ' ', $appointment['user_response_type'] ?? 'pending')) }}
@endif

Room Information

Room
{{ $room['room_name'] ?? '-' }}

Queue Information

Queue Number : {{ $queue['queue_number'] ?? ($appointment['queue_number'] ?? 'Not generated yet') }}
@if(!in_array(strtolower($appointment['status'] ?? ''), ['cancelled', 'completed']))
@csrf
@csrf
@endif Back
@if(!in_array(strtolower($appointment['status'] ?? ''), ['cancelled', 'completed']))

Cancel Appointment

@csrf
@endif