/** * Display a listing of the resource. * * @return Response */ public function index() { //get the low level ingredients list // $threshold = Ingredient::where('stocks', '<','alert_level')->get(); $threshold = Ingredient::getThresholdIngredients(); // return $threshold; //show the view return View::make('inventory.index')->with('title', 'Store Inventory')->with('ingredients', Ingredient::all())->with('threshold', $threshold); }