-
@if ($diff_in_days > 1)
@foreach (array_slice($appointmentsGroupedByDoctors, 0, 3, true) as $doctor_id => $appointmentsByDate)
-
{{ Str::limit((\App\Models\User::where('id', $doctor_id)->first(['id', 'name'])->name ?? 'Deleted Therapist'), 12) }}
{{ \Carbon\Carbon::parse($date)->format('d-M-Y') }}-
@php
$doc_start_time = $appointments['schedule']->start_time ?? '0:0';
$doc_end_time = $appointments['schedule']->end_time ?? '0:0';
@endphp
- @foreach ($appointments['appointments'] as $appointment) @if ($appointment)
- @if (optional($appointment->user)->memo) M @endif {{ optional($appointment->user)->name ? optional($appointment->user)->name : 'Patient Deleted' }} @endif @endforeach
@empty
-
No appointment found try changing doctor and date
@endforelse
@else
@if (count(request()->doctor_id) > 2)
@forelse (array_slice($appointmentsByDate,0,3,true) as $date => $appointments)
-
{{ Str::limit((\App\Models\User::where('id', $doctor_id)->first(['id', 'name'])->name ?? 'Deleted Therapist'), 12) }}
{{ \Carbon\Carbon::parse($date)->format('d-M-Y') }}-
@php
$doc_start_time = $appointments['schedule']->start_time ?? '0:0';
$doc_end_time = $appointments['schedule']->end_time ?? '0:0';
@endphp
- @foreach ($appointments['appointments'] as $appointment) @if ($appointment)
- @if (optional($appointment->user)->memo) M @endif {{ optional($appointment->user)->name ? optional($appointment->user)->name : 'Patient Deleted' }} @endif @endforeach
@empty
-
No appointment found try changing doctor and date
@endforelse
@else
@forelse ($appointmentsByDate as $date => $appointments)
-
{{ Str::limit((\App\Models\User::where('id', $doctor_id)->first(['id', 'name'])->name ?? 'Deleted Therapist'), 12) }}
{{ \Carbon\Carbon::parse($date)->format('d-M-Y') }}-
@php
$doc_start_time = $appointments['schedule']->start_time ?? '0:0';
$doc_end_time = $appointments['schedule']->end_time ?? '0:0';
@endphp
- @foreach ($appointments['appointments'] as $appointment) @if ($appointment)
- @if (optional($appointment->user)->memo) M @endif {{ optional($appointment->user)->name ? optional($appointment->user)->name : 'Patient Deleted' }} @endif @endforeach
@empty
-
No appointment found try changing doctor and date
@endforelse
@endif
@endif
-
{{ Str::limit((\App\Models\User::where('id', $doctor_id)->first(['id', 'name'])->name ?? 'Deleted Therapist'), 12) }}
{{ \Carbon\Carbon::parse($date)->format('d-M-Y') }}-
@php
$doc_start_time = $appointments['schedule']->start_time ?? '0:0';
$doc_end_time = $appointments['schedule']->end_time ?? '0:0';
@endphp
- @foreach ($appointments['appointments'] as $appointment) @if ($appointment)
- @if (optional($appointment->user)->memo) M @endif {{ optional($appointment->user)->name ? optional($appointment->user)->name : 'Patient Deleted' }} @endif @endforeach
@empty
-
No appointment found try changing doctor and date
@endforelse
@else
@if (count(request()->doctor_id) > 2)
@forelse (array_slice($appointmentsByDate,0,3,true) as $date => $appointments)
-
{{ Str::limit((\App\Models\User::where('id', $doctor_id)->first(['id', 'name'])->name ?? 'Deleted Therapist'), 12) }}
{{ \Carbon\Carbon::parse($date)->format('d-M-Y') }}-
@php
$doc_start_time = $appointments['schedule']->start_time ?? '0:0';
$doc_end_time = $appointments['schedule']->end_time ?? '0:0';
@endphp
- @foreach ($appointments['appointments'] as $appointment) @if ($appointment)
- @if (optional($appointment->user)->memo) M @endif {{ optional($appointment->user)->name ? optional($appointment->user)->name : 'Patient Deleted' }} @endif @endforeach
@empty
-
No appointment found try changing doctor and date
@endforelse
@else
@forelse ($appointmentsByDate as $date => $appointments)
-
{{ Str::limit((\App\Models\User::where('id', $doctor_id)->first(['id', 'name'])->name ?? 'Deleted Therapist'), 12) }}
{{ \Carbon\Carbon::parse($date)->format('d-M-Y') }}-
@php
$doc_start_time = $appointments['schedule']->start_time ?? '0:0';
$doc_end_time = $appointments['schedule']->end_time ?? '0:0';
@endphp
- @foreach ($appointments['appointments'] as $appointment) @if ($appointment)
- @if (optional($appointment->user)->memo) M @endif {{ optional($appointment->user)->name ? optional($appointment->user)->name : 'Patient Deleted' }} @endif @endforeach
@empty
-
No appointment found try changing doctor and date
@endforelse
@endif
@endif
-
@if (request()->view_selector != 'day')
@forelse (array_slice($appointmentsByDate,0,3,true) as $date => $appointments)
-
@if (request()->view_selector != 'day')
@forelse (array_slice($appointmentsByDate,0,3,true) as $date => $appointments)