예제 #1
0
 /**
  * Display a Filtered Listing of the resource.
  */
 public function filter()
 {
     $inventory = $this->getRequest(Inventory::TABLE_NAME);
     // using an implementation of the Inventory Repository Interface
     $inventories = $this->inventoryRepository->paginate($inventory);
     //dd(__METHOD__.'('.__LINE__.')', compact('inventory', 'inventories'));
     // populate a View
     return View::make('pages.inventory.index', compact('inventory', 'inventories'));
 }
예제 #2
0
 /**
  * Display a specific resource
  */
 public function show($id)
 {
     // using an implementation of the Tote Repository Interface
     $tote = $this->toteRepository->find($id);
     //dd(__METHOD__.'('.__LINE__.')',compact('id','tote'));
     $levels = $this->buildHeading($tote);
     //dd(__METHOD__.'('.__LINE__.')',compact('id','tote','levels'));
     // get children Inventories of this Tote
     $filter = ['container.parent' => $id];
     $inventories = $this->inventoryRepository->paginate($filter);
     //dd(__METHOD__.'('.__LINE__.')',compact('id','tote','levels','inventories'));
     return view('pages.tote.show', compact('tote', 'levels', 'inventories'));
 }