From 66ce944b7f62a6f0a25819456b66e90ae2cf2827 Mon Sep 17 00:00:00 2001 From: fifi97 <46933637+fifi97@users.noreply.github.com> Date: Mon, 28 Feb 2022 02:55:47 +0800 Subject: [PATCH] fix rekodsenaraisag --- app/Http/Controllers/ResitController.php | 233 +++++++ .../js/components/util/RekodBayaranModal.vue | 365 +++++++++++ resources/js/pages/Detailspelanggan.vue | 164 ++++- resources/views/resit/resitadvansur.blade.php | 573 +++++++++++++++++ resources/views/resit/resitansuran.blade.php | 557 +++++++++++++++++ .../views/resit/resittambahpinjam.blade.php | 574 +++++++++++++++++ resources/views/resit/resittebus.blade.php | 583 +++++++++++++++++ .../resit/resittebusautotawarruq.blade.php | 565 +++++++++++++++++ .../views/resit/resittebusseparuh.blade.php | 590 ++++++++++++++++++ 9 files changed, 4176 insertions(+), 28 deletions(-) create mode 100644 app/Http/Controllers/ResitController.php create mode 100644 resources/js/components/util/RekodBayaranModal.vue create mode 100644 resources/views/resit/resitadvansur.blade.php create mode 100644 resources/views/resit/resitansuran.blade.php create mode 100644 resources/views/resit/resittambahpinjam.blade.php create mode 100644 resources/views/resit/resittebus.blade.php create mode 100644 resources/views/resit/resittebusautotawarruq.blade.php create mode 100644 resources/views/resit/resittebusseparuh.blade.php diff --git a/app/Http/Controllers/ResitController.php b/app/Http/Controllers/ResitController.php new file mode 100644 index 0000000..24f3338 --- /dev/null +++ b/app/Http/Controllers/ResitController.php @@ -0,0 +1,233 @@ +json(); + + $gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->json(); + + $totaltransaction = 0; + + $transaction = Http::get(config('api.url') . '/api/transaction/'. $id)->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(); + + // if(sizeof($customers_info) != 0) + // $customers_info = $customers_info[0]; + + + $penebusan = Http::get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'],[ "norujukan" => $id])->json(); + + if(sizeof($penebusan) != 0) + $penebusan = $penebusan[0]; + + $wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json(); + + // dd($wakil); + if(sizeof($wakil) != 0) + $wakil = $wakil[0]; + + return view('print.resittebus',compact('transaction','gadai','cawangan_info','customers_info','penebusan','wakil','totaltransaction')); + } + + public function resitadvansur($id) + { + + $auth_user = Auth::user(); + + $gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->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]; + + $advansur = Http::get(config('api.url') . '/api/advansur/'. $auth_user['cawangan'] . '/'. $id)->json(); + + if($advansur['nowakil'] != 0){ + $wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $advansur['nowakil'])->json(); + + if(sizeof($wakil) != 0){ + $wakil = $wakil[0]; + } + } + else + { + $wakil = []; + } + + return view('print.resitadvansur',compact('gadai','customers_info','advansur','wakil')); + } + + public function resittambahpinjam($id) + { + + $auth_user = Auth::user(); + + $gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->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]; + + + $penebusan = Http::get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'] ,[ "norujukan" => $id])->json(); + + if(sizeof($penebusan) != 0) + $penebusan = $penebusan[0]; + + // dd($penebusan['nowakil']); + + if($penebusan['nowakil'] != 0) + { + $wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json(); + + if(sizeof($wakil) != 0) + $wakil = $wakil[0]; + } + else + { + $wakil = []; + } + + return view('print.resittambahpinjam',compact('gadai','customers_info','penebusan','wakil')); + } + + 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('print.resitansuran',compact('transaction','gadai','customers_info')); + } + + public function resittebusseparuh($id) + { + + $auth_user = Auth::user(); + + $gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->json(); + + $totaltransaction = 0; + + $transaction = Http::get(config('api.url') . '/api/transaction/'. $id)->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(); + + // if(sizeof($customers_info) != 0) + // $customers_info = $customers_info[0]; + + + $penebusan = Http::get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'],[ "norujukan" => $id])->json(); + + if(sizeof($penebusan) != 0) + $penebusan = $penebusan[0]; + + $wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json(); + + // dd($wakil); + if(sizeof($wakil) != 0) + $wakil = $wakil[0]; + + return view('print.resittebusseparuh',compact('transaction','gadai','customers_info','penebusan','wakil','totaltransaction')); + } + + public function resitautotawarruq($id) + { + + $auth_user = Auth::user(); + + $gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $id)->json(); + + $totaltransaction = 0; + + $transaction = Http::get(config('api.url') . '/api/transaction/'. $id)->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(); + + $transaction_keuntungan = Http::get(config('api.url'). '/api/transaksi_keuntungan_latest/'. $id)->json(); + // if(sizeof($customers_info) != 0) + // $customers_info = $customers_info[0]; + + + $penebusan = Http::get(config('api.url') . '/api/listpenebusanhistory/' . $auth_user['cawangan'],[ "norujukan" => $id])->json(); + + if(sizeof($penebusan) != 0) + $penebusan = $penebusan[0]; + + $wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json(); + + // dd($wakil); + if(sizeof($wakil) != 0) + $wakil = $wakil[0]; + + return view('print.resittebusautotawarruq',compact('transaction','gadai','customers_info','penebusan','wakil','totaltransaction','transaction_keuntungan')); + } +} diff --git a/resources/js/components/util/RekodBayaranModal.vue b/resources/js/components/util/RekodBayaranModal.vue new file mode 100644 index 0000000..914c8a7 --- /dev/null +++ b/resources/js/components/util/RekodBayaranModal.vue @@ -0,0 +1,365 @@ + + + + + \ No newline at end of file diff --git a/resources/js/pages/Detailspelanggan.vue b/resources/js/pages/Detailspelanggan.vue index 6616c28..25ac10a 100644 --- a/resources/js/pages/Detailspelanggan.vue +++ b/resources/js/pages/Detailspelanggan.vue @@ -1,5 +1,9 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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($advansur['tarikh']); $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
+
+ +

U

+ + + + + + + + + + + + + + + + + +
Tarikh Bayaran : @php $time = new DateTime($advansur['tarikh']); $date = $time->format('d/m/Y'); echo $date; @endphp
Pinjaman : RM {{ number_format(($gadai['pinjaman']),2) }}
Jumlah Upah : RM {{ number_format($advansur['upahDibayar'],2) }}
Bayaran Di Terima : RM {{ number_format($advansur['upahDibayar'],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($advansur['tarikh']); $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
+
+ +

U

+ + + + + + + + + + + + + + + + + +
Tarikh Bayaran : @php $time = new DateTime($advansur['tarikh']); $date = $time->format('d/m/y'); echo $date; @endphp
Pembiayaan : RM {{ number_format(($gadai['pinjaman']),2) }}
Jumlah Upah : RM {{ number_format($advansur['upahDibayar'],2) }}
Bayaran Di Terima : RM {{ number_format($advansur['upahDibayar'],2) }}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
.................................................... .................................................... .................................................... ....................................................
DiSemak Cagaran Di KeluarkanCagaran Diterima Ar-Rahn
{{ Auth::user()->name }}
+
\ No newline at end of file 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/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..9030924 --- /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/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