laporan aging peratus sasaran by cawangan

This commit is contained in:
Amirah22
2023-03-13 13:02:27 +08:00
parent 01cdcc1661
commit 397eb14d85
+82 -17
View File
@@ -277,33 +277,50 @@
<th> LAPORAN AGING BULANAN </th>
</tr>
<tr>
<td style="width:60px"> <b> TARIKH :</b> </td>
<td style="width:60px"> <b> Bulan :</b> </td>
<td> {{ $tebus_date }} </td>
</tr>
<tr>
<td style="width:80px"> <b>Tarikh Cetak:</b></td>
<td style="text-align:left;">@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
$formattedweddingdate = $myDateTime->format('d-m-Y');
echo($formattedweddingdate)
@endphp</td>
</tr>
</table>
<br>
<table id="details">
<tr>
<th style="width:50%">TEMPOH </th>
<th style="width:30%"> BIL GADAIAN </th>
<th style="width:50%"> BAKI PEMBIAYAAN (RM) </th>
<th>TEMPOH </th>
<th> BIL GADAIAN </th>
<th> BAKI PEMBIAYAAN (RM) </th>
<th> Peratus Sasaran(%) </th>
</tr>
@php $jumpembiayaan = 0; @endphp
@foreach($aging[0]['count'] as $index=>$total)
@php
$jumpembiayaan += $aging[0]['sum'][$index];
@endphp
@endforeach
@php $jumlahcount = 0;$jumlahsum = 0; @endphp
@foreach($aging[0]['count'] as $index=>$ag)
@php
$jumlahcount += $ag; $jumlahsum += $aging[0]['sum'][$index];
$jumlahcount += $ag;
$jumlahsum += $aging[0]['sum'][$index];
$total = ($aging[0]['sum'][$index]/$jumpembiayaan)*100;
@endphp
<tr>
<td>{{ ($index == 12) ? '12 >' : $index+1 }}
<td>{{ ($index == 12) ? '>12 ' : $index+1 }}
BULAN</td>
<td>{{ number_format($ag) }}</td>
<td>{{ number_format($aging[0]['sum'][$index],2) }}</td>
<td>{{ number_format($aging[0]['sum'][$index],2) }}</td>
<td>{{ number_format($total,2) }}</td>
</tr>
@endforeach
<tr>
@@ -312,18 +329,66 @@
<td> </td>
<td> </td>
</tr>
<tr>
<td style="width:50%"> <b>JUMLAH</b></td>
<td style="width:20%"> <b>JUMLAH</b></td>
<td style="width:30%"><b> {{ number_format($jumlahcount) }} </b></td>
<td style="width:30%"><b> {{ number_format($jumlahsum,2) }} </b></td>
<td> </td>
</tr>
</table>
<br>
<br>
<br>
<table id="details">
@php $jumlahcount = 0;$jumlahsum = 0; @endphp
@foreach($aging[0]['count'] as $index=>$ag)
@if ($index < 6)
@php
$jumlahcount += $ag; $jumlahsum += $aging[0]['sum'][$index];
@endphp
@endif
@endforeach
<tr>
<th style="width:5%">TEMPOH </th>
<th> Peratus Sasaran (%) </th>
</tr>
<tr>
<td>1 - 6 Bulan</td>
<td style="width:30%">{{ number_format(($jumlahsum/$jumpembiayaan)*100,2) }}</td>
</tr>
@php $jumlahcount = 0;$jumlahsum = 0; @endphp
@foreach($aging[0]['sum'] as $index=>$ag)
@if ($index > 5 && $index < 12 )
@php
$jumlahsum += $aging[0]['sum'][$index];
@endphp
@endif
@endforeach
<tr>
<td> > 6 Bulan</td>
<td>{{ number_format(($jumlahsum/$jumpembiayaan)*100,2) }}</td>
</tr>
@php $jumlahcount = 0;$jumlahsum = 0; @endphp
@foreach($aging[0]['sum'] as $index=>$ag)
@if ($index > 11 && $index < 14)
@php
$jumlahsum += $aging[0]['sum'][$index];
@endphp
@endif
@endforeach
<tr>
<td> > 12 Bulan</td>
<td>{{ number_format(($jumlahsum/$jumpembiayaan)*100,2) }}</td>
</tr>
</table>
<br>
<br>