@php $api_url = request()->hostname; @endphp @if(Str::contains($api_url, 'apiv3.arrahn')) @else @endif
LAPORAN AKRU BULANAN PECAHAN (arOSv3) LAPORAN AKRU BULANAN PECAHAN
TAHUN JANAAN:{{ $year }}

PAPARAN 1%

@php $totaljan = 0;$totalfeb = 0;$totalmac = 0;$totalapr = 0;$totalmei = 0;$totaljun = 0;$totaljul = 0; $totalogo = 0;$totalsep = 0;$totalokt = 0;$totalnov = 0;$totaldis = 0; @endphp @foreach($akrubulan as $index=>$akru) @php $totalcawangan = 0; @endphp @foreach($akru['onepercent'] as $index2=>$ak) @if(isset( $akru['onepercent'] )) @php $totalcawangan += $ak; ($index2 == 0) ? $totaljan += $ak : $totaljan += 0; ($index2 == 1) ? $totalfeb += $ak : $totalfeb += 0; ($index2 == 2) ? $totalmac += $ak : $totalmac += 0; ($index2 == 3) ? $totalapr += $ak : $totalapr += 0; ($index2 == 4) ? $totalmei += $ak : $totalmei += 0; ($index2 == 5) ? $totaljun += $ak : $totaljun += 0; ($index2 == 6) ? $totaljul += $ak : $totaljul += 0; ($index2 == 7) ? $totalogo += $ak : $totalogo += 0; ($index2 == 8) ? $totalsep += $ak : $totalsep += 0; ($index2 == 9) ? $totalokt += $ak : $totalokt += 0; ($index2 == 10) ? $totalnov += $ak : $totalnov += 0; ($index2 == 11) ? $totaldis += $ak : $totaldis += 0; @endphp @else @endif @endforeach @endforeach @php $totalonepersen = $totaljan + $totalfeb + $totalmac + $totalapr + $totalmei + $totaljun + $totaljul + $totalogo + $totalsep + $totalokt + $totalnov + $totaldis; @endphp
CAWANGAN JANUARI FEBRUARI MAC APRIL MEI JUN JULAI OGOS SEPTEMBER OKTOBER NOVEMBER DISEMBER JUMLAH
{{ $index }}{{ number_format($ak,2) }}0.00{{ number_format($totalcawangan,2) }}
JUMLAH {{ number_format($totaljan,2) }} {{ number_format($totalfeb,2) }} {{ number_format($totalmac,2) }} {{ number_format($totalapr,2) }} {{ number_format($totalmei,2) }} {{ number_format($totaljun,2) }} {{ number_format($totaljul,2) }} {{ number_format($totalogo,2) }} {{ number_format($totalsep,2) }} {{ number_format($totalokt,2) }} {{ number_format($totalnov,2) }} {{ number_format($totaldis,2) }}{{ number_format($totalonepersen,2) }}


PAPARAN CAJ-CAJ LAIN

@php $totaljan = 0;$totalfeb = 0;$totalmac = 0;$totalapr = 0;$totalmei = 0;$totaljun = 0;$totaljul = 0; $totalogo = 0;$totalsep = 0;$totalokt = 0;$totalnov = 0;$totaldis = 0; @endphp @foreach($akrubulan as $index=>$akru) @php $totalcawangan = 0; @endphp @foreach($akru['ujrah'] as $index2=>$ak) @if(isset( $akru['ujrah'] )) @php $totalcawangan += $ak; ($index2 == 0) ? $totaljan += $ak : $totaljan += 0; ($index2 == 1) ? $totalfeb += $ak : $totalfeb += 0; ($index2 == 2) ? $totalmac += $ak : $totalmac += 0; ($index2 == 3) ? $totalapr += $ak : $totalapr += 0; ($index2 == 4) ? $totalmei += $ak : $totalmei += 0; ($index2 == 5) ? $totaljun += $ak : $totaljun += 0; ($index2 == 6) ? $totaljul += $ak : $totaljul += 0; ($index2 == 7) ? $totalogo += $ak : $totalogo += 0; ($index2 == 8) ? $totalsep += $ak : $totalsep += 0; ($index2 == 9) ? $totalokt += $ak : $totalokt += 0; ($index2 == 10) ? $totalnov += $ak : $totalnov += 0; ($index2 == 11) ? $totaldis += $ak : $totaldis += 0; @endphp @else @endif @endforeach @endforeach @php $totalonepersen = $totaljan + $totalfeb + $totalmac + $totalapr + $totalmei + $totaljun + $totaljul + $totalogo + $totalsep + $totalokt + $totalnov + $totaldis; @endphp
CAWANGAN JANUARI FEBRUARI MAC APRIL MEI JUN JULAI OGOS SEPTEMBER OKTOBER NOVEMBER DISEMBER JUMLAH
{{ $index }}{{ number_format($ak,2) }}0.00{{ number_format($totalcawangan,2) }}
JUMLAH {{ number_format($totaljan,2) }} {{ number_format($totalfeb,2) }} {{ number_format($totalmac,2) }} {{ number_format($totalapr,2) }} {{ number_format($totalmei,2) }} {{ number_format($totaljun,2) }} {{ number_format($totaljul,2) }} {{ number_format($totalogo,2) }} {{ number_format($totalsep,2) }} {{ number_format($totalokt,2) }} {{ number_format($totalnov,2) }} {{ number_format($totaldis,2) }}{{ number_format($totalonepersen,2) }}


RINGKASAN JUMLAH 1% + LAIN LAIN CAJ (RM)

@php $namaBulan = ['JANUARI', 'FEBRUARI', 'MAC', 'APRIL', 'MEI', 'JUN', 'JULAI', 'OGOS', 'SEPTEMBER', 'OKTOBER', 'NOVEMBER', 'DISEMBER']; $jumlahBulanan = array_fill(0, 12, 0); $jumlahRingkasan = 0; @endphp @foreach($namaBulan as $bulan) @endforeach @foreach($akrubulan as $cawangan => $pecahan) @php $jumlahCawangan = 0; @endphp @foreach($namaBulan as $bulanIndex => $bulan) @php $jumlahBulan = ($pecahan['onepercent'][$bulanIndex] ?? 0) + ($pecahan['ujrah'][$bulanIndex] ?? 0); $jumlahCawangan += $jumlahBulan; $jumlahBulanan[$bulanIndex] += $jumlahBulan; @endphp @endforeach @php $jumlahRingkasan += $jumlahCawangan; @endphp @endforeach @foreach($jumlahBulanan as $jumlahBulan) @endforeach
CAWANGAN{{ $bulan }}JUMLAH
{{ $cawangan }}{{ number_format($jumlahBulan, 2) }}{{ number_format($jumlahCawangan, 2) }}
JUMLAH{{ number_format($jumlahBulan, 2) }}{{ number_format($jumlahRingkasan, 2) }}


.................................................................. ..................................................................
DI SEMAK DI SAHKAN