fix laporan upah skit
This commit is contained in:
@@ -228,6 +228,21 @@
|
||||
@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
|
||||
@if($index > 0)
|
||||
@if($item['teller'] != $advansur[$index - 1]['teller'])
|
||||
<tr>
|
||||
<td colspan=10>Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
</tr>
|
||||
@php $counter = 1;$totalpembiayaanteller = 0; $totalbayaranteller = 0; @endphp
|
||||
@endif
|
||||
@else
|
||||
<tr>
|
||||
<td colspan=10>Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
</tr>
|
||||
@php $counter = 1;$totalpembiayaanteller = 0; $totalbayaranteller = 0; @endphp
|
||||
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{{ $item['tarikh'] }}</td>
|
||||
@@ -246,7 +261,7 @@
|
||||
<td></td>
|
||||
<td><b>{{ number_format($totalbayaranteller,2) }} </b></td>
|
||||
</tr>
|
||||
@php $counter = 0;$totalpembiayaanteller = 0; $totalbayaranteller = 0; @endphp
|
||||
@php @endphp
|
||||
@endif
|
||||
@else
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user