Added additional boxes to the dashboard

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2021-06-28 16:36:15 -07:00
parent d4e46ee41f
commit 4af247f845
3 changed files with 54 additions and 16 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ class DashboardController extends Controller
$counts['license'] = \App\Models\License::assetcount();
$counts['consumable'] = \App\Models\Consumable::count();
$counts['component'] = \App\Models\Component::count();
$counts['users'] = \App\Models\User::count();
$counts['user'] = \App\Models\User::count();
$counts['grand_total'] = $counts['asset'] + $counts['accessory'] + $counts['license'] + $counts['consumable'];
if ((! file_exists(storage_path().'/oauth-private.key')) || (! file_exists(storage_path().'/oauth-public.key'))) {