diff --git a/app/Http/Controllers/DepreciationsController.php b/app/Http/Controllers/DepreciationsController.php index a84174dc83..acdf06a4ff 100755 --- a/app/Http/Controllers/DepreciationsController.php +++ b/app/Http/Controllers/DepreciationsController.php @@ -100,11 +100,7 @@ class DepreciationsController extends Controller return Redirect::to('admin/settings/depreciations')->with('error', trans('admin/depreciations/message.does_not_exist')); } - // Show the page - //$depreciation_options = array('' => 'Top Level') + Depreciation::lists('name', 'id'); - - $depreciation_options = Helper::depreciationList(); - return View::make('depreciations/edit', compact('depreciation'))->with('depreciation_options', $depreciation_options); + return View::make('depreciations/edit', compact('depreciation')); } diff --git a/resources/views/depreciations/edit.blade.php b/resources/views/depreciations/edit.blade.php index 03a0540d6a..e198bcf785 100755 --- a/resources/views/depreciations/edit.blade.php +++ b/resources/views/depreciations/edit.blade.php @@ -29,11 +29,7 @@
- @if ($depreciation->id) -
- {{ $depreciation->name }} -
- @endif +