{{-- Chunk 1: Hari 1–10 --}}
@if(!empty($days1))
Hari 1 – {{ max($days1) }}
| NO |
TERAPIS |
DOMISILI |
TRANSPORTASI |
JAM |
@foreach($days1 as $d)
{{ $d }} |
@endforeach
@foreach($sortedGroup as $index => $therapist)
@if($index === 0)
| {{ $orderNo }} |
{{ $therapist->name }} |
{{ $therapist->domicile }} |
{{ $therapist->transportation }} |
@endif
{{ $therapist->time_slot }} |
@foreach($days1 as $d)
@php
$scheduleDate = \Carbon\Carbon::create($date->year, $date->month, $d);
$entry = $therapist->getScheduleEntry($scheduleDate);
$bgColor = $entry ? $entry->bg_color : '#ffffff';
$content = $entry ? $entry->content : '';
@endphp
{{ $content }} |
@endforeach
@endforeach
@endif
{{-- Chunk 2: Hari 11–20 --}}
@if(!empty($days2))
Hari 11 – {{ max($days2) }}
| NO |
TERAPIS |
DOMISILI |
TRANSPORTASI |
JAM |
@foreach($days2 as $d)
{{ $d }} |
@endforeach
@foreach($sortedGroup as $index => $therapist)
@if($index === 0)
| {{ $orderNo }} |
{{ $therapist->name }} |
{{ $therapist->domicile }} |
{{ $therapist->transportation }} |
@endif
{{ $therapist->time_slot }} |
@foreach($days2 as $d)
@php
$scheduleDate = \Carbon\Carbon::create($date->year, $date->month, $d);
$entry = $therapist->getScheduleEntry($scheduleDate);
$bgColor = $entry ? $entry->bg_color : '#ffffff';
$content = $entry ? $entry->content : '';
@endphp
{{ $content }} |
@endforeach
@endforeach
@endif
{{-- Chunk 3: Hari 21–Akhir --}}
@if(!empty($days3))
Hari 21 – {{ max($days3) }}
| NO |
TERAPIS |
DOMISILI |
TRANSPORTASI |
JAM |
@foreach($days3 as $d)
{{ $d }} |
@endforeach
@foreach($sortedGroup as $index => $therapist)
@if($index === 0)
| {{ $orderNo }} |
{{ $therapist->name }} |
{{ $therapist->domicile }} |
{{ $therapist->transportation }} |
@endif
{{ $therapist->time_slot }} |
@foreach($days3 as $d)
@php
$scheduleDate = \Carbon\Carbon::create($date->year, $date->month, $d);
$entry = $therapist->getScheduleEntry($scheduleDate);
$bgColor = $entry ? $entry->bg_color : '#ffffff';
$content = $entry ? $entry->content : '';
@endphp
{{ $content }} |
@endforeach
@endforeach
@endif
@endforeach
@if($memos->count() > 0)