app/Processors/WorkOrder/WorkOrderPartStockProcessor.php
public function index($workOrderId, $itemId)
    {
        $workOrder = $this->workOrder->findOrFail($workOrderId);

        $item = $this->inventory->findOrFail($itemId);

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

        $variants = $this->presenter->tableVariants($workOrder, $item);

        return view('work-orders.parts.stocks.index', compact('stocks', 'variants'));
    }
public function index($workOrderId, $itemId)
    {
        $workOrder = $this->workOrder->findOrFail($workOrderId);

        $item = $this->inventory->findOrFail($itemId);

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

        $variants = $this->presenter->tableVariants($workOrder, $item);

        return view('work-orders.parts.stocks.index', compact('stocks', 'variants'));
    }
Displays all stocks and variants available for selection.

@param int|string $workOrderId
@param int|string $itemId

@return \Illuminate\View\View