fix laporan lagi

This commit is contained in:
fifi97
2021-06-06 10:09:52 +08:00
parent 1969384132
commit a7493994ec
12 changed files with 1025 additions and 56 deletions
@@ -219,9 +219,9 @@
<th width="6%;">Bayaran(RM)</th>
<th width="6%;">Jumlah(RM)</th>
</tr>
@php $counter = 1; $totalbayaran = 0;@endphp
@php $counter = 1; $totalbayaran = 0; $totalpinjaman = 0; $totalupah = 0;@endphp
@foreach($tebus as $index=>$item)
@php $totalbayaran += ($item['jenistebus'] === 'S') ? ($item['pinjaman']+$item['bakiupah']) : $item['bakipjm']; @endphp
@php $totalbayaran += ($item['jenistebus'] === 'S') ? ($item['pinjaman']+$item['bakiupah']) : $item['bakipjm']; $totalpinjaman += $item['pinjaman']; $totalupah += $item['bakiupah'];@endphp
@if($index > 0)
@if($item['teller'] != $tebus[$index - 1]['teller'])
<tr>
@@ -296,24 +296,19 @@
@endforeach
</table>
<h5 style="float:right;">JUMLAH KESELURUHAN BAYARAN : RM {{ number_format($totalbayaran,2) }}</h5>
<br>
<br>
<table id="sign">
<br><br>
<table id="details" style="border-top:1px solid black;border-bottom:1px solid black;text-align:center;">
<tr>
<td></td>
<td colspan="2"> .................................................................. </td>
<td> </td>
<td colspan="2">.................................................................. </td>
<td> </td>
<th colspan="9"></th>
<th style="text-align:center;">Pembiayaan (RM)</th>
<th style="text-align:center;">Upah/Keuntungan (RM)</th>
<th style="text-align:center;">Jumlah (RM)</th>
</tr>
<tr>
<td></td>
<td colspan="2"><B> DI SEMAK</B> </td>
<td> </td>
<td colspan="2"><B>DI SAHKAN </B></td>
<td> </td>
<td colspan="9" style="text-align: center;"><b>JUMLAH KESELURUHAN</b></td>
<td>{{ number_format($totalpinjaman,2) }}</td>
<td>{{ number_format($totalupah,2) }}</td>
<td>{{ number_format($totalbayaran,2) }}</td>
</tr>
</table>
@@ -349,12 +344,26 @@
<td>{{ number_format($upahlama['total'],2) }}</td>
<td> Not Applicable </td>
</tr>
</table>
{{-- <h5 style="float:right;">JUMLAH KESELURUHAN BAYARAN : RM {{ number_format($totalbayaran,2) }}</h5> --}}
<br>
<br>
<table id="sign">
<tr>
<td> 0 </td>
<td>Baki Lelong</td>
<td> 0.00 </td>
<td> Not Applicable </td>
<td> Not Applicable </td>
<td></td>
<td colspan="2"> .................................................................. </td>
<td> </td>
<td colspan="2">.................................................................. </td>
<td> </td>
</tr>
<tr>
<td></td>
<td colspan="2"><B> DI SEMAK</B> </td>
<td> </td>
<td colspan="2"><B>DI SAHKAN </B></td>
<td> </td>
</tr>
</table>
@@ -363,3 +372,5 @@