@extends('layouts.app') @section('title', 'Laporan Rekapan Gaji') @section('content')

Laporan Rekapan Gaji

Rekap gaji per bulan untuk setiap pegawai
Filter Laporan
@if(!auth()->user()->isPegawai())
@endif
@if(count($laporan) > 0)
Export PDF Export Excel
@endif @if(count($laporan) > 0)
Rekap Gaji Bulan {{ $laporan[0]['periode']['nama_bulan'] }} {{ $tahun }}
@foreach($laporan as $index => $item) @php $gaji = $item['gaji']; $pegawai = $gaji->pegawai; @endphp @endforeach
No NIP Nama Pegawai Kehadiran Total Hari Cuti Denda Cuti Potongan Absensi Total Gaji
Hadir Izin Sakit Cuti Alpha
{{ $index + 1 }} {{ $pegawai->nip ?? '-' }} {{ $pegawai->nama_lengkap }}
{{ $pegawai->jabatan ?? '-' }}
{{ $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, ',', '.') }}
@else
Tidak ada data laporan

Tidak ada data gaji untuk periode yang dipilih.

@endif @endsection