Add necessary use statements, clean up the run-on return statement that was forming...

This commit is contained in:
Nick Peelman
2013-11-27 10:18:15 -05:00
parent b5a0da03a8
commit c2d889de12
+7 -1
View File
@@ -9,6 +9,7 @@ use Setting;
use Sentry;
use DB;
use Depreciation;
use Manufacturer;
use Str;
use Validator;
use View;
@@ -40,7 +41,12 @@ class ModelsController extends AdminController {
$depreciation_list = array('' => 'Do Not Depreciate') + Depreciation::lists('name', 'id');
$manufacturer_list = array('' => 'N/A') + Manufacturer::lists('name', 'id');
$category_list = array('' => '') + DB::table('categories')->lists('name', 'id');
return View::make('backend/models/edit')->with('category_list',$category_list)->with('depreciation_list',$depreciation_list)->with('model',new Model);
$view = View::make('backend/models/edit')
$view->with('category_list',$category_list);
$view->with('depreciation_list',$depreciation_list);
$view->with('manufacturer_list',$manufacturer_list);
$view->with('model',new Model);
return $view;
}