fix laporan upah skit

This commit is contained in:
fifi97
2021-06-09 10:40:24 +08:00
parent 7da837b13e
commit 01a616eab0
+16 -1
View File
@@ -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>