fix skit2
This commit is contained in:
@@ -213,13 +213,15 @@
|
||||
<th>T Gadai</th>
|
||||
<th>T Tebus</th>
|
||||
<th>JBG</th>
|
||||
<th>J Tebus</th>
|
||||
<th width="6%;">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; $totalbayaran = 0;@endphp
|
||||
@foreach($tebus as $index=>$item)
|
||||
@php $totalbayaran += $item['bakipjm'] @endphp
|
||||
@php $totalbayaran += ($item['jenistebus'] === 'S') ? ($item['pinjaman']+$item['bakiupah']) : $item['bakipjm']; @endphp
|
||||
@if($index > 0)
|
||||
@if($item['teller'] != $tebus[$index - 1]['teller'])
|
||||
<tr>
|
||||
@@ -231,7 +233,7 @@
|
||||
<tr>
|
||||
<td colspan="12">Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
</tr>
|
||||
@php $totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0; @endphp
|
||||
@php $totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0; $totaljumlahteller = 0;@endphp
|
||||
@endif
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
@@ -249,33 +251,46 @@
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $gadai_detail[0][0]['t_gadai']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
echo($formattedweddingdate);
|
||||
@endphp
|
||||
</td>
|
||||
<td>{{$item['t_tebus']}}</td>
|
||||
<td>{{$item['jbg']}}</td>
|
||||
<td>{{$item['pinjaman']}}</td>
|
||||
<td>{{$item['bakiupah']}}</td>
|
||||
<td>{{$item['bakipjm']}}</td>
|
||||
<td>
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $item['t_tebus']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate);
|
||||
@endphp
|
||||
</td>
|
||||
<td>{{ $item['jbg'] }}</td>
|
||||
<td>{{$item['jenistebus']}}</td>
|
||||
<td>{{ number_format($item['pinjaman'],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 $totalpinjamanteller += $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'])
|
||||
<tr class="new-page">
|
||||
<td colspan="7"><b>{{ $counter-1 }}</b> Jumlah Bagi Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
<td></td>
|
||||
<td><b>{{ number_format($totalpinjamanteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalupahteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalbayaranteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totaljumlahteller,2) }} </b></td>
|
||||
</tr>
|
||||
@php $counter = 0; @endphp
|
||||
@php $counter = 1;$totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0;$totaljumlahteller = 0; @endphp
|
||||
@endif
|
||||
@else
|
||||
<tr class="new-page">
|
||||
<td colspan="7"><b>{{ $counter-1 }}</b> Jumlah Bagi Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
<td></td>
|
||||
<td><b>{{ number_format($totalpinjamanteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalupahteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalbayaranteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totaljumlahteller,2) }} </b></td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
@@ -334,6 +349,13 @@
|
||||
<td>{{ number_format($upahlama['total'],2) }}</td>
|
||||
<td> Not Applicable </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> 0 </td>
|
||||
<td>Baki Lelong</td>
|
||||
<td> 0.00 </td>
|
||||
<td> Not Applicable </td>
|
||||
<td> Not Applicable </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user