diff --git a/app/Http/Controllers/SemakController.php b/app/Http/Controllers/SemakController.php index 3e98528..219cee0 100644 --- a/app/Http/Controllers/SemakController.php +++ b/app/Http/Controllers/SemakController.php @@ -29,6 +29,7 @@ class SemakController extends Controller public function SenaraiSAG(Request $request) { + $api_url = config('api.url'); $validated = $request->validate([ 'sltcawangan' => 'required', @@ -41,7 +42,7 @@ class SemakController extends Controller $sudah_tebus = Http::get(config('api.url') . '/api/customers/'. $auth_user['icno'] . '/gadai/' . 'sudah_tebus/' . $request->sltcawangan)->json(); // return view('semak.senaraisag', compact('belum_tebus','sudah_tebus')); - return view('includes.rekod.rekodsag', compact('belum_tebus','sudah_tebus', 'validated')); + return view('includes.rekod.rekodsag', compact('belum_tebus','sudah_tebus', 'validated','api_url')); } public function PenyataSummary($kodcaw,$norujukan) @@ -108,4 +109,67 @@ class SemakController extends Controller return view('penyata.penyata',compact('cawangan_detail','transaction','customer','gadai','api_url')); } + + public function resittebus($kodcaw,$norujukan) + { + + $auth_user = Auth::user(); + + $cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $kodcaw)->json(); + + $gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $norujukan)->json(); + + $totaltransaction = 0; + + $transaction = Http::get(config('api.url') . '/api/transaction/'. $norujukan)->json(); + + foreach($transaction as $trans) + { + $totaltransaction += $trans['duit_masuk']; + } + + + if(sizeof($gadai) != 0) + $gadai = $gadai[0][0]; + + $customers_info = Http::get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json(); + + $penebusan = Http::get(config('api.url') . '/api/listpenebusanhistory/' . $kodcaw,[ "norujukan" => $norujukan])->json(); + + if(sizeof($penebusan) != 0) + $penebusan = $penebusan[0]; + + $wakil = Http::get(config('api.url') . '/api/getwakil/' . $kodcaw . '/code/' . $penebusan['nowakil'])->json(); + + $totalBayaranAnsuran = Http::get(config('api.url') . '/api/transaction/norujukan/total/ansuran',['norujukan'=>$norujukan])->json(); + + // dd($wakil); + if(sizeof($wakil) != 0) + $wakil = $wakil[0]; + + return view('resit.resittebus',compact('transaction','gadai','cawangan_info','customers_info','penebusan','wakil','totaltransaction','totalBayaranAnsuran')); + } + + public function resit($id) + { + + $totaltransaction = 0; + + $transaction = Http::get(config('api.url') . '/api/transaction/id/'. $id)->json(); + + if(sizeof($transaction) != 0) + $transaction = $transaction[0]; + + $gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $transaction['norujukan'])->json(); + + if(sizeof($gadai) != 0) + $gadai = $gadai[0][0]; + + $customers_info = Http::get(config('api.url') . '/api/customers/'. $gadai['nokp'])->json(); + + // if(sizeof($customers_info) != 0) + // $customers_info = $customers_info[0]; + + return view('resit.resitansuran',compact('transaction','gadai','customers_info')); + } } diff --git a/public/argon/img/brand/pkb.png b/public/argon/img/brand/pkb.png new file mode 100644 index 0000000..5d03d4a Binary files /dev/null and b/public/argon/img/brand/pkb.png differ diff --git a/resources/views/includes/analisaportal.blade.php b/resources/views/includes/analisaportal.blade.php index 3df6afc..c6e4af6 100644 --- a/resources/views/includes/analisaportal.blade.php +++ b/resources/views/includes/analisaportal.blade.php @@ -106,7 +106,7 @@
-
+
@@ -144,7 +144,7 @@
-
+
@@ -170,7 +170,7 @@
-
+
@@ -180,11 +180,11 @@
- - +
+ - + @@ -204,7 +204,7 @@
-
+
@@ -214,8 +214,8 @@
-
No. SAGPinjamanPembiayaan (RM)
- +
+ diff --git a/resources/views/includes/bayaran/pembayaransag.blade.php b/resources/views/includes/bayaran/pembayaransag.blade.php index b16e4d2..a0f5b91 100644 --- a/resources/views/includes/bayaran/pembayaransag.blade.php +++ b/resources/views/includes/bayaran/pembayaransag.blade.php @@ -362,7 +362,7 @@ $("select[name=sltbayaran]").change(function(e) { let selected = $('option:selected', this).attr('value'); let jenis = $(this).data('jenis'); - let upah = $(this).data('upah'); + let upah = parseFloat($(this).data('upah').replace(",","")); let taglel = $(this).data('taglel'); if (selected === 'fixed') { @@ -383,7 +383,7 @@ $("input[name=txtbayaranarrahn]").change(function(e) { - let upah = $(this).data('upah'); + let upah = parseFloat($(this).data('upah').replace(",","")); let pinjaman = $(this).data('pinjaman'); let jenis = $(this).data('jenis'); let nm = $(this).data('nm'); @@ -414,7 +414,7 @@ $("input[name=txtbayarantawarruq]").change(function(e) { - let upah = $(this).data('upah'); + let upah = parseFloat($(this).data('upah').replace(",","")); let bakipinjam = $(this).data('bakipjm'); let jenis = $(this).data('jenis'); let nm = $(this).data('nm'); diff --git a/resources/views/includes/bayaran/senaraibayaransag.blade.php b/resources/views/includes/bayaran/senaraibayaransag.blade.php index 8d7cb91..0aef399 100644 --- a/resources/views/includes/bayaran/senaraibayaransag.blade.php +++ b/resources/views/includes/bayaran/senaraibayaransag.blade.php @@ -58,13 +58,11 @@ @csrf
-
- -
- + + Maksimum pilihan untuk pembayaran SAG tidak lebih daripada 3 SAG sahaja..
-
Karat Harga (RM)
- +
+ @@ -146,8 +144,6 @@
# Ar-Rahn

-
-
diff --git a/resources/views/includes/rekod/rekodsag.blade.php b/resources/views/includes/rekod/rekodsag.blade.php index e00e1f1..a3ba570 100644 --- a/resources/views/includes/rekod/rekodsag.blade.php +++ b/resources/views/includes/rekod/rekodsag.blade.php @@ -1,6 +1,6 @@ @extends('layouts.indexthird') - @section('content') +@include('modal.historybayaran') Senarai SAG | Customer Portal @@ -27,7 +27,7 @@
Cawangan : {{ $validated['namacawangan'] }}
- +
--}}
Transaksi Bayaran
- - +
+ @@ -108,7 +108,8 @@ @@ -148,8 +149,8 @@
-
No Rujukan Pembiayaan Asal
- +
+ @@ -168,7 +169,7 @@ @@ -191,7 +192,7 @@ {{ $st['sttebus'] }} @endif @@ -204,24 +205,10 @@ @endsection \ No newline at end of file diff --git a/resources/views/modal/historybayaran.blade.php b/resources/views/modal/historybayaran.blade.php new file mode 100644 index 0000000..7c40282 --- /dev/null +++ b/resources/views/modal/historybayaran.blade.php @@ -0,0 +1,69 @@ + + {{--
No Rujukan Pinjaman - {{ $st['t_update'] }} + {{ date("d-m-Y", strtotime($st['t_update'])) }}
+ + + + + + + + + + + +
BilTarikh BayaranBayaranAction
+
+ + +
+
+
--}} + + + + + diff --git a/resources/views/resit/resitansuran.blade.php b/resources/views/resit/resitansuran.blade.php new file mode 100644 index 0000000..d7586aa --- /dev/null +++ b/resources/views/resit/resitansuran.blade.php @@ -0,0 +1,557 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
User Image User Image
+ + + + + + + + + + +
Salinan Pelanggan
RESIT BAYARAN
+ +
+ + + + + + + + + + + + + + + + + + + + +
Marhun : {{ $gadai['marhun'] }} No SAG: {{ $transaction['norujukan'] }}
Nama : {{ $customers_info['nama'] }} Tarikh Bayar: @php $time = new DateTime($transaction['created_at']); $date = $time->format('d/m/Y'); echo $date; @endphp
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpanan: {{ $gadai['tempoh'] }}
Nama Wakil :
No K/P Wakil :
+
+ +

A

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Harga Jualan/Baki: RM {{ number_format(($transaction['bakiharga'] + $transaction['duit_masuk']),2) }} Pembiayaan/Baki: RM {{ number_format(($gadai['bakipjm']+$transaction['bayaran_pembiayaan']),2) }}
Bayaran Harga Jualan: RM {{ number_format($transaction['duit_masuk'],2) }} Ansuran Pembiyaan: RM {{ number_format($transaction['bayaran_pembiayaan'],2) }}
Baki Harga Jualan: RM {{ number_format($transaction['bakiharga'],2) }}Baki Pembiayaan: RM {{ number_format($gadai['bakipjm'],2) }}
Keuntungan: RM {{ number_format($transaction['bayaran_keuntungan'],2) }}
+

* Keuntungan sebenar atas setiap baki pembiayaan akan direbat semasa penebusan

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
.................................................... .................................................... .................................................... ....................................................
DiSemak Cagaran Di KeluarkanCagaran Diterima Ar-Rahn
{{ Auth::user()->name }}
+
+
+
+ +
+
+ + + + + + + + + + + + + +
Salinan Pejabat
RESIT BAYARAN
+ +
+ + + + + + + + + + + + + + + + + + + + +
Marhun : {{ $gadai['marhun'] }} No SAG: {{ $transaction['norujukan'] }}
Nama : {{ $customers_info['nama'] }} Tarikh Bayar: @php $time = new DateTime($transaction['created_at']); $date = $time->format('d/m/Y'); echo $date; @endphp
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpan: {{ $gadai['tempoh'] }}
Nama Wakil :
No K/P Wakil :
+
+ +

A

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Harga Jualan/Baki: RM {{ number_format(($transaction['bakiharga'] + $transaction['duit_masuk']),2) }} Pembiayaan/Baki: RM {{ number_format(($gadai['bakipjm']+$transaction['bayaran_pembiayaan']),2) }}
Bayaran Harga Jualan: RM {{ number_format($transaction['duit_masuk'],2) }} Ansuran Pembiyaan: RM {{ number_format($transaction['bayaran_pembiayaan'],2) }}
Baki Harga Jualan: RM {{ number_format($transaction['bakiharga'],2) }}Baki Pembiayaan: RM {{ number_format($gadai['bakipjm'],2) }}
Keuntungan: RM {{ number_format($transaction['bayaran_keuntungan'],2) }}
+

* Keuntungan sebenar atas setiap baki pembiayaan akan direbat semasa penebusan

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
.................................................... .................................................... .................................................... ....................................................
DiSemak Cagaran Di KeluarkanCagaran Diterima Ar-Rahn
{{ Auth::user()->name }}
+
diff --git a/resources/views/resit/resitansuransebelum.blade.php b/resources/views/resit/resitansuransebelum.blade.php new file mode 100644 index 0000000..1c4b76b --- /dev/null +++ b/resources/views/resit/resitansuransebelum.blade.php @@ -0,0 +1,568 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
User Image User Image
+ + + + + + + + + + +
Salinan Pelanggan
RESIT BAYARAN
+ +
+ + + + + + + + + + + + + + + + + + + + +
Marhun : {{ $gadai['marhun'] }} No SAG: {{ $penebusan['norujukan'] }}
Nama : {{ $customers_info['nama'] }} Tarikh Bayar: @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpan: {{ $gadai['jbg'] }}
Nama Wakil : @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp
No K/P Wakil : @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp
+
+ +

A

+ + + + + + + + + + + + + + + + + +
Tarikh Bayaran : @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp
Pembiayaan : RM {{ number_format($gadai['pinjaman'],2) }}
(-) Bayaran Pelanggan : RM {{ number_format($penebusan['ansuran'],2) }}
Baki Pembiayaan : RM {{ number_format(($gadai['pinjaman'] - $penebusan['ansuran']),2) }}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
.................................................... .................................................... .................................................... ....................................................
DiSemak Cagaran Di KeluarkanCagaran Diterima Ar-Rahn
+
+
+
+ +
+
+ + + + + + + + + + + + + +
Salinan Pejabat
RESIT BAYARAN
+ +
+ + + + + + + + + + + + + + + + + + + + +
Marhun : {{ $gadai['marhun'] }} No SAG: {{ $penebusan['norujukan'] }}
Nama : {{ $customers_info['nama'] }} Tarikh Bayar: @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('n/j/Y'); echo $date; @endphp
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpan: {{ $gadai['jbg'] }}
Nama Wakil : @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp
No K/P Wakil : @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp
+
+ +

A

+ + + + + + + + + + + + + + + + + +
Tarikh Bayaran : @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('n/j/Y'); echo $date; @endphp
Pembiayaan : RM {{ number_format($gadai['pinjaman'],2) }}
(-) Bayaran Pelanggan : RM {{ number_format($penebusan['ansuran'],2) }}
Baki Pembiayaan : RM {{ number_format(($gadai['pinjaman'] - $penebusan['ansuran']),2) }}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
.................................................... .................................................... .................................................... ....................................................
DiSemak Cagaran Di KeluarkanCagaran Diterima Ar-Rahn
+
\ No newline at end of file diff --git a/resources/views/resit/resittambahpinjam.blade.php b/resources/views/resit/resittambahpinjam.blade.php new file mode 100644 index 0000000..5f3ffa4 --- /dev/null +++ b/resources/views/resit/resittambahpinjam.blade.php @@ -0,0 +1,574 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
User Image User Image
+ + + + + + + + + + +
Salinan Pelanggan
RESIT BAYARAN
+ +
+ + + + + + + + + + + + + + + + + + + + +
Marhun : {{ $gadai['marhun'] }} : No SAG {{ $gadai['norujukan'] }}
Nama : {{ $customers_info['nama'] }} : Tarikh Bayar@php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp : Tempoh Simpan {{ $gadai['tempoh'] }}
Nama Wakil : @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp
No K/P Wakil : @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp
+
+ +

P

+ + + + + + + + + + + + + + + + + + + + +
Tarikh Bayaran : @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp
Pembiayaan : RM {{ number_format($gadai['bakipjm'],2) }}
(+) Tambah Pembiayaan : RM {{ number_format($penebusan['addpinjaman'],2) }}
Pembiayaan Baru : RM {{ number_format($gadai['bakipjm'] + $penebusan['addpinjaman'],2) }}
Bayaran Keuntungan : RM {{ number_format($penebusan['bakiupah'],2) }}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
.................................................... .................................................... .................................................... ....................................................
DiSemak Cagaran Di KeluarkanCagaran Diterima Ar-Rahn
{{ Auth::user()->name }}
+
+
+
+ +
+
+ + + + + + + + + + + + + +
Salinan Pejabat
RESIT BAYARAN
+ +
+ + + + + + + + + + + + + + + + + + + +
Marhun : {{ $gadai['marhun'] }} : No SAG {{ $gadai['norujukan'] }}
Nama : {{ $customers_info['nama'] }} : Tarikh Bayar @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp : Tempoh Simpan {{ $gadai['tempoh'] }}
Nama Wakil : @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp
No K/P Wakil : @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp
+
+ +

P

+ + + + + + + + + + + + + + + + + + + + + +
Tarikh Bayaran : @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp
Pembiayaan : RM {{ number_format($gadai['bakipjm'],2) }}
(+) Tambah Pembiayaan : RM {{ number_format($penebusan['addpinjaman'],2) }}
Pembiayaan Baru : RM {{ number_format($gadai['bakipjm'] + $penebusan['addpinjaman'],2) }}
Bayaran Keuntungan : RM {{ number_format($penebusan['bakiupah'],2) }}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
.................................................... .................................................... .................................................... ....................................................
DiSemak Cagaran Di KeluarkanCagaran Diterima Ar-Rahn
{{ Auth::user()->name }}
+
\ No newline at end of file diff --git a/resources/views/resit/resittebus.blade.php b/resources/views/resit/resittebus.blade.php new file mode 100644 index 0000000..830076f --- /dev/null +++ b/resources/views/resit/resittebus.blade.php @@ -0,0 +1,583 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
User Image User Image
+ + + + + + + + + + +
Salinan Pelanggan
RESIT BAYARAN
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Marhun : {{ $gadai['marhun'] }} No SAG: {{ $gadai['norujukan'] }}
Nama : {{ $customers_info['nama'] }} Tarikh Bayar: @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpan: {{ $gadai['tempoh'] }}
Nama Wakil : @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp
No K/P Wakil : @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp
+
+ +

T

+ + + + + + + + + + + + + + + + + + + + + + +
Harga Jualan: RM {{ number_format(($gadai['hargajualan']),2) }}
(-) Jumlah Ansuran Telah Dibayar: RM {{ number_format($totalBayaranAnsuran,2) }}
Baki Harga Jualan: RM {{ number_format($gadai['bakihargajualan'],2) }}
(-) Ibra' (Rebat): RM {{ number_format($penebusan['rebate'],2) }}
Tebus Keseluruhan: RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']),2) }}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
.................................................... .................................................... .................................................... ....................................................
DiSemak Cagaran Di KeluarkanCagaran Diterima Ar-Rahn
{{ Auth::user()->name }}
+
+
+
+ +
+
+ + + + + + + + + + + + + +
Salinan Pejabat
RESIT BAYARAN
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Marhun : {{ $gadai['marhun'] }} No SAG: {{ $gadai['norujukan'] }}
Nama : {{ $customers_info['nama'] }} Tarikh Bayar: @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpan: {{ $gadai['tempoh'] }}
Nama Wakil : @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp
No K/P Wakil : @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp
+
+ +

T

+ + + + + + + + + + + + + + + + + + + + + + +
Harga Jualan: RM {{ number_format(($gadai['hargajualan']),2) }}
(-) Jumlah Ansuran Telah Dibayar: RM {{ number_format($totalBayaranAnsuran,2) }}
Baki Harga Jualan: RM {{ number_format($gadai['bakihargajualan'],2) }}
(-) Ibra' (Rebat): RM {{ number_format($penebusan['rebate'],2) }}
Tebus Keseluruhan: RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']),2) }}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
.................................................... .................................................... .................................................... ....................................................
DiSemak Cagaran Di KeluarkanCagaran Diterima Ar-Rahn
{{ Auth::user()->name }}
+
\ No newline at end of file diff --git a/resources/views/resit/resittebusautotawarruq.blade.php b/resources/views/resit/resittebusautotawarruq.blade.php new file mode 100644 index 0000000..03dce05 --- /dev/null +++ b/resources/views/resit/resittebusautotawarruq.blade.php @@ -0,0 +1,565 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
User Image User Image
+ + + + + + + + + + +
Salinan Pelanggan
RESIT BAYARAN
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Marhun : {{ $gadai['marhun'] }} No SAG: {{ $gadai['norujukan'] }}
Nama : {{ $customers_info['nama'] }} Tarikh Bayar: @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpan: {{ $gadai['tempoh'] }}
Nama Wakil : @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp
No K/P Wakil : @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp
+
+ +

AT

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Pinjaman : RM {{ number_format($gadai['pinjaman'],2) }}
(-) Bayaran Pinjaman : RM {{ number_format($transaction_keuntungan['bayaran_pembiayaan'],2) }}
Bayaran Upah : RM {{ number_format($transaction_keuntungan['bayaran_keuntungan'],2) }}
Pembiyaan Baru : RM {{ number_format($gadai['pinjaman']-$transaction_keuntungan['bayaran_pembiayaan'],2) }}
Jumlah Bayaran : RM {{ number_format($transaction_keuntungan['bayaran_pembiayaan']+$transaction_keuntungan['bayaran_keuntungan'],2) }}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
.................................................... .................................................... .................................................... ....................................................
DiSemak Cagaran Di KeluarkanCagaran Diterima Ar-Rahn
{{ Auth::user()->name }}
+
+
+
+ +
+
+ + + + + + + + + + + + + +
Salinan Pejabat
RESIT BAYARAN
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Marhun : {{ $gadai['marhun'] }} No SAG: {{ $gadai['norujukan'] }}
Nama : {{ $customers_info['nama'] }} Tarikh Bayar: @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/y'); echo $date; @endphp
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpan: {{ $gadai['tempoh'] }}
Nama Wakil : @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp
No K/P Wakil : @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp
+
+ +

AT

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Pinjaman : RM {{ number_format($gadai['pinjaman'],2) }}
(-) Bayaran Pinjaman : RM {{ number_format($transaction_keuntungan['bayaran_pembiayaan'],2) }}
Bayaran Upah : RM {{ number_format($transaction_keuntungan['bayaran_keuntungan'],2) }}
Pembiyaan Baru : RM {{ number_format($gadai['pinjaman']-$transaction_keuntungan['bayaran_pembiayaan'],2) }}
Jumlah Bayaran : RM {{ number_format($transaction_keuntungan['bayaran_pembiayaan']+$transaction_keuntungan['bayaran_keuntungan'],2) }}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
.................................................... .................................................... .................................................... ....................................................
DiSemak Cagaran Di KeluarkanCagaran Diterima Ar-Rahn
{{ Auth::user()->name }}
+
\ No newline at end of file diff --git a/resources/views/resit/resittebussebelum.blade.php b/resources/views/resit/resittebussebelum.blade.php new file mode 100644 index 0000000..451287e --- /dev/null +++ b/resources/views/resit/resittebussebelum.blade.php @@ -0,0 +1,573 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
User Image User Image
+ + + + + + + + + + +
Salinan Pelanggan
RESIT BAYARAN
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Marhun : {{ $gadai['marhun'] }} No SAG: {{ $gadai['norujukan'] }}
Nama : {{ $customers_info['nama'] }} Tarikh Bayar: @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpan: {{ $gadai['tempoh'] }}
Nama Wakil : @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp
No K/P Wakil : @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp
+
+ +

T

+ + + + + + + + + + + + + + + + + +
Tarikh Bayaran : @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp
Pembiayaan : RM {{ number_format(($gadai['pinjaman']),2) }}
Jumlah Upah : RM {{ number_format($penebusan['bakiupah'],2) }}
Tebus Keseluruhan : RM {{ number_format(($gadai['pinjaman'] + $penebusan['bakiupah']),2) }}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
.................................................... .................................................... .................................................... ....................................................
DiSemak Cagaran Di KeluarkanCagaran Diterima Ar-Rahn
{{ Auth::user()->name }}
+
+
+
+ +
+
+ + + + + + + + + + + + + +
Salinan Pejabat
RESIT BAYARAN
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Marhun : {{ $gadai['marhun'] }} No SAG: {{ $gadai['norujukan'] }}
Nama : {{ $customers_info['nama'] }} Tarikh Bayar: @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/y'); echo $date; @endphp
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpan: {{ $gadai['tempoh'] }}
Nama Wakil : @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp
No K/P Wakil : @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp
+
+ +

T

+ + + + + + + + + + + + + + + + + +
Tarikh Bayaran : @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/y'); echo $date; @endphp
Pembiayaan : RM {{ number_format(($gadai['pinjaman']),2) }}
Jumlah Upah : RM {{ number_format($penebusan['bakiupah'],2) }}
Tebus Keseluruhan : RM {{ number_format(($gadai['pinjaman'] + $penebusan['bakiupah']),2) }}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
.................................................... .................................................... .................................................... ....................................................
DiSemak Cagaran Di KeluarkanCagaran Diterima Ar-Rahn
{{ Auth::user()->name }}
+
diff --git a/resources/views/resit/resittebusseparuh.blade.php b/resources/views/resit/resittebusseparuh.blade.php new file mode 100644 index 0000000..bbfa8fb --- /dev/null +++ b/resources/views/resit/resittebusseparuh.blade.php @@ -0,0 +1,590 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
User Image User Image
+ + + + + + + + + + +
Salinan Pelanggan
RESIT BAYARAN
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Marhun : {{ $gadai['marhun'] }} No SAG: {{ $gadai['norujukan'] }}
Nama : {{ $customers_info['nama'] }} Tarikh Bayar: @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpan: {{ $gadai['tempoh'] }}
Nama Wakil : @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp
No K/P Wakil : @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp
+
+ +

S

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Tarikh Bayaran : @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp
Harga Jualan : RM {{ number_format(($gadai['hargajualan']),2) }}
(-) Bayaran Pelanggan : RM {{ number_format($totaltransaction,2) }}
Baki Harga Jualan : RM {{ number_format($gadai['bakihargajualan'],2) }}
(-) Rebate : RM {{ number_format($penebusan['rebate'],2) }}
Jumlah Bayaran : RM {{ number_format($penebusan['bakipjm'],2) }}
Pembiayaan Baru : RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']-$penebusan['bakipjm']),2) }}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
.................................................... .................................................... .................................................... ....................................................
DiSemak Cagaran Di KeluarkanCagaran Diterima Ar-Rahn
{{ Auth::user()->name }}
+
+
+
+ +
+
+ + + + + + + + + + + + + +
Salinan Pejabat
RESIT BAYARAN
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Marhun : {{ $gadai['marhun'] }} No SAG: {{ $gadai['norujukan'] }}
Nama : {{ $customers_info['nama'] }} Tarikh Bayar: @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/y'); echo $date; @endphp
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpan: {{ $gadai['tempoh'] }}
Nama Wakil : @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp
No K/P Wakil : @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp
+
+ +

S

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Tarikh Bayaran : @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/y'); echo $date; @endphp
Harga Jualan : RM {{ number_format(($gadai['hargajualan']),2) }}
(-) Bayaran Pelanggan : RM {{ number_format($totaltransaction,2) }}
Baki Harga Jualan : RM {{ number_format($gadai['bakihargajualan'],2) }}
(-) Rebate : RM {{ number_format($penebusan['rebate'],2) }}
Jumlah Bayaran : RM {{ number_format($penebusan['bakipjm'],2) }}
Pembiayaan Baru : RM {{ number_format(($gadai['bakihargajualan'] - $penebusan['rebate']-$penebusan['bakipjm']),2) }}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
.................................................... .................................................... .................................................... ....................................................
DiSemak Cagaran Di KeluarkanCagaran Diterima Ar-Rahn
{{ Auth::user()->name }}
+
\ No newline at end of file diff --git a/resources/views/resit/resittebusseparuhbelum.blade.php b/resources/views/resit/resittebusseparuhbelum.blade.php new file mode 100644 index 0000000..827ba3b --- /dev/null +++ b/resources/views/resit/resittebusseparuhbelum.blade.php @@ -0,0 +1,565 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
User Image User Image
+ + + + + + + + + + +
Salinan Pelanggan
RESIT BAYARAN
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Marhun : {{ $gadai['marhun'] }} No SAG: {{ $gadai['norujukan'] }}
Nama : {{ $customers_info['nama'] }} Tarikh Bayar: @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpan: {{ $gadai['jbg'] }}
Nama Wakil : @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp
No K/P Wakil : @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp
+
+ +

S

+ + + + + + + + + + + + + + + + + + +
Tarikh Bayaran : @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp
Pembiayaan : RM {{ number_format(($gadai['pinjaman']),2) }}
Jumlah Upah : RM {{ number_format($penebusan['bakiupah'],2) }}
Tebus Keseluruhan : RM {{ number_format(($gadai['pinjaman'] + $penebusan['bakiupah']),2) }}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
.................................................... .................................................... .................................................... ....................................................
DiSemak Cagaran Di KeluarkanCagaran Diterima Ar-Rahn
+
+
+
+ +
+
+ + + + + + + + + + + + + +
Salinan Pejabat
RESIT BAYARAN
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Marhun : {{ $gadai['marhun'] }} No SAG: {{ $gadai['norujukan'] }}
Nama : {{ $customers_info['nama'] }} Tarikh Bayar: @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpan: {{ $gadai['jbg`'] }}
Nama Wakil : @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp
No K/P Wakil : @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp
+
+ +

S

+ + + + + + + + + + + + + + + + + +
Tarikh Bayaran : @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp
Pembiayaan : RM {{ number_format(($gadai['pinjaman']),2) }}
Jumlah Upah : RM {{ number_format($penebusan['bakiupah'],2) }}
Tebus Keseluruhan : RM {{ number_format(($gadai['pinjaman'] + $penebusan['bakiupah']),2) }}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
.................................................... .................................................... .................................................... ....................................................
DiSemak Cagaran Di KeluarkanCagaran Diterima Ar-Rahn
+
\ No newline at end of file diff --git a/routes/web.php b/routes/web.php index cfd2ae7..ff46ea0 100644 --- a/routes/web.php +++ b/routes/web.php @@ -91,6 +91,11 @@ Route::group(['middleware' => 'auth','verified'], function () { Route::get('/penyata/{kodcaw}/{norujukan}', 'App\Http\Controllers\SemakController@Penyata')->name('penyata.show'); Route::get('/penyata/summary/{kodcaw}/{norujukan}', 'App\Http\Controllers\SemakController@PenyataSummary')->name('penyata.summary'); Route::get('/penyata/summaryarrahn/{kodcaw}/{norujukan}', 'App\Http\Controllers\SemakController@PenyataSummaryUpah')->name('penyata.summaryupah'); + + Route::get('/resit/tebus/{kodcaw}/{norujukan}',['as'=>'resit.tebus','uses'=>'App\Http\Controllers\SemakController@resittebus']); + Route::get('/resit/{id}',['as'=>'resit.ansuran','uses'=>'App\Http\Controllers\SemakController@resit']); + + Route::post('/paymentaction', 'App\Http\Controllers\BayaranController@PembayaranAction')->name('payment.action');