Rekapitulasi Penerimaan

Bulan {{config('constants.bulans.'.$month) }} Tahun {{ $year }}


@foreach ($slips as $type => $slip)
Jenis Penerimaan : {{ config('constants.salary_types.' . $type) }}
@php $totalKotor = $totalPotongan = $totalPotonganBri = $totalPotonganNonBri = $totalBersih = 0; @endphp @foreach ($slip as $row) @php $kotor = $row['riwayat'][config('constants.jenis_riwayat.' . $row->type)] + $row->penambahans()->sum('amount'); $totalKotor += $kotor; $potonganBri = $row->potongans()->where('potongan_type_id', 20)->sum('amount'); $potonganNonBri = $row->potongans()->where('potongan_type_id', '!=', 20)->sum('amount'); $totalPotonganBri += $potonganBri; $totalPotonganNonBri += $potonganNonBri; $bersih = $kotor - ($potonganBri + $potonganNonBri); $totalBersih += $bersih; $totalPotongan += $row->potongans->sum('amount'); @endphp @endforeach
No NIP / No. Pegawai Nama Pegawai No. Rekening Jumlah Potongan Diterima
Bank BRI Non BRI
{{ $loop->iteration }} '{{ $row->riwayat->pegawai->no_pegawai }} {{ $row->riwayat->pegawai->name }} Bank: {{ config('constants.banks.'.$row->riwayat->pegawai->account_bank) }}
{{ $row->riwayat->pegawai->account_no }}

{{ ($row['riwayat'][config('constants.jenis_riwayat.' . $row->type)] + $row->penambahans()->sum('amount')) }}

{{ $potonganBri }}

{{ $potonganNonBri }}

{{ $bersih }}

TOTAL {{ $totalKotor }} {{ $totalPotonganBri }} {{ $totalPotonganNonBri }} {{ $totalBersih }}
@endforeach