fix kodcaw lelong

This commit is contained in:
e.arrahn
2022-09-11 12:23:16 +08:00
parent 2a08cac24d
commit ea3b6c7c9c
+3 -3
View File
@@ -20,8 +20,8 @@ class LelongController extends Controller
$api_url = config('api.url');
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
$gadaidetail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $norujukan)->json();
$noic = $gadaidetail[0][0]['nokp'];
$gadaidetail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $auth_user['cawangan'] . '/' . $norujukan)->json();
$noic = $gadaidetail[0]['nokp'];
$customerdetail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $noic)->json();
$nama = $customerdetail['nama'];
@@ -32,7 +32,7 @@ class LelongController extends Controller
$lelong = $lelong[0];
}
$gadai = $gadaidetail[0][0];
$gadai = $gadaidetail[0];
return view('lelongan.index',compact('cawangan_info','api_url','gadai','nama','lelong'));
}