loading waiting for approval when refresh

This commit is contained in:
hafifierahman
2025-06-17 02:20:54 +08:00
committed by Hafifie PKB
parent a641b38cc5
commit 8a3598fa24
3 changed files with 51 additions and 2 deletions
+5 -1
View File
@@ -65,12 +65,16 @@ class CustomersController extends Controller
$customer_page = ($cawangan_info['version'] == 'v1') ? 'customers.v1.info' : 'customers.v2.info';
$getApprovalError = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/admin/ansuran/getApproval',[
'kodcaw' => $auth_user['cawangan'],
'teller' => $auth_user['name'],
])->json();
if($request->tebus_auto_tawarruq_berjaya === 'true'){
$request->session()->flash('activate_tab', 'SAG_baru');
}
return view($customer_page,compact('cawangan_info','api_url','customer_info','bakilelong','rugilelong','min_komoditi','pekerjaan'));
return view($customer_page,compact('cawangan_info','api_url','customer_info','bakilelong','rugilelong','min_komoditi','pekerjaan','ugama','getApprovalError'));
}
public function search(Request $request){