fix kodcaw lelong
This commit is contained in:
@@ -20,8 +20,8 @@ class LelongController extends Controller
|
|||||||
$api_url = config('api.url');
|
$api_url = config('api.url');
|
||||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$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();
|
$gadaidetail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $auth_user['cawangan'] . '/' . $norujukan)->json();
|
||||||
$noic = $gadaidetail[0][0]['nokp'];
|
$noic = $gadaidetail[0]['nokp'];
|
||||||
$customerdetail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $noic)->json();
|
$customerdetail = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $noic)->json();
|
||||||
$nama = $customerdetail['nama'];
|
$nama = $customerdetail['nama'];
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ class LelongController extends Controller
|
|||||||
$lelong = $lelong[0];
|
$lelong = $lelong[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
$gadai = $gadaidetail[0][0];
|
$gadai = $gadaidetail[0];
|
||||||
|
|
||||||
return view('lelongan.index',compact('cawangan_info','api_url','gadai','nama','lelong'));
|
return view('lelongan.index',compact('cawangan_info','api_url','gadai','nama','lelong'));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user