App\Http\Controllers\DashboardController Class Reference
This controller handles all actions related to the Admin Dashboard for the Snipe-IT Asset Management application. More...
Inheritance diagram for App\Http\Controllers\DashboardController:

Public Member Functions | |
getIndex () | |
Check authorization and display admin dashboard, otherwise display the user's checked-out assets. More... | |
Detailed Description
This controller handles all actions related to the Admin Dashboard for the Snipe-IT Asset Management application.
- Version
- v1.0
Definition at line 18 of file DashboardController.php.
Member Function Documentation
App\Http\Controllers\DashboardController::getIndex | ( | ) |
Check authorization and display admin dashboard, otherwise display the user's checked-out assets.
- Since
- [v1.0]
- Returns
- View
Definition at line 28 of file DashboardController.php.
44 $asset_stats['rtd']['percent'] = round(($asset_stats['rtd']['total']/$asset_stats['total']) * 100);
53 $asset_stats['pending']['percent'] = round(($asset_stats['pending']['total']/$asset_stats['total']) * 100);
62 $asset_stats['deployed']['percent'] = round(($asset_stats['deployed']['total']/$asset_stats['total']) * 100);
71 $asset_stats['undeployable']['percent'] = round(($asset_stats['undeployable']['total']/$asset_stats['total']) * 100);
79 $asset_stats['archived']['percent'] = round(($asset_stats['archived']['total']/$asset_stats['total']) * 100);
The documentation for this class was generated from the following file: