| Bil |
Norujukan |
Nama |
Alamat |
No K/P |
Masa |
Marhun |
Berat |
N Marhun |
Pembiayaan |
@php $counter = 0; @endphp
@foreach($gadai as $index=>$item)
@if($index > 0)
@if($item['teller'] != $gadai[$index - 1]['teller'])
| Teller : {{$item['teller']}} |
@endif
@else
| Teller : {{$item['teller']}} |
@endif
| {{$item['norujukan']}} |
@php
$customer_detail = Http::get($api_url . '/api/customers/' . $item['nokp'])->json();
echo $customer_detail[0]['nama'];
@endphp
|
{{$customer_detail[0]['alamat1']}} |
{{$item['nokp']}} |
{{$item['masa']}} |
{{$item['marhun']}} |
{{$item['berat']}} |
{{$item['nilaimarhun']}} |
{{$item['pinjaman'] . ' ' . $item['percentpinj'].'%'}} |
@php $counter++; @endphp
@if($index+1 < sizeof($gadai))
@if($item['teller'] != $gadai[$index + 1]['teller'])
| {{ $counter }} Jumlah Bagi Teller : {{$item['teller']}} |
@php $counter = 0; @endphp
@endif
@else
| {{ $counter }} Jumlah Bagi Teller : {{$item['teller']}} |
@endif
@endforeach