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

        $parts = $this->presenter->table($workOrder);

        $inventory = $this->presenter->tableInventory($workOrder, $this->inventory);

        $navbarParts = $this->presenter->navbarParts($workOrder);

        $navbarInventory = $this->presenter->navbarInventory();

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

        $parts = $this->presenter->table($workOrder);

        $inventory = $this->presenter->tableInventory($workOrder, $this->inventory);

        $navbarParts = $this->presenter->navbarParts($workOrder);

        $navbarInventory = $this->presenter->navbarInventory();

        return view('work-orders.parts.index', compact('parts', 'inventory', 'workOrder', 'navbarParts', 'navbarInventory'));
    }
Displays the specified work orders parts and inventory.

@param int|string $workOrderId

@return \Illuminate\View\View