LAPORAN ANSURAN Tarikh Cetak: @php $myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak); $formattedweddingdate = $myDateTime->format('d-m-Y'); echo($formattedweddingdate) @endphp
TARIKH @php $myDateTime = DateTime::createFromFormat('Y-m-d', $tebus_date); $formattedweddingdate = $myDateTime->format('d-m-Y'); echo($formattedweddingdate) @endphp

@php $counter = 1;$totalduitmasuk = 0;$totalkeuntungan = 0; @endphp @foreach($tebus as $index=>$item) @php $totalduitmasuk += $item['duit_masuk'];$totalkeuntungan += $item['bayaran_keuntungan']; @endphp @php $counter++; @endphp @if($index+1 < sizeof($tebus)) @if($item['teller'] != $tebus[$index + 1]['teller']) @php $counter = 0; @endphp @endif @else @endif @endforeach
Bil No Rujukan Nama No K/P Tempoh Baki Pembiayaan (RM) Bayaran (RM) Keuntungan (RM)
{{ $counter }} {{$item['norujukan']}} @php $gadai_detail = Http::get($api_url . '/api/gadai/norujukan/'. $item['norujukan'])->json(); $customer_detail = Http::get($api_url . '/api/customers/' . $gadai_detail[0][0]['nokp'])->json(); echo $customer_detail['nama']; @endphp {{ $gadai_detail[0][0]['nokp'] }} {{ $gadai_detail[0][0]['tempoh'] }} {{ number_format($gadai_detail[0][0]['bakipjm'],2) }} {{ number_format($item['duit_masuk'],2) }} {{ number_format($item['bayaran_keuntungan'],2) }}
{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} {{ number_format($totalduitmasuk,2) }} {{ number_format($totalkeuntungan,2) }}
{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} {{ number_format($totalduitmasuk,2) }} {{ number_format($totalkeuntungan,2) }}


.................................................................. ..................................................................
DI SEMAK DI SAHKAN