admin dashboard updates
This commit is contained in:
@@ -31,6 +31,7 @@ class AdminController extends Controller
|
|||||||
$office = array();
|
$office = array();
|
||||||
$user = array();
|
$user = array();
|
||||||
$permission = array();
|
$permission = array();
|
||||||
|
$entities = array();
|
||||||
$corpId = 98287666;
|
$corpId = 98287666;
|
||||||
|
|
||||||
/** Taxes Pane */
|
/** Taxes Pane */
|
||||||
@@ -91,6 +92,17 @@ class AdminController extends Controller
|
|||||||
'permissions' => $permission,
|
'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)
|
return view('admin.dashboard')->with('data', $data)
|
||||||
->with('pis', $pis)
|
->with('pis', $pis)
|
||||||
->with('industrys', $industrys)
|
->with('industrys', $industrys)
|
||||||
|
|||||||
Reference in New Issue
Block a user