{{-- --}} {{-- --}} {{-- --}}
LAPORAN PENEBUSAN Tarikh Cetak: @php $myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak); $formattedweddingdate = $myDateTime->format('d-m-Y'); echo($formattedweddingdate) @endphp
Tarikh Mula: @php $myDateTime = DateTime::createFromFormat('Y-m-d', $mula_date); $formattedweddingdate = $myDateTime->format('d-m-Y'); echo($formattedweddingdate) @endphp Tarikh Hingga: @php $myDateTime = DateTime::createFromFormat('Y-m-d', $hingga_date); $formattedweddingdate = $myDateTime->format('d-m-Y'); echo($formattedweddingdate) @endphp

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


Pembiayaan (RM) Upah/Keuntungan (RM) Jumlah (RM)
JUMLAH KESELURUHAN {{ number_format($totalpinjaman,2) }} {{ number_format($totalupah,2) }} {{ number_format($totalbayaran,2) }}

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
{{--
JUMLAH KESELURUHAN BAYARAN : RM {{ number_format($totalbayaran,2) }}
--}}

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