| No | NIP | Nama Pegawai | Kehadiran | Total Cuti |
Denda Cuti |
Potongan Absensi |
Total Gaji |
||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Hadir | Izin | Sakit | Cuti | Alpha | |||||||
| {{ $index + 1 }} | {{ $pegawai->nip ?? '-' }} | {{ $pegawai->nama_lengkap }} | {{ $item['jumlah_hadir'] }} | {{ $item['jumlah_izin'] }} | {{ $item['jumlah_sakit'] }} | {{ $item['jumlah_cuti'] }} | {{ $item['jumlah_alpha'] }} | {{ $item['total_hari_cuti'] }} | @if($item['denda_cuti'] > 0) Rp {{ number_format($item['denda_cuti'], 0, ',', '.') }} @else - @endif | Rp {{ number_format($gaji->potongan_absensi, 0, ',', '.') }} | Rp {{ number_format($gaji->total_gaji, 0, ',', '.') }} |
| TOTAL: | {{ collect($laporan)->sum('jumlah_hadir') }} | {{ collect($laporan)->sum('jumlah_izin') }} | {{ collect($laporan)->sum('jumlah_sakit') }} | {{ collect($laporan)->sum('jumlah_cuti') }} | {{ collect($laporan)->sum('jumlah_alpha') }} | {{ collect($laporan)->sum('total_hari_cuti') }} | Rp {{ number_format(collect($laporan)->sum('denda_cuti'), 0, ',', '.') }} | Rp {{ number_format(collect($laporan)->sum(function($item) { return $item['gaji']->potongan_absensi; }), 0, ',', '.') }} | Rp {{ number_format(collect($laporan)->sum(function($item) { return $item['gaji']->total_gaji; }), 0, ',', '.') }} | ||