public function item_list() { if (Auth::check()) { $food_cat = FoodCategory::all()->lists('view', 'id'); return View::make('items', array('food_cat' => $food_cat)); } return View::make('login'); }
/** * Display a listing of the resource. * * @return Response */ public function index() { if (Auth::check()) { $tables = $this->getTables(); $items = App::make("ItemController")->getAllItem(); $category = FoodCategory::all(); $ordered_item = $this->getAllOrderedItem(); return View::make('POS/pos', array('tables' => $tables, 'items' => $items, 'categories' => $category, 'ordered_item' => $ordered_item)); } return View::make('login'); }