admin dashboard updates

This commit is contained in:
2019-03-06 23:23:37 -06:00
parent de6891e995
commit a04d17970a

View File

@@ -31,6 +31,7 @@ class AdminController extends Controller
$office = array();
$user = array();
$permission = array();
$entities = array();
$corpId = 98287666;
/** Taxes Pane */
@@ -91,6 +92,17 @@ class AdminController extends Controller
'permissions' => $permission,
];
/** Entities for allowed logins */
$legacys = AllowedLogin::where(['login_type' => 'Legacy'])->pluck('entity_id')->toArray();
$renters = AllowedLogin::where(['login_type' => 'Renter'])->pluck('entity_id')->toArray();
foreach($legacys as $legacy) {
$entities[] = $legacy;
}
foreach($renters as $renter) {
$entities[] = $renter;
}
return view('admin.dashboard')->with('data', $data)
->with('pis', $pis)
->with('industrys', $industrys)