Add components and users count to dashboard

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2021-06-19 16:16:18 -07:00
parent 60538508d4
commit dc157f8f78
2 changed files with 1119 additions and 1117 deletions

View file

@ -33,6 +33,8 @@ class DashboardController extends Controller
$counts['accessory'] = \App\Models\Accessory::count();
$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['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'))) {

2234
package-lock.json generated

File diff suppressed because it is too large Load diff