-
@forelse ($doc as $appointmentsGroupedByDoctor)
-
@php $doc_start_time = $appointmentsGroupedByDoctor->first()->get_doctor_schedule($appointmentsGroupedByDoctor->first()->doctor->id, \Carbon\Carbon::parse($date)->format('l'))['start_time'] ?? '00:00'; $doc_end_time = $appointmentsGroupedByDoctor->first()->get_doctor_schedule($appointmentsGroupedByDoctor->first()->doctor->id, \Carbon\Carbon::parse($date)->format('l'))['end_time'] ?? '00:00'; @endphp {{ optional($appointmentsGroupedByDoctor->first()->doctor)->name }}
({{ \Carbon\Carbon::parse($doc_start_time)->format('H:i') }} - {{ \Carbon\Carbon::parse($doc_end_time)->format('H:i') }})-
@foreach ($appointmentsGroupedByDoctor as $item)
- @if (optional($item->user)->memo) M @endif {{ optional($item->user)->name ? optional($item->user)->name : 'Patient Deleted' }} @endforeach
@empty
-
No appointment found try changing doctor and date
@endforelse