fix skit2
This commit is contained in:
+53
-2
@@ -33,6 +33,7 @@ Route::get('/firsttime', function () {
|
||||
return view('/includes/login/firsttime');
|
||||
});
|
||||
Route::get('/portalhome', function () {
|
||||
$auth_user = Auth::user();
|
||||
|
||||
$harga_emas = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/harga_emas/')->json();
|
||||
|
||||
@@ -48,7 +49,29 @@ Route::get('/portalhome', function () {
|
||||
|
||||
}
|
||||
|
||||
return view('includes.home',compact('hargaemasterdahulu'));
|
||||
$CustomerInfo = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/portal/customer/info',['ic' => $auth_user['icno']])->json();
|
||||
|
||||
$total = 0.00;
|
||||
$sixmonths = 0;
|
||||
$bilangan = 0;
|
||||
foreach($CustomerInfo['gadai'] as $index=>$gadai)
|
||||
{
|
||||
$bilangan++;
|
||||
$total += $gadai['pinjaman'];
|
||||
|
||||
if($gadai['tempoh'] >= 6)
|
||||
{
|
||||
$sixmonths++;
|
||||
}
|
||||
}
|
||||
|
||||
$bilanganlelong = 0;
|
||||
foreach($CustomerInfo['lelong'] as $index1=>$lelong)
|
||||
{
|
||||
$bilanganlelong += 1;
|
||||
}
|
||||
|
||||
return view('includes.home',compact('hargaemasterdahulu','bilangan','sixmonths','total','bilanganlelong'));
|
||||
});
|
||||
Route::get('/portalprofile', function () {
|
||||
return view('/includes/profile');
|
||||
@@ -72,6 +95,7 @@ Route::get('/bayarsag', function () {
|
||||
|
||||
Route::get('/', function () {
|
||||
// return view('dashboard');
|
||||
$auth_user = Auth::user();
|
||||
|
||||
$harga_emas = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/harga_emas/')->json();
|
||||
|
||||
@@ -87,7 +111,29 @@ Route::get('/', function () {
|
||||
|
||||
}
|
||||
|
||||
return view('includes.home',compact('hargaemasterdahulu'));
|
||||
$CustomerInfo = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/portal/customer/info',['ic' => $auth_user['icno']])->json();
|
||||
|
||||
$total = 0.00;
|
||||
$sixmonths = 0;
|
||||
$bilangan = 0;
|
||||
foreach($CustomerInfo['gadai'] as $index=>$gadai)
|
||||
{
|
||||
$bilangan++;
|
||||
$total += $gadai['pinjaman'];
|
||||
|
||||
if($gadai['tempoh'] >= 6)
|
||||
{
|
||||
$sixmonths++;
|
||||
}
|
||||
}
|
||||
|
||||
$bilanganlelong = 0;
|
||||
foreach($CustomerInfo['lelong'] as $index1=>$lelong)
|
||||
{
|
||||
$bilanganlelong += 1;
|
||||
}
|
||||
|
||||
return view('includes.home',compact('hargaemasterdahulu','bilangan','sixmonths','total','bilanganlelong'));
|
||||
})->middleware(['auth','verified']);
|
||||
|
||||
// Route::get('/home', 'HomeController@index');
|
||||
@@ -107,6 +153,11 @@ Route::group(['middleware' => 'auth'], function () {
|
||||
Route::get('icons', function () {return view('pages.icons');})->name('icons');
|
||||
Route::get('table-list', function () {return view('pages.tables');})->name('table');
|
||||
Route::put('profile/password', ['as' => 'profile.password', 'uses' => 'App\Http\Controllers\ProfileController@password']);
|
||||
|
||||
Route::get('pembiayaansemasa', ['as' => 'info.pembsemasa', 'uses' => 'App\Http\Controllers\InformationController@pembiayaansemasa']);
|
||||
Route::get('pembiayaanaktif', ['as' => 'info.pembaktif', 'uses' => 'App\Http\Controllers\InformationController@pembiayaanaktif']);
|
||||
Route::get('melebihi6bulan', ['as' => 'info.pemb6bulan', 'uses' => 'App\Http\Controllers\InformationController@pembiayaanmelebihi6bulan']);
|
||||
Route::get('pemblelongan', ['as' => 'info.pemblelongan', 'uses' => 'App\Http\Controllers\InformationController@pembiayaanakandilelong']);
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user