diff --git a/app/Http/Controllers/InformationController.php b/app/Http/Controllers/InformationController.php index d749776..803a96b 100644 --- a/app/Http/Controllers/InformationController.php +++ b/app/Http/Controllers/InformationController.php @@ -74,6 +74,19 @@ class InformationController extends Controller if(isset($CustomerInfo['lelong'])) { $lelong += $CustomerInfo['lelong']; + + if(isset($CustomerInfo['lelong'])){ + if(sizeof($CustomerInfo['lelong']) > 0){ + foreach($CustomerInfo['lelong'] as $index=>$lel){ + // $array_lelong = Http::withOptions(['verify' => config('app.api_verify')])->get('https://adminbid.arrahn.com.my/api/portalApi',['norujukan' => $lel['norujukan']])->json(); + $array_lelong = Http::withOptions(['verify' => config('app.api_verify')])->get('http://lelong.test/api/portalApi/',['norujukan' => $lel['norujukan']]); + if($array_lelong['lelong'] !== null){ + $CustomerInfo['lelong'][$index] = collect($lel)->merge($array_lelong['lelong'])->toArray(); + } + } + $lelong = collect($lelong)->merge($CustomerInfo['lelong']); + $lelong = $lelong->toArray(); + } } diff --git a/resources/views/includes/home.blade.php b/resources/views/includes/home.blade.php index 5a3ab8c..cf5634f 100644 --- a/resources/views/includes/home.blade.php +++ b/resources/views/includes/home.blade.php @@ -144,15 +144,34 @@
+ + +
@csrf
-
+ + + + + + @if (\Session::has('error'))