Monitoring Kehadiran Penyuluh

{{ \Carbon\Carbon::create()->month($month)->format('F') }} {{ $year }}

Informasi Laporan

Periode: {{ \Carbon\Carbon::create()->month($month)->format('F') }} {{ $year }}
@if(isset($kecamatan) && $kecamatan)
Kecamatan: {{ $kecamatan }}
@else
Kecamatan: Semua Kecamatan
@endif
Tanggal Cetak: {{ \Carbon\Carbon::now()->format('d F Y H:i') }}

Statistik Kehadiran

Total Penyuluh
{{ $stats['total_penyuluh'] }}
Melapor
{{ $stats['actual_reports'] }}
Tidak Melapor
{{ $stats['absent_reports'] }}
Libur
{{ $stats['leave_reports'] }}
Tingkat Kehadiran
{{ $stats['attendance_rate'] }}%
Melapor
Tidak Melapor
Libur
Belum Ada Data
@foreach($penyuluhList as $penyuluh) @endforeach @foreach($calendarData as $day) @foreach($penyuluhList as $penyuluh) @endforeach @endforeach
Tanggal {{ substr($penyuluh->name, 0, 10) }}{{ strlen($penyuluh->name) > 10 ? '...' : '' }}
{{ $penyuluh->penyuluhProfile->kecamatan ?? '' }}
{{ $day['date']->format('d M') }} @if($day['is_weekend']) (Weekend) @endif @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 }}

Akumulasi Kehadiran Laporan

@foreach($akumulasiKehadiran as $kec => $penyuluhData)

Kecamatan: {{ $kec }}

@foreach($penyuluhData as $data) @endforeach
Penyuluh Total Laporan Status Rekomendasi
{{ $data['user']->name }} {{ $data['total_laporan'] }} @if($data['rekomendasi']) Rekomendasi @else Tidak Direkomendasikan @endif
@endforeach