laporan ansuran panjaran

This commit is contained in:
MUHD HAFIFIE
2021-04-27 15:58:20 +08:00
parent 043a276d93
commit d5ce8d0df1
12 changed files with 744 additions and 159 deletions
+14 -14
View File
@@ -200,13 +200,13 @@
<table id="details">
<tr>
<th>Bil</th>
<th>Norujukan</th>
<th>Nama</th>
<th>No KP</th>
<th>JBG</th>
<th>Pembiayaan</th>
<th>Ansuran Upah</th>
<th>N Marhun</th>
<th>No Rujukan</th>
<th width="30%">Nama</th>
<th>No K/P</th>
<th>Tempoh</th>
<th>Baki Pembiayaan (RM)</th>
<th>Bayaran (RM)</th>
<th>Keuntungan (RM)</th>
</tr>
@php $counter = 1; @endphp
@foreach($tebus as $index=>$item)
@@ -221,24 +221,24 @@
echo $customer_detail[0]['nama'];
@endphp
</td>
<td>{{$gadai_detail[0][0]['nokp']}}</td>
<td>{{$item['jbg']}}</td>
<td>{{$item['pinjaman']}}</td>
<td>{{$item['ansuran']}}</td>
<td>{{$item['nilaimarhun']}}</td>
<td>{{ $gadai_detail[0][0]['nokp'] }}</td>
<td>{{ $gadai_detail[0][0]['tempoh'] }}</td>
<td>{{ number_format($gadai_detail[0][0]['bakipjm'],2) }}</td>
<td>{{ number_format($item['duit_masuk'],2) }}</td>
<td>{{ number_format($item['bayaran_keuntungan'],2) }}</td>
</tr>
@php $counter++; @endphp
@if($index+1 < sizeof($tebus))
@if($item['teller'] != $tebus[$index + 1]['teller'])
<tr>
<td colspan=12>{{ $counter }} Jumlah Bagi Teller : {{$item['teller']}}</td>
<td colspan=12>{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }}</td>
</tr>
@php $counter = 0; @endphp
@endif
@else
<tr>
<td colspan=12>{{ $counter }} Jumlah Bagi Teller : {{$item['teller']}}</td>
<td colspan=12>{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }}</td>
</tr>
@endif
@endforeach