diff --git a/resources/views/akaun/laporan_ansuran.blade.php b/resources/views/akaun/laporan_ansuran.blade.php
index 3fe8880..47f3c59 100644
--- a/resources/views/akaun/laporan_ansuran.blade.php
+++ b/resources/views/akaun/laporan_ansuran.blade.php
@@ -1,301 +1,346 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | LAPORAN ANSURAN |
- |
- |
- Tarikh Cetak:
+ #header {
+ font-family: Arial, Helvetica, sans-serif;
+ border-collapse: collapse;
+ width: 100%;
+ }
+
+ #header td, #customers th {
+
+ padding:4px;
+ font-size:10px;
+ }
+
+ #header tr:nth-child(even){background-color: #ffffff;}
+
+ #header tr:hover {background-color: #ddd;}
+
+ #header th {
+ padding-top: 12px;
+ padding-bottom: 12px;
+ text-align: left;
+ padding:4px;
+ color:black;
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | LAPORAN ANSURAN |
+
+
+ | Tarikh Bayaran:
+
@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);
+ $myDateTime = DateTime::createFromFormat('Y-m-d', $tebus_date);
+ $formattedweddingdate = $myDateTime->format('d-m-Y');
+ echo($formattedweddingdate)
+ @endphp
+
+ |
+
+
+ Tarikh Cetak:
+
+ @php
+ $myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
+ $formattedweddingdate = $myDateTime->format('d-m-Y');
+ echo($formattedweddingdate)
+ @endphp |
+
+
+
+
+
+
+
+ | Bil |
+ No Rujukan |
+ Nama |
+ No K/P |
+ Tarikh Bayaran |
+ Tempoh |
+ Baki Pembiayaan (RM) |
+ Bayaran Pemb. (RM) |
+ Ujrah(RM) |
+ Keuntungan 1% (RM) |
+ Keuntungan (RM) |
+ Bayaran (RM) |
+
+ @php
+ $counter = 1;
+ $totalduitmasuk = 0;
+ $totalkeuntungan = 0;
+ $totalpendahuluan = 0;
+ $totalujrah = 0;
+ $totalonepercent = 0;
+ @endphp
+ @foreach($tebus as $index=>$item)
+ @php
+ $totalduitmasuk += $item['duit_masuk'];
+ $totalkeuntungan += $item['bayaran_keuntungan'];
+ $totalpendahuluan += $item['bayaran_pembiayaan'];
+ $totalujrah += bcdiv(round($item['ansuranujrah'],2),1,1);
+ $totalonepercent += bcdiv(round($item['ansuranonepercent'],2),1,1);
+ @endphp
+
+ @if($index > 0)
+ @if($item['teller'] != $tebus[$index - 1]['teller'])
+
+ | Teller : {{ $item['teller'] }} |
+
+ @php
+ $totaldmteller = 0;
+ $totalupahteller = 0;
+ $totalpendhteller = 0;
+ $totalujrahteller = 0;
+ $totalonepercentteller = 0;
+ @endphp
+ @endif
+ @else
+
+ | Teller : {{ $item['teller'] }} |
+
+ @php
+ $totaldmteller = 0;
+ $totalupahteller = 0;
+ $totalpendhteller = 0;
+ $totalujrahteller = 0;
+ $totalonepercentteller = 0;
+ @endphp
+ @endif
+
+ | {{ $counter }} |
+ {{$item['norujukan']}} |
+ {{ $item['nama'] }} |
+ {{ $item['nokp'] }} |
+ @php
+ $myDateTime = DateTime::createFromFormat('Y-m-d H:i:s', $item['tarikh_bayaran']);
$formattedweddingdate = $myDateTime->format('d-m-Y');
echo($formattedweddingdate)
@endphp |
-
- |
- |
- |
- |
- |
- |
- |
-
-
+ | {{ $item['tempoh'] }} |
+ {{ number_format($item['bakipjm'],2) }} |
+ {{ number_format($item['bayaran_pembiayaan'],2) }} |
+ {{ number_format(bcdiv(round($item['ansuranujrah'],2),1,1),2) }} |
+ {{ number_format(bcdiv(round($item['ansuranonepercent'],2),1,1),2) }} |
+ {{ number_format($item['bayaran_keuntungan'],2) }} |
+ {{ number_format($item['duit_masuk'],2) }} |
+
+ @php $counter++; @endphp
+ @php
+ $totaldmteller += $item['duit_masuk'];
+ $totalupahteller += $item['bayaran_keuntungan'];
+ $totalpendhteller += $item['bayaran_pembiayaan'];
+ $totalujrahteller += bcdiv(round($item['ansuranujrah'],2),1,1);
+ $totalonepercentteller += bcdiv(round($item['ansuranonepercent'],2),1,1);
+ @endphp
-
-
-
- | Bil |
- No Rujukan |
- Nama |
- No K/P |
- Tempoh |
- Baki Pembiayaan (RM) |
- Bayaran Pemb. (RM) |
- Keuntungan (RM) |
- Bayaran (RM) |
-
- @php $counter = 1;$totalduitmasuk = 0;$totalkeuntungan = 0; $totalpendahuluan = 0;@endphp
- @foreach($tebus as $index=>$item)
- @php $totalduitmasuk += $item['duit_masuk'];$totalkeuntungan += $item['bayaran_keuntungan'];$totalpendahuluan += $item['bayaran_pembiayaan']; @endphp
- @if($index > 0)
- @if($item['teller'] != $tebus[$index - 1]['teller'])
-
- | Teller : {{ $item['teller'] }} |
-
- @php $totaldmteller = 0;$totalupahteller = 0;$totalpendhteller = 0; @endphp
- @endif
- @else
+ @if($index+1 < sizeof($tebus))
+ @if($item['teller'] != $tebus[$index + 1]['teller'])
+
+ | {{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} |
+ {{ number_format($totalpendhteller,2) }} |
+ {{ number_format($totalujrahteller,2) }} |
+ {{ number_format($totalonepercentteller,2) }} |
+ {{ number_format($totalupahteller,2) }} |
+ {{ number_format($totaldmteller,2) }} |
+
+ @php
+ $counter = 1;
+ $totaldmteller = 0;
+ $totalupahteller = 0;
+ $totalpendhteller = 0;
+ @endphp
+ @endif
+ @else
+
+ | {{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} |
+ {{ number_format($totalpendhteller,2) }} |
+ {{ number_format($totalujrahteller,2) }} |
+ {{ number_format($totalonepercentteller,2) }} |
+ {{ number_format($totalupahteller,2) }} |
+ {{ number_format($totaldmteller,2) }} |
+
+ @endif
+ @endforeach
+
+
+
+
- | Teller : {{ $item['teller'] }} |
+ |
+ Bayaran Pemb. (RM) |
+ Ujrah (RM) |
+ Keuntungan 1% (RM) |
+ Keuntungan (RM) |
+ Bayaran (RM) |
- @php $totaldmteller = 0;$totalupahteller = 0;$totalpendhteller = 0; @endphp
- @endif
- | {{ $counter }} |
- {{$item['norujukan']}} |
- {{ $item['nama'] }} |
- {{ $item['nokp'] }} |
- {{ $item['tempoh'] }} |
- {{ number_format($item['bakipjm'],2) }} |
- {{ number_format($item['bayaran_pembiayaan'],2) }} |
- {{ number_format($item['bayaran_keuntungan'],2) }} |
- {{ number_format($item['duit_masuk'],2) }} |
+ JUMLAH KESELURUHAN |
+ {{ number_format($totalpendahuluan,2) }} |
+ {{ number_format($totalujrah,2) }} |
+ {{ number_format($totalonepercent,2) }} |
+ {{ number_format($totalkeuntungan,2) }} |
+ {{ number_format($totalduitmasuk,2) }} |
- @php $counter++; @endphp
- @php $totaldmteller += $item['duit_masuk'];$totalupahteller += $item['bayaran_keuntungan'];$totalpendhteller += $item['bayaran_pembiayaan']; @endphp
- @if($index+1 < sizeof($tebus))
- @if($item['teller'] != $tebus[$index + 1]['teller'])
-
- | {{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} |
- {{ number_format($totalpendhteller,2) }} |
- {{ number_format($totalupahteller,2) }} |
- {{ number_format($totaldmteller,2) }} |
-
- @php $counter = 1;$totaldmteller = 0;$totalupahteller = 0;$totalpendhteller = 0;@endphp
- @endif
- @else
-
- | {{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} |
- {{ number_format($totalpendhteller,2) }} |
- {{ number_format($totalupahteller,2) }} |
- {{ number_format($totaldmteller,2) }} |
-
- @endif
- @endforeach
-
-
-
-
-
- |
- Bayaran Pemb. (RM) |
- Keuntungan (RM) |
- Bayaran (RM) |
-
-
- | JUMLAH KESELURUHAN |
- {{ number_format($totalpendahuluan,2) }} |
- {{ number_format($totalkeuntungan,2) }} |
- {{ number_format($totalduitmasuk,2) }} |
-
-
-
-
-
-
-
- |
- .................................................................. |
- |
- .................................................................. |
- |
-
-
- |
- DI SEMAK |
- |
- DI SAHKAN |
- |
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ |
+ .................................................................. |
+ |
+ .................................................................. |
+ |
+
+
+ |
+ DI SEMAK |
+ |
+ DI SAHKAN |
+ |
+
+
\ No newline at end of file
diff --git a/resources/views/akaun/laporan_gadaian.blade.php b/resources/views/akaun/laporan_gadaian.blade.php
index 1943478..5527150 100644
--- a/resources/views/akaun/laporan_gadaian.blade.php
+++ b/resources/views/akaun/laporan_gadaian.blade.php
@@ -219,24 +219,55 @@
Berat |
N Marhun |
Pembiayaan |
+ Ujrah |
+ Keuntungan 1% |
Keuntungan |
Peratus (%) |
- @php $counter = 1; $totalpinjaman = 0; $totalberat = 0; $totalnm = 0; $totalupah = 0; $bil = 0;@endphp
+ @php
+ $counter = 1;
+ $totalpinjaman = 0;
+ $totalberat = 0;
+ $totalnm = 0;
+ $totalupah = 0;
+ $bil = 0;
+ $full_total_ujrah = 0;
+ $full_total_onepercent = 0;
+ @endphp
@foreach($gadai as $index=>$item)
- @php $totalpinjaman += $item['pinjaman']; $totalberat += $item['berat']; $totalnm += $item['nilaimarhun']; $totalupah += $item['upah12']; @endphp
+ @php
+ $totalpinjaman += $item['pinjaman'];
+ $totalberat += $item['berat'];
+ $totalnm += $item['nilaimarhun'];
+ $totalupah += $item['upah12'];
+ $full_total_ujrah += $item['ujrah']*12;
+ $full_total_onepercent += $item['onepercent']*12;
+ @endphp
@if($index > 0)
@if($item['teller'] != $gadai[$index - 1]['teller'])
| Teller : {{ $item['teller'] }} |
- @php $totalpinjamanteller = 0;$totalnmteller = 0;$totalberatteller = 0; @endphp
+ @php
+ $totalpinjamanteller = 0;
+ $totalnmteller = 0;
+ $totalberatteller = 0;
+ $totalujrah = 0;
+ $totalonepercent = 0;
+ @endphp
@endif
@else
| Teller : {{ $item['teller'] }} |
- @php $totalpinjamanteller = 0;$totalnmteller = 0;$totalberatteller = 0;$totalupah12 = 0; @endphp
+ @php
+ $totalpinjamanteller = 0;
+ $totalnmteller = 0;
+ $totalberatteller = 0;
+ $totalupah12 = 0;
+ $totalujrah = 0;
+ $totalonepercent= 0;
+ @endphp
@endif
@@ -252,11 +283,20 @@
| {{ number_format($item['berat'],2) }} |
{{ number_format($item['nilaimarhun'],2) }} |
{{ number_format($item['pinjaman'],2) }} |
+ {{ number_format($item['ujrah']*12,2) }} |
+ {{ number_format($item['onepercent']*12,2) }} |
{{ number_format($item['upah12'],2) }} |
{{ $item['percentpinj'] }} |
@php $counter++; @endphp
- @php $totalpinjamanteller += $item['pinjaman'];$totalnmteller += $item['nilaimarhun'];$totalberatteller += $item['berat'];$totalupah12 += $item['upah12']; @endphp
+ @php
+ $totalpinjamanteller += $item['pinjaman'];
+ $totalnmteller += $item['nilaimarhun'];
+ $totalberatteller += $item['berat'];
+ $totalupah12 += $item['upah12'];
+ $totalujrah += $item['ujrah']*12;
+ $totalonepercent += $item['onepercent']*12;
+ @endphp
@if($index+1 < sizeof($gadai))
@if($item['teller'] != $gadai[$index + 1]['teller'])
@php if($item['teller'] != '')$bil += ($counter-1); @endphp
@@ -265,10 +305,19 @@
{{ number_format($totalberatteller,2) }} |
{{ number_format($totalnmteller,2) }} |
{{ number_format($totalpinjamanteller,2) }} |
+ {{ number_format($totalujrah,2) }} |
+ {{ number_format($totalonepercent,2) }} |
{{ number_format($totalupah12,2) }} |
- @php $counter = 1;$totalupah12 = 0;$totalpinjamanteller = 0;$totalnmteller = 0; @endphp
+ @php
+ $counter = 1;
+ $totalupah12 = 0;
+ $totalpinjamanteller = 0;
+ $totalnmteller = 0;
+ $totalujrah = 0;
+ $totalonepercent = 0;
+ @endphp
@endif
@else
@php $bil += ($counter-1); @endphp
@@ -277,6 +326,8 @@
{{ number_format($totalberatteller,2) }} |
{{ number_format($totalnmteller,2) }} |
{{ number_format($totalpinjamanteller,2) }} |
+ {{ number_format($totalujrah,2) }} |
+ {{ number_format($totalonepercent,2) }} |
{{ number_format($totalupah12,2) }} |
@@ -290,6 +341,8 @@
Berat (g/m) |
Nilai Marhun (RM) |
Pembiayaan (RM) |
+ Ujrah (RM) |
+ Keuntungan 1% (RM) |
Upah/Keuntungan (RM) |
@@ -297,6 +350,8 @@
| {{ number_format($totalberat,2) }} |
{{ number_format($totalnm,2) }} |
{{ number_format($totalpinjaman,2) }} |
+ {{ number_format($full_total_ujrah,2) }} |
+ {{ number_format($full_total_onepercent,2) }} |
{{ number_format($totalupah,2) }} |
diff --git a/resources/views/akaun/laporan_penebusan.blade.php b/resources/views/akaun/laporan_penebusan.blade.php
index 5082370..8591342 100644
--- a/resources/views/akaun/laporan_penebusan.blade.php
+++ b/resources/views/akaun/laporan_penebusan.blade.php
@@ -1,397 +1,495 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | 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 |
-
- |
-
-
-
-
-
-
- | Bil |
- Norujukan |
- Nama |
- No KP |
- Masa |
- JBG |
- J Tebus |
- Nilai Marhun(RM) |
- P. Asal(RM) |
- B.Pembiayaan(RM) |
- {{-- Baki Pembiayaan(RM) | --}}
- Keuntungan(RM) |
- Bayaran(RM) |
- Jumlah(RM) |
-
- @php $counter = 1;$totalnm = 0; $totalbayaran = 0;$totalpinjamanasal = 0; $totalpinjaman = 0; $totalupah = 0;@endphp
- @foreach($tebus as $index=>$item)
- @php $totalbayaran += ($item['jenistebus'] === 'S') ? ($item['gadaibakipjm']+$item['bakiupah']) : $item['bakipjm']; $totalpinjaman += ($item['hargajualan'] != $item['bakihargajualan']) ? $item['gadaibakipjm'] : $item['pinjaman']; $totalupah += $item['bakiupah'];$totalpinjamanasal += $item['pinjaman']; $totalnm += $item['nilaimarhun'];@endphp
- @if($index > 0)
- @if($item['teller'] != $tebus[$index - 1]['teller'])
-
- | Teller : {{ $item['teller'] }} |
-
- @php $totalnmteller = 0;$totalpinjamanasalteller = 0; $totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0; @endphp
- @endif
- @else
-
- | Teller : {{ $item['teller'] }} |
-
- @php $totalnmteller = 0;$totalpinjamanasalteller = 0; $totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0; $totaljumlahteller = 0;@endphp
- @endif
+
+ #header td, #customers th {
+
+ padding:4px;
+ font-size:10px;
+ }
+
+ #header tr:nth-child(even){background-color: #ffffff;}
+
+ #header tr:hover {background-color: #ddd;}
+
+ #header th {
+ padding-top: 12px;
+ padding-bottom: 12px;
+ text-align: left;
+ padding:4px;
+ color:black;
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
- | JUMLAH BILANGAN = {{ $tebuspengasingan['biltawarruq'] + $tebuspengasingan['bilarrahn'] }} |
- Nilai Marhun (RM) |
- Pembiayaan Asal(RM) |
- B. Pembiayaan (RM) |
- Keuntungan Rebet(RM) |
- Upah/Keuntungan (RM) |
- Keuntungan Sebenar(RM) |
- Jumlah (RM) |
-
-
- | JUMLAH KESELURUHAN |
- {{ number_format($totalnm,2) }} |
- {{ number_format($totalpinjamanasal,2) }} |
- {{ number_format($totalpinjaman,2) }} |
- @php $totalkeuntunganrebet = ($totalpinjaman + $totalupah) - $totalbayaran;echo number_format($totalkeuntunganrebet,2); @endphp |
- {{ number_format($totalupah,2) }} |
- {{ number_format($totalupah - $totalkeuntunganrebet,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['bilkaunter'] }} |
- Bayaran Upah |
- Not Applicable |
- {{ number_format($upahlama['totalkaunter'],2) }} |
- Not Applicable |
-
-
- | {{ $upahlama['bilonline'] }} |
- Bayaran Upah Online |
- Not Applicable |
- {{ number_format($upahlama['totalonline'],2) }} |
- Not Applicable |
-
-
- | {{ $ansuran['bilangankaunter'] }} |
- Ansuran Pembiayaan |
- {{ number_format($ansuran['totalpendahuluankaunter'],2) }} |
- {{ number_format($ansuran['totalkeuntungankaunter'],2) }} |
- Not Applicable |
-
-
- | {{ $ansuran['bilanganonline'] }} |
- Ansuran Pembiayaan Online |
- {{ number_format($ansuran['totalpendahuluanonline'],2) }} |
- {{ number_format($ansuran['totalkeuntunganonline'],2) }} |
- Not Applicable |
-
-
-
-{{-- JUMLAH KESELURUHAN BAYARAN : RM {{ number_format($totalbayaran,2) }}
--}}
-
-
-
-
-
-
- |
- .................................................................. |
- |
- .................................................................. |
- |
-
-
- |
- DI SEMAK |
- |
- DI SAHKAN |
- |
-
-
+
+ | {{ $cawangan_detail['namacaw'] }} |
+ |
+
+
+ | {{ $cawangan_detail['alamat1'] }} |
+ |
+
+
+ | {{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }} |
+ |
+
+
+
+
+
+
+ | LAPORAN PENEBUSAN |
+
+
+
+ | Tarikh Mula:
+
+ @php
+ $myDateTime = DateTime::createFromFormat('Y-m-d', $tebus_date);
+ $formattedweddingdate = $myDateTime->format('d-m-Y');
+ echo($formattedweddingdate)
+ @endphp
+
+ |
+
+ Tarikh Cetak:
+
+ @php
+ $myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
+ $formattedweddingdate = $myDateTime->format('d-m-Y');
+ echo($formattedweddingdate)
+ @endphp |
+
+
+
+
+
+
+
+ | Bil |
+ Norujukan |
+ Nama |
+ No KP |
+ Tarikh Tebus |
+ Masa |
+ JBG |
+ J Tebus |
+ Nilai Marhun(RM) |
+ P. Asal(RM) |
+ B.Pembiayaan(RM) |
+ Ujrah(RM) |
+ Untung 1%(RM) |
+ Pendapatan(RM) |
+ Bayaran(RM) |
+ Jumlah(RM) |
+
+ @php
+ $counter = 1;
+ $totalnm = 0;
+ $totalbayaran = 0;
+ $totalpinjamanasal = 0;
+ $totalpinjaman = 0;
+ $totalupah = 0;
+ $totalujrah = 0;
+ $totalonepercent = 0;
+ @endphp
+ @foreach($tebus as $index=>$item)
+ @php
+ $totalbayaran += ($item['jenistebus'] === 'S') ? ($item['gadaibakipjm']+$item['bakiupah']) : $item['bakipjm'];
+ $totalpinjaman += ($item['hargajualan'] != $item['bakihargajualan']) ? $item['gadaibakipjm'] : $item['pinjaman'];
+ $totalupah += $item['bakiupah'];
+ $totalpinjamanasal += $item['pinjaman'];
+ $totalnm += $item['nilaimarhun'];
+ $totalujrah += $item['ujrah'];
+ $totalonepercent += $item['onepercent'];
+ @endphp
+ @if($index > 0)
+ @if($item['teller'] != $tebus[$index - 1]['teller'])
+
+ | Teller : {{ $item['teller'] }} |
+
+ @php
+ $totalnmteller = 0;
+ $totalpinjamanasalteller = 0;
+ $totalpinjamanteller = 0;
+ $totalupahteller = 0;
+ $totalbayaranteller = 0;
+ $totalujrahteller = 0;
+ $totalonepercentteller = 0;
+ @endphp
+ @endif
+ @else
+
+ | Teller : {{ $item['teller'] }} |
+
+ @php
+ $totalnmteller = 0;
+ $totalpinjamanasalteller = 0;
+ $totalpinjamanteller = 0;
+ $totalupahteller = 0;
+ $totalbayaranteller = 0;
+ $totaljumlahteller = 0;
+ $totalujrahteller = 0;
+ $totalonepercentteller = 0;
+ @endphp
+ @endif
+
+ | {{ $counter }} |
+ {{ $item['norujukan'] }} |
+ {{ $item['nama'] }} |
+ {{ $item['nokp'] }} |
+
+ @php
+ $dt = new DateTime($item['tarikh_bayaran']);
+ $time = $dt->format('d-m-Y');
+ echo date($time);
+ @endphp
+ |
+
+ @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) }}
+ |
+ {{ number_format($item['pinjaman'],2) }} |
+
+ @php
+ if($item['hargajualan'] !== $item['bakihargajualan'])
+ echo number_format($item['gadaibakipjm'],2);
+ else
+ echo number_format($item['pinjaman'],2);
+ @endphp
+ |
+ {{ number_format($item['ujrah'],2) }} |
+ {{ number_format($item['onepercent'],2) }} |
+ {{ number_format($item['bakiupah'],2) }} |
+ {{ number_format($item['bakipjm'],2) }} |
+ @php if($item['jenistebus'] == 'S'){ $total=($item['gadaibakipjm']+$item['bakiupah']);echo number_format($total,2);} else echo number_format($item['bakipjm'],2); @endphp |
+
+ @php $counter++; @endphp
+ @php
+ $totalnmteller += $item['nilaimarhun'];
+ $totalpinjamanasalteller += $item['pinjaman'];
+ $totalpinjamanteller += ($item['hargajualan'] != $item['bakihargajualan']) ? $item['gadaibakipjm'] : $item['pinjaman'];
+ $totalupahteller += $item['bakiupah'];$totalbayaranteller += $item['bakipjm'];
+ $totalujrahteller += $item['ujrah'];
+ $totalonepercentteller += $item['onepercent'];
+ @endphp
+ @php
+ $totaljumlahteller += ($item['jenistebus'] === 'S') ? ($item['gadaibakipjm']+$item['bakiupah']) : $item['bakipjm'];
+ @endphp
+ @if($index+1 < sizeof($tebus))
+ @if($item['teller'] != $tebus[$index + 1]['teller'])
+
+ | {{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} |
+ {{ number_format($totalnmteller,2) }} |
+ {{ number_format($totalpinjamanasalteller,2) }} |
+ {{ number_format($totalpinjamanteller,2) }} |
+ {{ number_format($totalujrahteller,2) }} |
+ {{ number_format($totalonepercentteller,2) }} |
+ {{ number_format($totalupahteller,2) }} |
+ {{ number_format($totalbayaranteller,2) }} |
+ {{ number_format($totaljumlahteller,2) }} |
+
+ @php
+ $counter = 1;
+ $totalpinjamanasalteller = 0;
+ $totalpinjamanteller = 0;
+ $totalupahteller = 0;
+ $totalbayaranteller = 0;
+ $totaljumlahteller = 0;
+ $totalujrahteller = 0;
+ $totalonepercentteller = 0;
+ @endphp
+ @endif
+ @else
+
+ | {{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} |
+ {{ number_format($totalnmteller,2) }} |
+ {{ number_format($totalpinjamanasalteller,2) }} |
+ {{ number_format($totalpinjamanteller,2) }} |
+ {{ number_format($totalujrahteller,2) }} |
+ {{ number_format($totalonepercentteller,2) }} |
+ {{ number_format($totalupahteller,2) }} |
+ {{ number_format($totalbayaranteller,2) }} |
+ {{ number_format($totaljumlahteller,2) }} |
+
+ @endif
+ @endforeach
+
+
+
+
+
+ | JUMLAH BILANGAN = {{ $tebuspengasingan['biltawarruq'] + $tebuspengasingan['bilarrahn'] }} |
+ Nilai Marhun (RM) |
+ Pembiayaan Asal(RM) |
+ B. Pembiayaan (RM) |
+ Keuntungan Rebet(RM) |
+ Ujrah (RM) |
+ Untung 1% (RM) |
+ Pendapatan Kasar (RM) |
+ Pendapatan Sebenar(RM) |
+ Jumlah (RM) |
+
+
+ | JUMLAH KESELURUHAN |
+ {{ number_format($totalnm,2) }} |
+ {{ number_format($totalpinjamanasal,2) }} |
+ {{ number_format($totalpinjaman,2) }} |
+ @php $totalkeuntunganrebet = ($totalpinjaman + $totalupah) - $totalbayaran;
+ echo number_format($totalkeuntunganrebet,2);
+ @endphp |
+ {{ number_format($totalujrah,2) }} |
+ {{ number_format($totalonepercent,2) }} |
+ {{ number_format($totalupah,2) }} |
+ {{ number_format($totalupah - $totalkeuntunganrebet,2) }} |
+ {{ number_format($totalbayaran,2) }} |
+
+
+
+ Laporan Transaksi Penebusan
+
+
+
+
+ | Bil |
+ Jenis |
+ Penebusan(RM) |
+ Ujrah(RM) |
+ Untung 1% (RM) |
+ Pendapatan(RM) |
+ Rebate(RM) |
+
+
+ | {{ $tebuspengasingan['biltawarruq'] }} |
+ Tawarruq |
+ {{ number_format($tebuspengasingan['totaltawarruq'],2) }} |
+ {{ number_format($tebuspengasingan['ujrahtawarruq'],2) }} |
+ {{ number_format($tebuspengasingan['onepercenttawarruq'],2) }} |
+ {{ number_format($tebuspengasingan['keuntungantawarruq'],2) }} |
+ {{ number_format($tebuspengasingan['totalrebate'],2) }} |
+
+
+ | {{ $tebuspengasingan['bilarrahn'] }} |
+ Ar-Rahn |
+ {{ number_format($tebuspengasingan['totalarrahn'],2) }} |
+ {{ number_format($tebuspengasingan['ujraharrahn'],2) }} |
+ {{ number_format($tebuspengasingan['onepercentarrahn'],2) }} |
+ {{ number_format($tebuspengasingan['keuntunganarrahn'],2) }} |
+ Not Applicable |
+
+
+ | {{ $upahlama['bilkaunter'] }} |
+ Bayaran Upah |
+ Not Applicable |
+ Not Applicable |
+ Not Applicable |
+ {{ number_format($upahlama['totalkaunter'],2) }} |
+ Not Applicable |
+
+
+ | {{ $upahlama['bilonline'] }} |
+ Bayaran Upah Online |
+ Not Applicable |
+ Not Applicable |
+ Not Applicable |
+ {{ number_format($upahlama['totalonline'],2) }} |
+ Not Applicable |
+
+
+ | {{ $ansuran['bilangankaunter'] }} |
+ Ansuran Pembiayaan |
+ {{ number_format($ansuran['totalpendahuluankaunter'],2) }} |
+ {{ number_format($ansuran['totalujrahkaunter'],2) }} |
+ {{ number_format($ansuran['totalonepercentkaunter'],2) }} |
+ {{ number_format($ansuran['totalkeuntungankaunter'],2) }} |
+ Not Applicable |
+
+
+ | {{ $ansuran['bilanganonline'] }} |
+ Ansuran Pembiayaan Online |
+ {{ number_format($ansuran['totalpendahuluanonline'],2) }} |
+ {{ number_format($ansuran['totalujrahonline'],2) }} |
+ {{ number_format($ansuran['totalonepercentonline'],2) }} |
+ {{ number_format($ansuran['totalkeuntunganonline'],2) }} |
+ Not Applicable |
+
+
+
+
+
+
+
+
+
+ |
+ .................................................................. |
+ |
+ .................................................................. |
+ |
+
+
+ |
+ DI SEMAK |
+ |
+ DI SAHKAN |
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/routes/web.php b/routes/web.php
index 923d351..d6455f8 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -151,9 +151,9 @@ Route::get('/audit/cetakan', ['as'=>'audit.cetak','uses'=>'App\Http\Controllers\
//Tetapan Server
-Route::get('/tetapan',['as'=>'tetapan','uses'=>'App\Http\Controllers\TetapanController@index'])->middleware(['roleChecker:null,null,operasi,null']);
-Route::get('/tetapanhome',['as'=>'tetapan.home','uses'=>'App\Http\Controllers\TetapanController@home'])->middleware(['roleChecker:null,null,operasi,null']);
-Route::get('/tetapanmargin',['as'=>'tetapan.margin','uses'=>'App\Http\Controllers\TetapanController@margin'])->middleware(['roleChecker:null,null,operasi,null']);
+Route::get('/tetapan',['as'=>'tetapan','uses'=>'App\Http\Controllers\TetapanController@index'])->middleware(['roleChecker:null,null,operasi,null,null']);
+Route::get('/tetapanhome',['as'=>'tetapan.home','uses'=>'App\Http\Controllers\TetapanController@home'])->middleware(['roleChecker:null,null,operasi,null,null']);
+Route::get('/tetapanmargin',['as'=>'tetapan.margin','uses'=>'App\Http\Controllers\TetapanController@margin'])->middleware(['roleChecker:null,null,operasi,null,null']);
//Pengguna