public function index($itemId)
    {
        $item = $this->inventory->findOrFail($itemId);

        $navbar = $this->presenter->navbar($item);

        $stocks = $this->presenter->table($item);

        return view('inventory.stocks.index', compact('stocks', 'navbar'));
    }
public function index($itemId)
    {
        $item = $this->inventory->findOrFail($itemId);

        $navbar = $this->presenter->navbar($item);

        $stocks = $this->presenter->table($item);

        return view('inventory.stocks.index', compact('stocks', 'navbar'));
    }
public function index ( $ itemId ) { $ item = $ this -> inventory -> findOrFail ( $ itemId ) ; $ navbar = $ this -> presenter -> navbar ( $ item ) ; $ stocks = $ this -> presenter -> table ( $ item ) ; return view ( 'inventory.stocks.index' , compact ( 'stocks' , 'navbar' ) ) ; }
Displays all stocks for the specified inventory item.

@param int|string $itemId

@return \Illuminate\View\View
Displays all stocks for the specified inventory item .