This commit is contained in:
hafifierahman
2022-04-18 09:20:10 +08:00
parent c09332063a
commit 67da9779a8
6 changed files with 603 additions and 145 deletions
+21 -1
View File
@@ -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'));
}
}