@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
{{ $totalAppointments }}
Jumlah Temu Janji
{{ $pendingResponse }}
Menunggu Respons Anda
{{ $acceptedAppointments }}
Diterima
{{ $upcomingAppointments }}
Akan Datang

Senarai Temu Janji

@if($appointments->count() > 0) @foreach($appointments as $appointment)
{{ $appointment->appointment_date->format('d/m/Y') }} ({{ $appointment->appointment_date->translatedFormat('l') }})
{{ \Carbon\Carbon::parse($appointment->appointment_time)->format('h:i A') }}
@if($appointment->status === 'cancelled') Ditolak oleh Admin @else {{ $appointment->getUserResponseLabel() }} @endif
Kaunselor: {{ $appointment->admin->fullname }}
@if($appointment->location)
Lokasi: {{ $appointment->location }}
@endif @if($appointment->reason)
Sebab: {{ $appointment->reason }}
@endif @if($appointment->reschedule_requested)
Permintaan jadual baharu sedang diproses
@endif @if($appointment->status === 'cancelled')
Temu janji ini telah dibatalkan oleh admin
@endif
@if($appointment->canRespond() && $appointment->status !== 'cancelled')
@csrf
@endif @if($appointment->canRequestReschedule() && $appointment->status !== 'cancelled') @endif Lihat
@if($appointment->user_response === 'rejected') @endif @endforeach @else

Tiada Temu Janji

Anda belum mempunyai sebarang temu janji. Klik butang "Minta Temu Janji Baharu" untuk membuat permintaan.

@endif