dashboard
This commit is contained in:
@@ -49,6 +49,8 @@ class DashboardController extends Controller
|
|||||||
'main_id' => auth()->user()->character_id,
|
'main_id' => auth()->user()->character_id,
|
||||||
])->count();
|
])->count();
|
||||||
|
|
||||||
|
$altCount = 0;
|
||||||
|
|
||||||
//If the alt count is greater than 0 get all of the alt accounts
|
//If the alt count is greater than 0 get all of the alt accounts
|
||||||
if($altCount > 0) {
|
if($altCount > 0) {
|
||||||
$alts = UserAlt::where([
|
$alts = UserAlt::where([
|
||||||
@@ -167,18 +169,6 @@ class DashboardController extends Controller
|
|||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if($openCount == 0) {
|
|
||||||
$open = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
if($approvedCount == 0) {
|
|
||||||
$approved = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
if($deniedCount == 0) {
|
|
||||||
$denied = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return view('dashboard')->with('openCount', $openCount)
|
return view('dashboard')->with('openCount', $openCount)
|
||||||
->with('approvedCount', $approvedCount)
|
->with('approvedCount', $approvedCount)
|
||||||
->with('deniedCount', $deniedCount)
|
->with('deniedCount', $deniedCount)
|
||||||
|
|||||||
Reference in New Issue
Block a user