diff --git a/app/Http/Controllers/BayaranController.php b/app/Http/Controllers/BayaranController.php index 66608d8..ab0b2c3 100644 --- a/app/Http/Controllers/BayaranController.php +++ b/app/Http/Controllers/BayaranController.php @@ -77,6 +77,11 @@ class BayaranController extends Controller { $gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $sag)->json(); + //$array_lelong = Http::withOptions(['verify' => config('app.api_verify')])->get('https://adminbid.arrahn.com.my/api/portalApi',['norujukan' => $sag])->json(); + //if($array_lelong['lelong'] !== null){ + // return redirect()->route('home')->with('error','Barangan Sedang Dilelong.'); + //} + if($gadai[0][0]['tempoh'] >= 12){ return redirect()->route('home')->with('error','SAG Yang Dipilih melebihi tempoh 12 bulan ke atas.'); } diff --git a/app/Http/Controllers/InformationController.php b/app/Http/Controllers/InformationController.php index c7f8ed9..6be26fe 100644 --- a/app/Http/Controllers/InformationController.php +++ b/app/Http/Controllers/InformationController.php @@ -48,9 +48,9 @@ class InformationController extends Controller } } $pembiayaansemasa = collect($pembiayaansemasa)->merge($CustomerInfo['lelong']); + $pembiayaansemasa = $pembiayaansemasa->toArray(); } } - $pembiayaansemasa = $pembiayaansemasa->toArray(); return response()->json($pembiayaansemasa,200); // return view('includes.information.pembiayaanaktif',compact('pembiayaansemasa')); } @@ -95,6 +95,7 @@ class InformationController extends Controller } } $lelong = collect($lelong)->merge($CustomerInfo['lelong']); + $lelong = $lelong->toArray(); } } diff --git a/resources/views/includes/login/loginportal.blade.php b/resources/views/includes/login/loginportal.blade.php index 95ac41a..a09dc75 100644 --- a/resources/views/includes/login/loginportal.blade.php +++ b/resources/views/includes/login/loginportal.blade.php @@ -40,9 +40,9 @@
Pertama Kali @@ -57,4 +57,4 @@ -@endsection \ No newline at end of file +@endsection