-
@if ($diff_in_days > 1)
-
{{ 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';
$startTime = \Carbon\Carbon::parse('08:00 AM');
$interval = 1;
@endphp
@for ($i = 0; $i < 720; $i += $interval)
@php
$time = $startTime->copy()->addMinutes($i);
$topPosition = $i * 1;
@endphp
@endfor
- @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 (array_slice($appointmentsByDate,0,30,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';
$startTime = \Carbon\Carbon::parse('08:00 AM');
$interval = 1;
@endphp
@for ($i = 0; $i < 720; $i += $interval)
@php
$time = $startTime->copy()->addMinutes($i);
$topPosition = $i * 1;
@endphp
@endfor
- @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
@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';
$startTime = \Carbon\Carbon::parse('08:00 AM');
$interval = 1;
@endphp
@for ($i = 0; $i < 720; $i += $interval)
@php
$time = $startTime->copy()->addMinutes($i);
$topPosition = $i * 1;
@endphp
@endfor
- @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';
$startTime = \Carbon\Carbon::parse('08:00 AM');
$interval = 1;
@endphp
@for ($i = 0; $i < 720; $i += $interval)
@php
$time = $startTime->copy()->addMinutes($i);
$topPosition = $i * 1;
@endphp
@endfor
- @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
@endforeach
-
{{ 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';
$startTime = \Carbon\Carbon::parse('08:00 AM');
$interval = 1;
@endphp
@for ($i = 0; $i < 720; $i += $interval)
@php
$time = $startTime->copy()->addMinutes($i);
$topPosition = $i * 1;
@endphp
@endfor
- @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';
$startTime = \Carbon\Carbon::parse('08:00 AM');
$interval = 1;
@endphp
@for ($i = 0; $i < 720; $i += $interval)
@php
$time = $startTime->copy()->addMinutes($i);
$topPosition = $i * 1;
@endphp
@endfor
- @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';
$startTime = \Carbon\Carbon::parse('08:00 AM');
$interval = 1;
@endphp
@for ($i = 0; $i < 720; $i += $interval)
@php
$time = $startTime->copy()->addMinutes($i);
$topPosition = $i * 1;
@endphp
@endfor
- @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
@endforeach
-
@foreach (array_slice($appointmentsGroupedByDoctors, 0, 3, true) as $doctor_id => $appointmentsByDate)
{{--
- --}}
@if (request()->view_selector != 'day')
@if (count(request()->doctor_id) > 1)
@forelse (array_slice($appointmentsByDate,0,7,true) as $date => $appointments)
-
@foreach (array_slice($appointmentsGroupedByDoctors, 0, 30, true) as $doctor_id => $appointmentsByDate)
{{--
- --}}
@if (request()->view_selector != 'day')
@forelse (array_slice($appointmentsByDate,0,3,true) as $date => $appointments)