fix laporan lagi
This commit is contained in:
@@ -214,9 +214,9 @@
|
||||
<th>Keuntungan</th>
|
||||
<th>Peratus (%)</th>
|
||||
</tr>
|
||||
@php $counter = 1; $totalpinjaman = 0; @endphp
|
||||
@php $counter = 1; $totalpinjaman = 0; $totalberat = 0; $totalnm = 0; $totalupah = 0;@endphp
|
||||
@foreach($gadai as $index=>$item)
|
||||
@php $totalpinjaman += $item['pinjaman'] @endphp
|
||||
@php $totalpinjaman += $item['pinjaman']; $totalberat += $item['berat']; $totalnm += $item['nilaimarhun']; $totalupah += $item['upah12']; @endphp
|
||||
@if($index > 0)
|
||||
@if($item['teller'] != $gadai[$index - 1]['teller'])
|
||||
<tr>
|
||||
@@ -275,8 +275,25 @@
|
||||
@endif
|
||||
@endforeach
|
||||
</table>
|
||||
<br><br>
|
||||
<table id="details" style="border-top:1px solid black;border-bottom:1px solid black;text-align:center;">
|
||||
<tr>
|
||||
<th colspan="9"></th>
|
||||
<th style="text-align:center;">Berat (g/m)</th>
|
||||
<th style="text-align:center;">Nilai Marhun (RM)</th>
|
||||
<th style="text-align:center;">Pembiayaan (RM)</th>
|
||||
<th style="text-align:center;">Upah/Keuntungan (RM)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="9" style="text-align: center;"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td>{{ number_format($totalberat,2) }}</td>
|
||||
<td>{{ number_format($totalnm,2) }}</td>
|
||||
<td>{{ number_format($totalpinjaman,2) }}</td>
|
||||
<td>{{ number_format($totalupah,2) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h5 style="float:right;">JUMLAH KESELURUHAN GADAIAN : RM {{ number_format($totalpinjaman,2) }}</h5>
|
||||
{{-- <h5 style="float:right;">JUMLAH KESELURUHAN GADAIAN : RM {{ number_format($totalpinjaman,2) }}</h5> --}}
|
||||
|
||||
<br>
|
||||
<br>
|
||||
@@ -298,22 +315,6 @@
|
||||
</table>
|
||||
|
||||
|
||||
<h4>Laporan Transaksi Gadaian</h4>
|
||||
<br>
|
||||
|
||||
<table id="details">
|
||||
<thead>
|
||||
<th>Bil</th>
|
||||
<th>Jenis</th>
|
||||
<th>Penebusan(RM)</th>
|
||||
</thead>
|
||||
<tr>
|
||||
<td> 0 </td>
|
||||
<td>Rugi Lelong</td>
|
||||
<td> 0.00 </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user