@extends('doctor.layouts.app') @section('title','المواعيد') @section('page-title','إدارة المواعيد') @section('content')
| التاريخ | الوقت | المريض | سبب الزيارة | الحالة | إجراءات |
|---|---|---|---|---|---|
| {{ $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')
@endif
@if(in_array($appt->status,['confirmed','pending']) && $appt->appointment_date->isToday())
@endif
@if(in_array($appt->status,['pending','confirmed']))
@endif
|
| لا توجد مواعيد | |||||