Example #1
0
 /**
  * Get total assets not checked out
  */
 public static function availassetcount()
 {
     return Asset::RTD()->whereNull('deleted_at')->count();
 }
Example #2
0
 public function getBulkCheckout()
 {
     // Get the dropdown of users and then pass it to the checkout view
     $users_list = Helper::usersList();
     // Filter out assets that are not deployable.
     $assets = Asset::RTD()->get();
     $assets_list = Company::scopeCompanyables($assets, 'assets.company_id')->lists('detailed_name', 'id')->toArray();
     return View::make('hardware/bulk-checkout')->with('users_list', $users_list)->with('assets_list', $assets_list);
 }