fix skit2 la
This commit is contained in:
@@ -203,13 +203,14 @@
|
||||
<th>J Tebus</th>
|
||||
<th width="6%;">Nilai Marhun(RM)</th>
|
||||
<th width="6%;">Pembiayaan(RM)</th>
|
||||
{{-- <th width="6%;">Baki Pembiayaan(RM)</th> --}}
|
||||
<th width="6%;">Upah/Keuntungan(RM)</th>
|
||||
<th width="6%;">Bayaran(RM)</th>
|
||||
<th width="6%;">Jumlah(RM)</th>
|
||||
</tr>
|
||||
@php $counter = 1;$totalnm = 0; $totalbayaran = 0; $totalpinjaman = 0; $totalupah = 0;@endphp
|
||||
@foreach($tebus as $index=>$item)
|
||||
@php $totalbayaran += ($item['jenistebus'] === 'S') ? ($item['pinjaman']+$item['bakiupah']) : $item['bakipjm']; $totalpinjaman += $item['pinjaman']; $totalupah += $item['bakiupah']; $totalnm += $item['nilaimarhun'];@endphp
|
||||
@php $totalbayaran += ($item['jenistebus'] === 'S') ? ($item['pinjaman']+$item['bakiupah']) : $item['bakipjm']; $totalpinjaman += ($item['hargajualan'] != $item['bakihargajualan']) ? $item['gadaibakipjm'] : $item['pinjaman']; $totalupah += $item['bakiupah']; $totalnm += $item['nilaimarhun'];@endphp
|
||||
@if($index > 0)
|
||||
@if($item['teller'] != $tebus[$index - 1]['teller'])
|
||||
<tr>
|
||||
@@ -240,13 +241,20 @@
|
||||
<td>
|
||||
{{ number_format($item['nilaimarhun'],2) }}
|
||||
</td>
|
||||
<td>{{ number_format($item['pinjaman'],2) }}</td>
|
||||
<td>@php
|
||||
|
||||
if($item['hargajualan'] !== $item['bakihargajualan'])
|
||||
echo number_format($item['gadaibakipjm'],2);
|
||||
else
|
||||
echo number_format($item['pinjaman'],2);
|
||||
@endphp</td>
|
||||
{{-- <td>{{ number_format($item['gadaibakipjm'],2) }}</td> --}}
|
||||
<td>{{ number_format($item['bakiupah'],2) }}</td>
|
||||
<td>{{ number_format($item['bakipjm'],2) }}</td>
|
||||
<td>@php if($item['jenistebus'] == 'S'){ $total=($item['pinjaman']+$item['bakiupah']);echo number_format($total,2);} else echo number_format($item['bakipjm'],2); @endphp</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@php $totalnmteller += $item['nilaimarhun']; $totalpinjamanteller += $item['pinjaman'];$totalupahteller += $item['bakiupah'];$totalbayaranteller += $item['bakipjm']; @endphp
|
||||
@php $totalnmteller += $item['nilaimarhun']; $totalpinjamanteller += ($item['hargajualan'] != $item['bakihargajualan']) ? $item['gadaibakipjm'] : $item['pinjaman'];$totalupahteller += $item['bakiupah'];$totalbayaranteller += $item['bakipjm']; @endphp
|
||||
@php $totaljumlahteller += ($item['jenistebus'] === 'S') ? ($item['pinjaman']+$item['bakiupah']) : $item['bakipjm']; @endphp
|
||||
@if($index+1 < sizeof($tebus))
|
||||
@if($item['teller'] != $tebus[$index + 1]['teller'])
|
||||
|
||||
Reference in New Issue
Block a user