| Bil |
No Rujukan |
Nama |
No K/P |
Tempoh |
Baki Pembiayaan (RM) |
Bayaran Pemb. (RM) |
Keuntungan (RM) |
Bayaran (RM) |
@php $counter = 1;$totalduitmasuk = 0;$totalkeuntungan = 0; $totalpendahuluan = 0;@endphp
@foreach($tebus as $index=>$item)
@php $totalduitmasuk += $item['duit_masuk'];$totalkeuntungan += $item['bayaran_keuntungan'];$totalpendahuluan += $item['bayaran_pembiayaan']; @endphp
@if($index > 0)
@if($item['teller'] != $tebus[$index - 1]['teller'])
| Teller : {{ $item['teller'] }} |
@php $totaldmteller = 0;$totalupahteller = 0;$totalpendhteller = 0; @endphp
@endif
@else
| Teller : {{ $item['teller'] }} |
@php $totaldmteller = 0;$totalupahteller = 0;$totalpendhteller = 0; @endphp
@endif
| {{ $counter }} |
{{$item['norujukan']}} |
{{ $item['nama'] }} |
{{ $item['nokp'] }} |
{{ $item['tempoh'] }} |
{{ number_format($item['bakipjm'],2) }} |
{{ number_format($item['bayaran_pembiayaan'],2) }} |
{{ number_format($item['bayaran_keuntungan'],2) }} |
{{ number_format($item['duit_masuk'],2) }} |
@php $counter++; @endphp
@php $totaldmteller += $item['duit_masuk'];$totalupahteller += $item['bayaran_keuntungan'];$totalpendhteller += $item['bayaran_pembiayaan']; @endphp
@if($index+1 < sizeof($tebus))
@if($item['teller'] != $tebus[$index + 1]['teller'])
| {{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} |
{{ number_format($totalpendhteller,2) }} |
{{ number_format($totalupahteller,2) }} |
{{ number_format($totaldmteller,2) }} |
@php $counter = 1;$totaldmteller = 0;$totalupahteller = 0;$totalpendhteller = 0;@endphp
@endif
@else
| {{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} |
{{ number_format($totalpendhteller,2) }} |
{{ number_format($totalupahteller,2) }} |
{{ number_format($totaldmteller,2) }} |
@endif
@endforeach