@extends('doctor.layouts.app') @section('title','المواعيد') @section('page-title','إدارة المواعيد') @section('content')
المواعيد {{ $appointments->total() }}
@forelse($appointments as $appt) @empty @endforelse
التاريخالوقتالمريضسبب الزيارةالحالةإجراءات
{{ $appt->appointment_date->format('Y/m/d') }} {{ $appt->appointment_time }}
{{ $appt->patient->user->name }}
{{ $appt->patient->user->phone }}
{{ $appt->reason ?? '—' }} @php $map=['pending'=>['bg-light text-dark','بانتظار'],'confirmed'=>['b-waiting','مؤكد'],'in_queue'=>['b-called','في الطابور'],'in_progress'=>['b-in_progress','قيد الفحص'],'completed'=>['b-completed','منتهي'],'cancelled'=>['bg-danger text-white','ملغي'],'no_show'=>['bg-secondary text-white','لم يحضر']]; [$cls,$lbl]=$map[$appt->status]??['bg-secondary text-white',$appt->status]; @endphp {{ $lbl }}
@if($appt->status==='pending')
@csrf @method('PATCH')
@endif @if(in_array($appt->status,['confirmed','pending']) && $appt->appointment_date->isToday())
@csrf
@endif @if(in_array($appt->status,['pending','confirmed']))
@csrf @method('PATCH')
@endif
لا توجد مواعيد
@if($appointments->hasPages()) @endif
@endsection