app/Http/Presenters/WorkOrder/WorkOrderPartStockPresenter.php
public function formTake(WorkOrder $workOrder, Inventory $inventory, InventoryStock $stock)
    {
        return $this->form->of('work-orders.parts.stocks.take', function (FormGrid $form) use ($workOrder, $inventory, $stock) {
            $form->attributes([
                'method' => 'POST',
                'url'    => route('maintenance.work-orders.parts.stocks.take', [$workOrder->getKey(), $inventory->getKey(), $stock->getKey()]),
            ]);

            $form->submit = 'Save';

            $form->fieldset(function (Fieldset $fieldset) use ($inventory) {
                $metric = $inventory->getMetricSymbol();

                $fieldset
                    ->control('input:text', 'quantity')
                    ->value(0)
                    ->attribute([
                        'placeholder' => "Enter Quantity in $metric",
                    ]);
            });
        });
    }
public function formTake(WorkOrder $workOrder, Inventory $inventory, InventoryStock $stock)
    {
        return $this->form->of('work-orders.parts.stocks.take', function (FormGrid $form) use ($workOrder, $inventory, $stock) {
            $form->attributes([
                'method' => 'POST',
                'url'    => route('maintenance.work-orders.parts.stocks.take', [$workOrder->getKey(), $inventory->getKey(), $stock->getKey()]),
            ]);

            $form->submit = 'Save';

            $form->fieldset(function (Fieldset $fieldset) use ($inventory) {
                $metric = $inventory->getMetricSymbol();

                $fieldset
                    ->control('input:text', 'quantity')
                    ->value(0)
                    ->attribute([
                        'placeholder' => "Enter Quantity in $metric",
                    ]);
            });
        });
    }
Returns a new form for taking stock from the specified
inventory for the specified work order.

@param WorkOrder      $workOrder
@param Inventory      $inventory
@param InventoryStock $stock

@return \Orchestra\Contracts\Html\Builder