{{ \Carbon\Carbon::create()->month($month)->format('F') }} {{ $year }}
Tanggal | @foreach($penyuluhList as $penyuluh)
{{ substr($penyuluh->name, 0, 10) }}{{ strlen($penyuluh->name) > 10 ? '...' : '' }}
{{ $penyuluh->penyuluhProfile->kecamatan ?? '' }}
|
@endforeach
---|---|
{{ $day['date']->format('d M') }} @if($day['is_weekend']) (Weekend) @endif | @foreach($penyuluhList as $penyuluh)
@php
$status = $day['penyuluh_status'][$penyuluh->id] ?? 'tidak_melapor';
$bgColor = match($status) {
'melapor' => '#4CAF50',
'tidak_melapor' => '#F44336',
'libur' => '#FFC107',
default => '#E0E0E0'
};
$statusText = match($status) {
'melapor' => '✓',
'tidak_melapor' => '✗',
'libur' => 'L',
default => '-'
};
@endphp
{{ $statusText }}
|
@endforeach
Penyuluh | Total Laporan | Status Rekomendasi |
---|---|---|
{{ $data['user']->name }} | {{ $data['total_laporan'] }} | @if($data['rekomendasi']) Rekomendasi @else Tidak Direkomendasikan @endif |