DepreciationsController.php
Go to the documentation of this file.
50 return View::make('depreciations/edit')->with('depreciation_options', $depreciation_options)->with('depreciation', new Depreciation);
79 return Redirect::to("admin/settings/depreciations")->with('success', trans('admin/depreciations/message.create.success'));
100 return Redirect::to('admin/settings/depreciations')->with('error', trans('admin/depreciations/message.does_not_exist'));
106 $depreciation_options = array('' => 'Top Level') + DB::table('depreciations')->where('id', '!=', $depreciationId)->lists('name', 'id');
107 return View::make('depreciations/edit', compact('depreciation'))->with('depreciation_options', $depreciation_options);
125 return Redirect::to('admin/settings/depreciations')->with('error', trans('admin/depreciations/message.does_not_exist'));
135 return Redirect::to("admin/settings/depreciations/")->with('success', trans('admin/depreciations/message.update.success'));
157 return Redirect::to('admin/settings/depreciations')->with('error', trans('admin/depreciations/message.not_found'));
163 return Redirect::to('admin/settings/depreciations')->with('error', trans('admin/depreciations/message.assoc_users'));
169 return Redirect::to('admin/settings/depreciations')->with('success', trans('admin/depreciations/message.delete.success'));
216 $actions = '<a href="'.route('update/depreciations', $depreciation->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/depreciations', $depreciation->id).'" data-content="'.trans('admin/depreciations/message.delete.confirm').'" data-title="'.trans('general.delete').' '.htmlspecialchars($depreciation->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
getDatatable()
Generates the JSON used to display the depreciation listing.
Definition: DepreciationsController.php:184
Definition: Depreciation.php:7
Definition: AccessoriesController.php:2
postCreate()
Validates and stores the new depreciation data.
Definition: DepreciationsController.php:62
Definition: Controller.php:30
getDelete($depreciationId)
Validates and deletes a selected depreciation.
Definition: DepreciationsController.php:152
This controller handles all actions related to Depreciations for the Snipe-IT Asset Management applic...
Definition: DepreciationsController.php:20
getIndex()
Returns a view that invokes the ajax tables which actually contains the content for the depreciation ...
Definition: DepreciationsController.php:31
getCreate()
Returns a view that displays a form to create a new depreciation.
Definition: DepreciationsController.php:46
postEdit($depreciationId=null)
Validates and stores the updated depreciation data.
Definition: DepreciationsController.php:120
getEdit($depreciationId=null)
Returns a view that displays a form to update a depreciation.
Definition: DepreciationsController.php:95