public function index($inventory_id, $stock_id)
    {
        $item = $this->inventory->find($inventory_id);
        $stock = $this->inventoryStock->find($stock_id);

        $data = $this->inputAll();
        $data['stock_id'] = $stock->id;

        $movements = $this->inventoryStockMovement->setInput($data)->getByPageWithFilter();

        return view('inventory.stocks.movements.index', [
            'title'     => "Viewing Stock Movements for Item: $item->name in Location: ".renderNode($stock->location),
            'item'      => $item,
            'stock'     => $stock,
            'movements' => $movements,
        ]);
    }
public function index($inventory_id, $stock_id)
    {
        $item = $this->inventory->find($inventory_id);
        $stock = $this->inventoryStock->find($stock_id);

        $data = $this->inputAll();
        $data['stock_id'] = $stock->id;

        $movements = $this->inventoryStockMovement->setInput($data)->getByPageWithFilter();

        return view('inventory.stocks.movements.index', [
            'title'     => "Viewing Stock Movements for Item: $item->name in Location: ".renderNode($stock->location),
            'item'      => $item,
            'stock'     => $stock,
            'movements' => $movements,
        ]);
    }
public function index ( $ inventory_id , $ stock_id ) { $ item = $ this -> inventory -> find ( $ inventory_id ) ; $ stock = $ this -> inventoryStock -> find ( $ stock_id ) ; $ data = $ this -> inputAll ( ) ; $ data [ 'stock_id' ] = $ stock -> id ; $ movements = $ this -> inventoryStockMovement -> setInput ( $ data ) -> getByPageWithFilter ( ) ; return view ( 'inventory.stocks.movements.index' , [ 'title' => "Viewing Stock Movements for Item: $item->name in Location: " . renderNode ( $ stock -> location ) , 'item' => $ item , 'stock' => $ stock , 'movements' => $ movements , ] ) ; }
Displays all the stock movement entries for the specified stock for the
specified inventory.

@param $inventory_id
@param $stock_id

@return mixed
Displays all the stock movement entries for the specified stock for the specified inventory .