{{-- --}} {{-- --}} {{-- --}}
LAPORAN PENEBUSAN 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; $totalbayaran = 0;@endphp @foreach($tebus as $index=>$item) @php $totalbayaran += $item['bakipjm'] @endphp @if($index > 0) @if($item['teller'] != $tebus[$index - 1]['teller']) @php $totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0; @endphp @endif @else @php $totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0; @endphp @endif @php $counter++; @endphp @php $totalpinjamanteller += $item['pinjaman'];$totalupahteller += $item['bakiupah'];$totalbayaranteller += $item['bakipjm']; @endphp @if($index+1 < sizeof($tebus)) @if($item['teller'] != $tebus[$index + 1]['teller']) @php $counter = 0; @endphp @endif @else @endif @endforeach
Bil Norujukan Nama No KP T Gadai T Tebus JBG Pembiayaan(RM) Upah/Keuntungan(RM) Bayaran(RM)
Teller : {{ $item['teller'] }}
Teller : {{ $item['teller'] }}
{{ $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[0]['nama']; @endphp {{$gadai_detail[0][0]['nokp']}} @php $myDateTime = DateTime::createFromFormat('Y-m-d', $gadai_detail[0][0]['t_gadai']); $formattedweddingdate = $myDateTime->format('d-m-Y'); echo($formattedweddingdate) @endphp {{$item['t_tebus']}} {{$item['jbg']}} {{$item['pinjaman']}} {{$item['bakiupah']}} {{$item['bakipjm']}}
{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} {{ number_format($totalpinjamanteller,2) }} {{ number_format($totalupahteller,2) }} {{ number_format($totalbayaranteller,2) }}
{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} {{ number_format($totalpinjamanteller,2) }} {{ number_format($totalupahteller,2) }} {{ number_format($totalbayaranteller,2) }}
JUMLAH KESELURUHAN BAYARAN : RM {{ number_format($totalbayaran,2) }}


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

Laporan Transaksi Penebusan


Bil Jenis Penebusan(RM) Keuntungan(RM) Rebate(RM)
{{ $tebuspengasingan['biltawarruq'] }} Tawarruq {{ number_format($tebuspengasingan['totaltawarruq'],2) }} {{ number_format($tebuspengasingan['keuntungantawarruq'],2) }} {{ number_format($tebuspengasingan['totalrebate'],2) }}
{{ $tebuspengasingan['bilarrahn'] }} Ar-Rahn {{ number_format($tebuspengasingan['totalarrahn'],2) }} {{ number_format($tebuspengasingan['keuntunganarrahn'],2) }} Not Applicable
{{ $upahlama['bil'] }} Bayaran Upah Not Applicable {{ number_format($upahlama['total'],2) }} Not Applicable