@if ($appointment ?? ''->isNotEmpty()) @foreach ($appointment ?? '' ?? '' as $appoint)
| Accepted By | Date scheduled | Patient Name | Appointment Date | Status | Details | |||
|---|---|---|---|---|---|---|---|---|
{{DB::table('users')->where('id',$appointment->doctor_id)->value('name')}} |
{{ date('d-M-Y', strtotime($appointment->created_at ))}} |
{{DB::table('users')->where('id',$appointment->patient_id)->value('name')}} |
{{ date('d-M-Y', strtotime($appointment->appointment_date ))}} {{$appointment->appointment_time}} | @if($appointment->status == 'completed'){{$appointment->status}} | @elseif($appointment->status =='scheduled'){{$appointment->status}} | @elseif($appointment->status =='accepted'){{$appointment->status}} | @else{{$appointment->status}} | @endifView |