| {{ \App\Helpers\TranslationHelper::transFromDatabase('Date/Time', __('التاريخ/الوقت')) }} | {{ \App\Helpers\TranslationHelper::transFromDatabase('Patient', __('المريض')) }} | {{ \App\Helpers\TranslationHelper::transFromDatabase('Doctor', __('الطبيب')) }} | {{ \App\Helpers\TranslationHelper::transFromDatabase('Type', __('النوع')) }} | {{ \App\Helpers\TranslationHelper::transFromDatabase('Status', __('الحالة')) }} | {{ \App\Helpers\TranslationHelper::transFromDatabase('Actions', __('الإجراءات')) }} |
|---|---|---|---|---|---|
| {{ $appointment->appointment_at->format('Y-m-d H:i') }} | {{ $appointment->patient?->name ?? 'N/A' }} | {{ $appointment->doctor?->name ?? 'N/A' }} | {{ __($appointment->appointment_type) }} |
@php
$statusColors = [
'scheduled' => 'bg-blue-100 text-blue-800',
'completed' => 'bg-green-100 text-green-800',
'cancelled' => 'bg-red-100 text-red-800',
'noshow' => 'bg-yellow-100 text-yellow-800',
];
$colorClass = $statusColors[$appointment->status] ?? 'bg-gray-100 text-black';
@endphp
{{ __($appointment->status) }}
@if($appointment->status === 'cancelled' && $appointment->cancellation_reason)
{{ $appointment->cancellation_reason }}
@endif
|
@if($appointment->status === 'scheduled')
@if(request('action') === 'confirm' || !request('action'))
@endif
@if(request('action') === 'reschedule')
{{ __('Reschedule') }}
@endif
@endif
@if(request('view') === 'reminders' && $appointment->status === 'scheduled')
@php
$reminderSentAt = $appointment->metadata['reminder_sent_at'] ?? null;
$reminderCount = $appointment->metadata['reminder_count'] ?? 0;
@endphp
@if($reminderSentAt)
{{ \Carbon\Carbon::parse($reminderSentAt)->diffForHumans() }}
@endif
@endif
{{ __('View') }}
{{ __('Edit') }}
|
| {{ \App\Helpers\TranslationHelper::transFromDatabase('No appointments found', __('لم يتم العثور على مواعيد')) }} | |||||