diff --git a/app/Http/Controllers/TacController.php b/app/Http/Controllers/TacController.php index bbc7463..0cd4879 100644 --- a/app/Http/Controllers/TacController.php +++ b/app/Http/Controllers/TacController.php @@ -17,8 +17,9 @@ class TacController extends Controller if($tac){ $CustomerInfo = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/customers/' . $request->icno)->json(); - $daerah = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/daerah/' . $CustomerInfo['koddaerah'])->json(); - $negeri =Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/negeri/' . $CustomerInfo['kodnegeri'])->json(); + $poskod = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/poskod/' . $CustomerInfo['poskod'])->json(); + $daerah = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/daerah/' . $poskod['koddaerah'])->json(); + $negeri =Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/negeri/' . $poskod['kodnegeri'])->json(); return response(['status' => 1, 'customerinfo' => $CustomerInfo,'namadaerah' => $daerah['namadaerah'],'namanegeri' => $negeri['negeri']]); }else{ diff --git a/resources/views/auth/pertama-kali/firsttime2.blade.php b/resources/views/auth/pertama-kali/firsttime2.blade.php index 2b73a66..7af4de5 100644 --- a/resources/views/auth/pertama-kali/firsttime2.blade.php +++ b/resources/views/auth/pertama-kali/firsttime2.blade.php @@ -223,7 +223,7 @@ diff --git a/resources/views/resit/resitansuran.blade.php b/resources/views/resit/resitansuran.blade.php index 714eeaf..c76542b 100644 --- a/resources/views/resit/resitansuran.blade.php +++ b/resources/views/resit/resitansuran.blade.php @@ -534,7 +534,7 @@ : RM {{ number_format(($gadai['bakipjm']+$transaction['bayaran_pembiayaan']),2) }} - Ansuran Pembiyaan + Ansuran Pembiayaan : RM {{ number_format($transaction['bayaran_pembiayaan'],2) }} diff --git a/resources/views/resit/resittebusautotawarruq.blade.php b/resources/views/resit/resittebusautotawarruq.blade.php index 052b373..ab8c2bd 100644 --- a/resources/views/resit/resittebusautotawarruq.blade.php +++ b/resources/views/resit/resittebusautotawarruq.blade.php @@ -414,7 +414,7 @@ hr.new5 { : RM {{ number_format($transaction_keuntungan['bayaran_keuntungan'],2) }} - Pembiyaan Baru + Pembiayaan Baru : RM {{ number_format($gadai['pinjaman']-$transaction_keuntungan['bayaran_pembiayaan'],2) }}