fix
This commit is contained in:
@@ -61,6 +61,26 @@ class HomeController extends Controller
|
||||
$bilanganlelong += 1;
|
||||
}
|
||||
|
||||
return view('includes.home',compact('hargaemasterdahulu','bilangan','sixmonths','total','bilanganlelong'));
|
||||
$arraysag = [];
|
||||
$belum_tebus = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $auth_user['icno'] . '/gadai/' . 'belum_tebus')->json();
|
||||
|
||||
if(is_array($belum_tebus))
|
||||
{
|
||||
if(sizeof($belum_tebus) > 0)
|
||||
{
|
||||
foreach($belum_tebus as $index=>$bt)
|
||||
{
|
||||
foreach($bt as $index1=>$bet)
|
||||
{
|
||||
array_push($arraysag,$bet);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$belum_tebus = $arraysag;
|
||||
$api_url = config('api.url');
|
||||
|
||||
return view('includes.home',compact('api_url','belum_tebus','hargaemasterdahulu','bilangan','sixmonths','total','bilanganlelong'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user