{{-- --}} {{-- --}} {{-- --}}
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;$totalnm = 0; $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['hargajualan'] != $item['bakihargajualan']) ? $item['gadaibakipjm'] : $item['pinjaman']; $totalupah += $item['bakiupah']; $totalnm += $item['nilaimarhun'];@endphp @if($index > 0) @if($item['teller'] != $tebus[$index - 1]['teller']) @php $totalnmteller = 0; $totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0; @endphp @endif @else @php $totalnmteller = 0; $totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0; $totaljumlahteller = 0;@endphp @endif {{-- --}} @php $counter++; @endphp @php $totalnmteller += $item['nilaimarhun']; $totalpinjamanteller += ($item['hargajualan'] != $item['bakihargajualan']) ? $item['gadaibakipjm'] : $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 Masa JBG J Tebus Nilai Marhun(RM) Pembiayaan(RM)Baki Pembiayaan(RM)Upah/Keuntungan(RM) Bayaran(RM) Jumlah(RM)
Teller : {{ $item['teller'] }}
Teller : {{ $item['teller'] }}
{{ $counter }} {{ $item['norujukan'] }} {{ $item['nama'] }} {{ $item['nokp'] }} @php $dt = new DateTime($item['tarikh_bayaran']); $time = $dt->format('h:i:s'); echo date($time); @endphp {{ $item['jbg'] }} {{$item['jenistebus']}} {{ number_format($item['nilaimarhun'],2) }} @php if($item['hargajualan'] !== $item['bakihargajualan']) echo number_format($item['gadaibakipjm'],2); else echo number_format($item['pinjaman'],2); @endphp{{ number_format($item['gadaibakipjm'],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($totalnmteller,2) }} {{ 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($totalnmteller,2) }} {{ number_format($totalpinjamanteller,2) }} {{ number_format($totalupahteller,2) }} {{ number_format($totalbayaranteller,2) }} {{ number_format($totaljumlahteller,2) }}


Nilai Marhun (RM) Pembiayaan (RM) Upah/Keuntungan (RM) Jumlah (RM)
JUMLAH KESELURUHAN {{ number_format($totalnm,2) }} {{ 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) }}
--}}

{{ $ansuran['bilangan'] }} Ansuran Pembiayaan {{ number_format($ansuran['totalpendahuluan'],2) }} {{ number_format($ansuran['totalkeuntungan'],2) }} Not Applicable


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