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
|
@php $counter = 1; $totalbayaran = 0; $totalpembiayaan = 0; $totalpembiayaanteller = 0; $totalbayaranteller = 0; @endphp
|
||||||
@foreach($advansur as $index=>$item)
|
@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'];$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>
|
<tr>
|
||||||
<td>{{ $counter }}</td>
|
<td>{{ $counter }}</td>
|
||||||
<td>{{ $item['tarikh'] }}</td>
|
<td>{{ $item['tarikh'] }}</td>
|
||||||
@@ -246,7 +261,7 @@
|
|||||||
<td></td>
|
<td></td>
|
||||||
<td><b>{{ number_format($totalbayaranteller,2) }} </b></td>
|
<td><b>{{ number_format($totalbayaranteller,2) }} </b></td>
|
||||||
</tr>
|
</tr>
|
||||||
@php $counter = 0;$totalpembiayaanteller = 0; $totalbayaranteller = 0; @endphp
|
@php @endphp
|
||||||
@endif
|
@endif
|
||||||
@else
|
@else
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user