fix laporan
This commit is contained in:
@@ -221,13 +221,13 @@
|
||||
<th>Tarikh</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Teller</th>
|
||||
<th>Pinjaman</th>
|
||||
<th>JBG</th>
|
||||
<th>Upah Dibayar</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>Upah Dibayar (RM)</th>
|
||||
</tr>
|
||||
@php $counter = 1; $totalbayaran = 0; $totalpembiayaan = 0; $totalpembiayaanteller = 0; $totalbayaranteller = 0; @endphp
|
||||
@foreach($advansur as $index=>$item)
|
||||
@php $totalbayaran += $item['upahDibayar']; $totalpembiayaan += $item['pinjaman'];$totalbayaranteller += $item['upahDibayar']; $totalpembiayaanteller += $item['pinjaman']; @endphp
|
||||
@php $totalbayaran += $item['upahDibayar']; $totalpembiayaan += $item['pinjaman']; @endphp
|
||||
@if($index > 0)
|
||||
@if($item['teller'] != $advansur[$index - 1]['teller'])
|
||||
<tr>
|
||||
@@ -242,32 +242,30 @@
|
||||
@php $counter = 1;$totalpembiayaanteller = 0; $totalbayaranteller = 0; @endphp
|
||||
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{{ $item['tarikh'] }}</td>
|
||||
<td><b>{{ $item['norujukan'] }}</b></td>
|
||||
<td>{{ $item['teller'] }}</td>
|
||||
<td>{{ number_format($item['pinjaman'],2) }}</td>
|
||||
<td>{{ $item['jbg'] }}</td>
|
||||
<td>{{ number_format($item['pinjaman'],2) }}</td>
|
||||
<td>{{ number_format($item['upahDibayar'],2) }}</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@php $totalbayaranteller += $item['upahDibayar']; $totalpembiayaanteller += $item['pinjaman']; @endphp
|
||||
@if($index+1 < sizeof($advansur))
|
||||
@if($item['teller'] != $advansur[$index + 1]['teller'])
|
||||
<tr>
|
||||
<td colspan="4">{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }}</td>
|
||||
<td colspan="5">{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }}</td>
|
||||
<td><b>{{ number_format($totalpembiayaanteller,2) }} </b></td>
|
||||
<td></td>
|
||||
<td><b>{{ number_format($totalbayaranteller,2) }} </b></td>
|
||||
</tr>
|
||||
@php @endphp
|
||||
@endif
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="4">{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }}</td>
|
||||
<td colspan="5">{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }}</td>
|
||||
<td><b>{{ number_format($totalpembiayaanteller,2) }} </b></td>
|
||||
<td></td>
|
||||
<td><b>{{ number_format($totalbayaranteller,2) }} </b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user