{{ \Carbon\Carbon::create()->month($month)->format('F') }} {{ $year }}
Total Penyuluh | Melapor | Tidak Melapor | Libur | Tingkat Kehadiran |
---|---|---|---|---|
{{ $stats['total_penyuluh'] }} | {{ $stats['actual_reports'] }} | {{ $stats['absent_reports'] }} | {{ $stats['leave_reports'] }} | {{ $stats['attendance_rate'] }}% |
Tanggal | @foreach($penyuluhList as $penyuluh)
{{ substr($penyuluh->name, 0, 8) }}{{ strlen($penyuluh->name) > 8 ? '...' : '' }}
{{ $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 | @endforeach
Penyuluh | Total Laporan | Status Rekomendasi |
---|---|---|
{{ $data['user']->name }} | {{ $data['total_laporan'] }} | @if($data['rekomendasi']) Rekomendasi @else Tidak Direkomendasikan @endif |