From 16e7244065e265c58357f4b18c5710e18c398263 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Tue, 6 Aug 2019 02:13:50 -0500 Subject: [PATCH] dashboard --- .../Controllers/Dashboard/DashboardController.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/app/Http/Controllers/Dashboard/DashboardController.php b/app/Http/Controllers/Dashboard/DashboardController.php index 7e66692ba..6f250d640 100644 --- a/app/Http/Controllers/Dashboard/DashboardController.php +++ b/app/Http/Controllers/Dashboard/DashboardController.php @@ -49,6 +49,8 @@ class DashboardController extends Controller 'main_id' => auth()->user()->character_id, ])->count(); + $altCount = 0; + //If the alt count is greater than 0 get all of the alt accounts if($altCount > 0) { $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) ->with('approvedCount', $approvedCount) ->with('deniedCount', $deniedCount)