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

        $form = $this->presenter->form($item, $item->stocks()->getRelated());

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

        $form = $this->presenter->form($item, $item->stocks()->getRelated());

        return view('inventory.stocks.create', compact('form'));
    }
public function create ( $ itemId ) { $ item = $ this -> inventory -> findOrFail ( $ itemId ) ; $ form = $ this -> presenter -> form ( $ item , $ item -> stocks ( ) -> getRelated ( ) ) ; return view ( 'inventory.stocks.create' , compact ( 'form' ) ) ; }
Displays the from for creating a stock for.

@param int|string $itemId

@return \Illuminate\View\View
Displays the from for creating a stock for .