From 042cd579b025fa3785328f32309dec90ec545764 Mon Sep 17 00:00:00 2001 From: hafifierahman Date: Mon, 21 Oct 2024 00:46:45 +0800 Subject: [PATCH 01/22] added block specific cawangan transaction --- config/redeemoption.php | 4 +++- resources/views/customers/v2/info.blade.php | 2 ++ resources/views/penebusan/v2/index.blade.php | 6 ++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/config/redeemoption.php b/config/redeemoption.php index 5987f20..306610d 100644 --- a/config/redeemoption.php +++ b/config/redeemoption.php @@ -2,6 +2,8 @@ return [ 'enable_tambahpinjam' => env('ENABLE_TAMBAHPINJAM',1), 'enable_separuh' => env('ENABLE_SEPARUH',1), - 'enable_pembiayaansemula' => env('ENABLE_AUTOTAWARRUQ',1) + 'enable_pembiayaansemula' => env('ENABLE_AUTOTAWARRUQ',1), + 'enable_specific_block' => env('ENABLE_BLOCK',0), + 'cawangan_block' => env('CAWANGAN_BLOCK','011227') ]; ?> \ No newline at end of file diff --git a/resources/views/customers/v2/info.blade.php b/resources/views/customers/v2/info.blade.php index 970f9c6..bf7a5e7 100644 --- a/resources/views/customers/v2/info.blade.php +++ b/resources/views/customers/v2/info.blade.php @@ -135,9 +135,11 @@
+ @if(config('redeemoption.enable_specific_block') == 0 || Auth::user()->cawangan !== config('redeemoption.cawangan_block'))
Daftar Pembiayaan
+ @endif
diff --git a/resources/views/penebusan/v2/index.blade.php b/resources/views/penebusan/v2/index.blade.php index a31a109..6501b41 100644 --- a/resources/views/penebusan/v2/index.blade.php +++ b/resources/views/penebusan/v2/index.blade.php @@ -93,14 +93,20 @@ @if($gadai['tagbaru'] == 1) @if(config('redeemoption.enable_separuh') == 1) + @if(config('redeemoption.enable_specific_block') == 0 || Auth::user()->cawangan !== config('redeemoption.cawangan_block')) + @endif @endif @if(config('redeemoption.enable_tambahpinjam') == 1) + @if(config('redeemoption.enable_specific_block') == 0 || Auth::user()->cawangan !== config('redeemoption.cawangan_block')) + @endif @endif @endif @if(config('redeemoption.enable_pembiayaansemula') == 1) + @if(config('redeemoption.enable_specific_block') == 0 || Auth::user()->cawangan !== config('redeemoption.cawangan_block')) + @endif @endif From a02b819676d87883629b6fbbee603349ae60fc86 Mon Sep 17 00:00:00 2001 From: BTMS2 Date: Tue, 22 Oct 2024 10:35:54 +0800 Subject: [PATCH 02/22] tambah column tarikh pembayaran terakhir di arcc --- resources/views/callcenter/v2/info.blade.php | 25 +++++++++++++------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/resources/views/callcenter/v2/info.blade.php b/resources/views/callcenter/v2/info.blade.php index c1193f9..2b47955 100644 --- a/resources/views/callcenter/v2/info.blade.php +++ b/resources/views/callcenter/v2/info.blade.php @@ -9,7 +9,7 @@ @section('content') @include('modal.historytebus') @include('modal.wakil') -
+
@@ -175,6 +175,7 @@ Tempoh Keuntungan Lelong + Pembayaran Terakhir @@ -203,6 +204,7 @@ Tempoh Keuntungan Lelong + Pembayaran Terakhir @@ -758,6 +760,7 @@ if(gadai_detail["tagbaru"] == 0){ $('#textnavsag').addClass('text-danger'); var taglel = ''; + var lastbayar = ''; if(gadai_detail['taglel'] == 1){ if(tagarrahnbid == 1){ $.ajax({ @@ -767,6 +770,8 @@ success: function(data){ taglel = data.lelong.t_lelong; + console(taglel); + lastbayar = data.lelong.lastbayar; } }); } else { @@ -791,18 +796,20 @@ if(gadai_detail["percentpinj"] != 0) xtawarruq.row.add([ '', - '' + gadai_detail['norujukan'] + '', + '' + gadai_detail['norujukan'] + '', gadai_detail['t_gadai'], tarikh_matang, - 'RM '+ formatter.format(gadai_detail['bakihargajualan']), - 'RM '+formatter.format(gadai_detail['bakipjm']), + 'RM'+ formatter.format(gadai_detail['bakihargajualan']), + 'RM'+formatter.format(gadai_detail['bakipjm']), (((Number(gadai_detail['pinjaman'])/Number(gadai_detail['nilaimarhun']))*100).toFixed(2)).toLocaleString("en-GB") + '%', gadai_detail['tempoh'], - 'RM '+ upahsemasa, + 'RM'+ upahsemasa, '
' + taglel + '
', + '
' + lastbayar + '
', ]).draw(); }else{ var taglel = ''; + var lastbayar = ''; if(gadai_detail['taglel'] == 1){ if(tagarrahnbid == 1){ $.ajax({ @@ -812,6 +819,7 @@ success: function(data){ taglel = data.lelong.t_lelong; + lastbayar = data.lelong.lastbayar; } }); } else { @@ -837,12 +845,13 @@ '' + gadai_detail['norujukan'] + '', gadai_detail['t_gadai'], tarikh_matang, - 'RM '+ formatter.format(gadai_detail['bakihargajualan']), - 'RM '+formatter.format(gadai_detail['bakipjm']), + 'RM'+ formatter.format(gadai_detail['bakihargajualan']), + 'RM'+formatter.format(gadai_detail['bakipjm']), (((Number(gadai_detail['pinjaman'])/Number(gadai_detail['nilaimarhun']))*100).toFixed(2)).toLocaleString("en-GB") + '%', gadai_detail['tempoh'], - 'RM '+ formatter.format(upahsemasa['pendapatan']), + 'RM'+ formatter.format(upahsemasa['pendapatan']), '
' + taglel + '
', + '
' + lastbayar + '
', ]).draw(); } }else if(jenistebus == "sudah_tebus"){ From 04f2e5d7549fb8dbdecfc25ee7384d69ba6e77fc Mon Sep 17 00:00:00 2001 From: BTMS2 Date: Tue, 22 Oct 2024 11:45:17 +0800 Subject: [PATCH 03/22] update arcc pembayaran terakhir --- resources/views/customers/v2/info.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/customers/v2/info.blade.php b/resources/views/customers/v2/info.blade.php index 970f9c6..1fa89f6 100644 --- a/resources/views/customers/v2/info.blade.php +++ b/resources/views/customers/v2/info.blade.php @@ -1617,7 +1617,7 @@ }); } - function ubahPembiayaanSemulaErrorHandling() + async function ubahPembiayaanSemulaErrorHandling() { let selected = document.querySelector('#navtawarruqdannottawarruq input[type="radio"][name="belum"]:checked') @@ -1638,7 +1638,7 @@ return true; } - let isPS = checkPS(selected.value) + let isPS = await checkPS(selected.value) if(isPS === true){ Swal.fire({ @@ -1653,9 +1653,9 @@ return false; } - function ubahfunc(e){ + async function ubahfunc(e){ - let isError = ubahPembiayaanSemulaErrorHandling() + let isError = await ubahPembiayaanSemulaErrorHandling() if(isError){ return; } From bb3c832166c51946667b06913be8eb4ec09f32fa Mon Sep 17 00:00:00 2001 From: BTMS2 Date: Tue, 22 Oct 2024 11:52:10 +0800 Subject: [PATCH 04/22] update arcc pembayaran terakhir --- resources/views/customers/v2/info.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/customers/v2/info.blade.php b/resources/views/customers/v2/info.blade.php index 1fa89f6..970f9c6 100644 --- a/resources/views/customers/v2/info.blade.php +++ b/resources/views/customers/v2/info.blade.php @@ -1617,7 +1617,7 @@ }); } - async function ubahPembiayaanSemulaErrorHandling() + function ubahPembiayaanSemulaErrorHandling() { let selected = document.querySelector('#navtawarruqdannottawarruq input[type="radio"][name="belum"]:checked') @@ -1638,7 +1638,7 @@ return true; } - let isPS = await checkPS(selected.value) + let isPS = checkPS(selected.value) if(isPS === true){ Swal.fire({ @@ -1653,9 +1653,9 @@ return false; } - async function ubahfunc(e){ + function ubahfunc(e){ - let isError = await ubahPembiayaanSemulaErrorHandling() + let isError = ubahPembiayaanSemulaErrorHandling() if(isError){ return; } From d4aa5aadb6c8d75f459930df792aeefc12f0a597 Mon Sep 17 00:00:00 2001 From: BTMS2 Date: Tue, 22 Oct 2024 12:02:56 +0800 Subject: [PATCH 05/22] update sag lama lastpayment arcc --- resources/views/callcenter/v2/info.blade.php | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/views/callcenter/v2/info.blade.php b/resources/views/callcenter/v2/info.blade.php index 2b47955..f846e96 100644 --- a/resources/views/callcenter/v2/info.blade.php +++ b/resources/views/callcenter/v2/info.blade.php @@ -770,7 +770,6 @@ success: function(data){ taglel = data.lelong.t_lelong; - console(taglel); lastbayar = data.lelong.lastbayar; } }); From 1b3068b14a4bb89d264e168af7616b7a4b915bdb Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 24 Oct 2024 16:25:37 +0800 Subject: [PATCH 06/22] update nota di sag --- app/Http/Controllers/PenebusanController.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/PenebusanController.php b/app/Http/Controllers/PenebusanController.php index 44e4de4..b31d6ab 100644 --- a/app/Http/Controllers/PenebusanController.php +++ b/app/Http/Controllers/PenebusanController.php @@ -339,7 +339,7 @@ class PenebusanController extends Controller $nilaimarhun = (floatval($hargabaru['harga']) * floatval($marhunloop['berat'])); - array_push($arraymarhunbaru, ["bil" => $marhunloop['bil'],"marhun" => $marhunloop['marhun'],"nota" => $marhunloop['nota'],"karat" => $marhunloop['karat'], "berat" => $marhunloop['berat'], "harga" => $hargabaru['harga'], "n_marhun" => $nilaimarhun]); + array_push($arraymarhunbaru, ["bil" => $marhunloop['bil'],"tag_permata" => $marhunloop['tag_permata'],"berat_batu_permata" => $marhunloop['berat_batu_permata'],"marhun" => $marhunloop['marhun'],"nota" => $marhunloop['nota'],"karat" => $marhunloop['karat'], "berat" => $marhunloop['berat'], "harga" => $hargabaru['harga'], "n_marhun" => $nilaimarhun]); } foreach($arraymarhunbaru as $array1){ @@ -350,6 +350,8 @@ class PenebusanController extends Controller 'karat' => $array1['karat'], 'berat_emas' => $array1['berat'], 'harga' => $array1['harga'], + 'tag_permata' => $array1['tag_permata'], + 'berat_batu_permata' => $array1['berat_batu_permata'], 'nilai_marhun' => $array1['n_marhun'] ])->json(); } @@ -494,7 +496,7 @@ class PenebusanController extends Controller $harga = ($request->jenisAT == 'hargalama') ? $marhunloop['harga'] : $hargabaru['harga']; $nilaimarhun = (floatval($harga) * floatval($marhunloop['berat'])); - array_push($arraymarhunbaru, ["bil" => $marhunloop['bil'],"marhun" => $marhunloop['marhun'],"nota" => $marhunloop['nota'],"karat" => $marhunloop['karat'], "berat" => $marhunloop['berat'], "harga" => $harga, "n_marhun" => $nilaimarhun]); + array_push($arraymarhunbaru, ["bil" => $marhunloop['bil'],"tag_permata" => $marhunloop['tag_permata'],"berat_batu_permata" => $marhunloop['berat_batu_permata'],"marhun" => $marhunloop['marhun'],"nota" => $marhunloop['nota'],"karat" => $marhunloop['karat'], "berat" => $marhunloop['berat'], "harga" => $harga, "n_marhun" => $nilaimarhun]); } foreach($arraymarhunbaru as $array1){ @@ -506,6 +508,8 @@ class PenebusanController extends Controller 'berat_emas' => $array1['berat'], 'harga' => $array1['harga'], 'nilai_marhun' => $array1['n_marhun'], + 'tag_permata' => $array1['tag_permata'], + 'berat_batu_permata' => $array1['berat_batu_permata'], 'jenisAT' => $request->jenisAT ])->json(); } @@ -655,7 +659,7 @@ class PenebusanController extends Controller $nilaimarhun = (floatval($hargabaru['harga']) * floatval($marhunloop['berat'])); - array_push($arraymarhunbaru, ["bil" => $marhunloop['bil'],"marhun" => $marhunloop['marhun'],"nota" => $marhunloop['nota'],"karat" => $marhunloop['karat'], "berat" => $marhunloop['berat'], "harga" => $hargabaru['harga'], "n_marhun" => $nilaimarhun]); + array_push($arraymarhunbaru, ["bil" => $marhunloop['bil'],"tag_permata" => $marhunloop['tag_permata'],"berat_batu_permata" => $marhunloop['berat_batu_permata'],"marhun" => $marhunloop['marhun'],"nota" => $marhunloop['nota'],"karat" => $marhunloop['karat'], "berat" => $marhunloop['berat'], "harga" => $hargabaru['harga'], "n_marhun" => $nilaimarhun]); } } @@ -668,6 +672,8 @@ class PenebusanController extends Controller 'karat' => $array1['karat'], 'berat_emas' => $array1['berat'], 'harga' => $array1['harga'], + 'tag_permata' => $array1['tag_permata'], + 'berat_batu_permata' => $array1['berat_batu_permata'], 'nilai_marhun' => $array1['n_marhun'] ])->json(); From 8b1dccb7181cd91189869ebf5376c98863f05ebe Mon Sep 17 00:00:00 2001 From: Hafifie PKB Date: Tue, 12 Nov 2024 13:51:26 +0800 Subject: [PATCH 07/22] test AT transaction --- app/Http/Controllers/PenebusanController.php | 119 +------------------ 1 file changed, 3 insertions(+), 116 deletions(-) diff --git a/app/Http/Controllers/PenebusanController.php b/app/Http/Controllers/PenebusanController.php index b31d6ab..f185a80 100644 --- a/app/Http/Controllers/PenebusanController.php +++ b/app/Http/Controllers/PenebusanController.php @@ -455,129 +455,16 @@ class PenebusanController extends Controller 'totalbayaran' => $request->totalbayaran, "duitpelanggan" => $request->bayaran, "bakipelanggan" => $request->bakipelanggan, + "noic" => $request->noic, + "jenisAT" => $request->jenisAT, ])->json(); - - ////////////////////// - /// MAKING NEW SAG//// - ///////////////////// - $gadai_transaction = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/'. $auth_user['cawangan'] . '/' . $current->toDateString())->json(); - if($gadai_transaction){ - $new_sirig = $gadai_transaction['sirig'] + 1; - - }else{ - $new_sirig = 1; - } - - $new_transaction = sprintf("%04d",$new_sirig); - $norujukanbaru = strtoupper($auth_user['cawangan']) . $curent_year . $curent_month . $current_day . '-' .$new_transaction; - - $gadai = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/api/gadai/'.$auth_user['cawangan'],[ - 'norujukan' => $norujukanbaru, - 'nopelanggan' => $request->nopelanggan, - 'nokp' => $request->noic, - 'sirig' => $new_sirig - ]); - - /////////////////////////// - /// MARHUN UPDATE TABLE//// - ////////////////////////// - - $arraymarhunbaru = []; - - $marhunsediada = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/marhun/'. $request->norujukan)->json(); - - $marhunyangdiambil = $marhunsediada[0]; - foreach($marhunyangdiambil as $index=>$marhunloop) - { - $karatbaru = str_replace('.','-',$marhunloop['karat']); - $hargabaru = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/harga_emas/'. $karatbaru)->json(); - - $harga = ($request->jenisAT == 'hargalama') ? $marhunloop['harga'] : $hargabaru['harga']; - $nilaimarhun = (floatval($harga) * floatval($marhunloop['berat'])); - - array_push($arraymarhunbaru, ["bil" => $marhunloop['bil'],"tag_permata" => $marhunloop['tag_permata'],"berat_batu_permata" => $marhunloop['berat_batu_permata'],"marhun" => $marhunloop['marhun'],"nota" => $marhunloop['nota'],"karat" => $marhunloop['karat'], "berat" => $marhunloop['berat'], "harga" => $harga, "n_marhun" => $nilaimarhun]); - } - - foreach($arraymarhunbaru as $array1){ - $updatemarhun = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/api/marhun/'. $auth_user['cawangan'],[ - 'norujukan' => $norujukanbaru, - 'marhun' => $array1['marhun'], - 'nota' => $array1['nota'], - 'karat' => $array1['karat'], - 'berat_emas' => $array1['berat'], - 'harga' => $array1['harga'], - 'nilai_marhun' => $array1['n_marhun'], - 'tag_permata' => $array1['tag_permata'], - 'berat_batu_permata' => $array1['berat_batu_permata'], - 'jenisAT' => $request->jenisAT - ])->json(); - } - - ////////////////////// - ////Update SAG BARU/// - ///////////////////// - - - $total_nilai_marhun = $request->total_nilai_marhun; - $margin_pinjaman = ($request->pinjaman / $total_nilai_marhun); - - $onepercent = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/api/onepercent',[ - 'pembiayaan' => $request->pinjaman, - 'nilaimarhun' => $total_nilai_marhun, - 'kadarujrah' => $request->kadarkeuntungan, - 'margin' => ($margin_pinjaman*100), - 'kodcaw' => Auth::user()->cawangan - ])->json(); - - $keuntungan_sebln = $onepercent['keuntungan']; - $keuntungan_sebln = str_replace(',','',$keuntungan_sebln); - - $kadarupah = $request->kadarkeuntungan * 100; - $keuntungan6bulan = $keuntungan_sebln * 6; - $keuntungan12bulan = $keuntungan_sebln * 12; - $hargajualan = $request->pinjaman + $keuntungan12bulan; - - - $gadai = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadai/norujukan/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[ - 'kodcaw' => $auth_user['cawangan'], - 'nilaimarhun' => round($total_nilai_marhun, 2), - 'berat' => round($request->total_berat, 2), - 'pinjaman' => round($request->pinjaman, 2), - 'kadarupah' => round($kadarupah, 2), - 'marhun' => $request->marhun_detail, - 'percentpinj' => $margin_pinjaman, - 'teller'=> $auth_user['name'], - 'upah6' => $keuntungan6bulan, - 'upah12' => $keuntungan12bulan, - 'hargajualan' => $hargajualan, - 'kuantiti_marhun' => $request->kuantiti_marhun, - ]); - - - $komuditi = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/komuditi/transaksi',[ - 'unit_komuditi' => round($request->pinjaman, 2), - 'norujukan' => $norujukanbaru, - 'kodcaw' => $auth_user['cawangan'], - 'teller' => $auth_user['name'] - ]); - - //////////////////////////// - ////Update History Gadaian/// - //////////////////////////// - - $updatehistorygadaian = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadai/updatehistory/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[ - 'historygadaian' => $request->norujukan, - 'jenistebus' => $request->jenistebus, - ])->json(); - - $alirantunai = new AliranTunaiController(); event(new TebusNotify('lulus',Auth::user()->cawangan)); event(new GadaiNotify('lulus',Auth::user()->cawangan)); $alirantunai->alirantunaiTebusAutoTawarruq($request); - return response()->json($updatemarhun,200); + return response()->json($updatetebus['data'],200); } From 89d3084bcd886a22aa99926046e34ba424beaa17 Mon Sep 17 00:00:00 2001 From: hafifierahman Date: Mon, 18 Nov 2024 00:32:06 +0800 Subject: [PATCH 08/22] commit error swal fire --- app/Http/Controllers/PenebusanController.php | 12 ++++---- resources/views/penebusan/v1/index.blade.php | 26 +++++++++++----- .../penebusan/v2/index-khazanah.blade.php | 30 ++++++++++++------- resources/views/penebusan/v2/index.blade.php | 27 ++++++++++++----- 4 files changed, 63 insertions(+), 32 deletions(-) diff --git a/app/Http/Controllers/PenebusanController.php b/app/Http/Controllers/PenebusanController.php index f185a80..5a8b700 100644 --- a/app/Http/Controllers/PenebusanController.php +++ b/app/Http/Controllers/PenebusanController.php @@ -459,13 +459,15 @@ class PenebusanController extends Controller "jenisAT" => $request->jenisAT, ])->json(); - $alirantunai = new AliranTunaiController(); - event(new TebusNotify('lulus',Auth::user()->cawangan)); - event(new GadaiNotify('lulus',Auth::user()->cawangan)); - $alirantunai->alirantunaiTebusAutoTawarruq($request); - return response()->json($updatetebus['data'],200); + if($updatetebus['result'] == 'success'){ + $alirantunai = new AliranTunaiController(); + event(new TebusNotify('lulus',Auth::user()->cawangan)); + event(new GadaiNotify('lulus',Auth::user()->cawangan)); + $alirantunai->alirantunaiTebusAutoTawarruq($request); + } + return response()->json($updatetebus['result'],200); } public function tebusseparuh(Request $request) diff --git a/resources/views/penebusan/v1/index.blade.php b/resources/views/penebusan/v1/index.blade.php index a5f3e0c..12e7ad3 100644 --- a/resources/views/penebusan/v1/index.blade.php +++ b/resources/views/penebusan/v1/index.blade.php @@ -2402,14 +2402,24 @@ var urlroute = '{{ route("resit.autotawarruq", ":id") }}'; urlroute = urlroute.replace(':id', norujukan); - Swal.fire( - 'Berjaya!', - 'Tebus Auto Tawarruq Berjaya', - 'success' - ) .then(function() { - window.open(urlroute, '_blank'); - window.location.replace("{{ route('customer_info') }}"); - }) + if(success_data == 'success'){ + Swal.fire( + 'Berjaya!', + 'Penyelesaian Pembiayaan Semula Berjaya', + 'success' + ) .then(function() { + window.open(urlroute, '_blank'); + window.location.replace("{{ route('customer_info') }}"); + }) + }else{ + Swal.fire( + 'Tidak Berjaya!', + 'Penyelesaian Pembiayaan Semula Tidak Berjaya!', + 'error' + ).then(function(){ + window.location.replace("{{ route('customer_info') }}"); + }); + } },error: function (request, status, error) { console.log(request.responseText); } diff --git a/resources/views/penebusan/v2/index-khazanah.blade.php b/resources/views/penebusan/v2/index-khazanah.blade.php index 677c396..a99406b 100644 --- a/resources/views/penebusan/v2/index-khazanah.blade.php +++ b/resources/views/penebusan/v2/index-khazanah.blade.php @@ -2660,17 +2660,25 @@ }, success:function(success_data){ - - var urlroute = '{{ route("resit.autotawarruq", ":id") }}'; - urlroute = urlroute.replace(':id', norujukan); - Swal.fire( - 'Berjaya!', - 'Penyelesaian Pembiayaan Semula Berjaya', - 'success' - ) .then(function() { - window.open(urlroute, '_blank'); - window.location.replace("{{ route('customer_info') }}"); - }) + if(success_data == 'success'){ + var urlroute = '{{ route("resit.autotawarruq", ":id") }}'; + urlroute = urlroute.replace(':id', norujukan); + Swal.fire( + 'Berjaya!', + 'Penyelesaian Pembiayaan Semula Berjaya', + 'success' + ) .then(function() { + window.open(urlroute, '_blank'); + window.location.replace("{{ route('customer_info') }}"); + }) + }else{ + Swal.fire( + 'Tidak Berjaya!', + 'Penyelesaian Pembiayaan Semula Tidak Berjaya!', + 'error' + ); + } + },error: function (request, status, error) { console.log(request.responseText); } diff --git a/resources/views/penebusan/v2/index.blade.php b/resources/views/penebusan/v2/index.blade.php index a31a109..77b8d41 100644 --- a/resources/views/penebusan/v2/index.blade.php +++ b/resources/views/penebusan/v2/index.blade.php @@ -3298,14 +3298,25 @@ var urlroute = '{{ route("resit.autotawarruq", ":id") }}'; urlroute = urlroute.replace(':id', norujukan); - Swal.fire( - 'Berjaya!', - 'Penyelesaian Pembiayaan Semula Berjaya', - 'success' - ) .then(function() { - window.open(urlroute, '_blank'); - window.location.replace("{{ route('customer_info') }}"); - }) + if(success_data == 'success'){ + Swal.fire( + 'Berjaya!', + 'Penyelesaian Pembiayaan Semula Berjaya', + 'success' + ) .then(function() { + window.open(urlroute, '_blank'); + window.location.replace("{{ route('customer_info') }}"); + }) + }else{ + Swal.fire( + 'Tidak Berjaya!', + 'Penyelesaian Pembiayaan Semula Tidak Berjaya!', + 'error' + ).then(function(){ + window.location.replace("{{ route('customer_info') }}"); + }); + } + },error: function (request, status, error) { console.log(request.responseText); } From e05e77495338fd93c3c42ea7e62fa312766aee74 Mon Sep 17 00:00:00 2001 From: Nurul Ain Izazi Date: Sun, 24 Nov 2024 05:18:40 +0800 Subject: [PATCH 09/22] update latest column di interface teller,khazanah,dan cc --- resources/views/callcenter/v2/info.blade.php | 20 +++--- resources/views/customers/v2/info.blade.php | 67 ++++++++++++-------- resources/views/khazanah/v2/info.blade.php | 60 +++++++++++------- 3 files changed, 91 insertions(+), 56 deletions(-) diff --git a/resources/views/callcenter/v2/info.blade.php b/resources/views/callcenter/v2/info.blade.php index f846e96..7f4dd31 100644 --- a/resources/views/callcenter/v2/info.blade.php +++ b/resources/views/callcenter/v2/info.blade.php @@ -1,3 +1,6 @@ +Call center + + @extends('layouts.app_callcenter') + @section('content') @include('modal.historytebus') @@ -10,7 +16,7 @@
- +
+ + +
+ +
+ +
+ +
+ + + +
+ +
+ + + +
+
+
+ + +