- <?php if ($block->isCaptureAllowed()): ?>
- <?php if ($block->canCapture()):?>
- <div class="admin__field">
- <?php
- /*
- <label for="invoice_do_capture" class="normal"><?php echo __('Capture Amount') ?></label>
- <input type="checkbox" name="invoice[do_capture]" id="invoice_do_capture" value="1" checked/>
- */
- ?>
- <label for="invoice_do_capture" class="admin__field-label"><?php /* @escapeNotVerified */ echo __('Amount') ?></label>
- <select class="admin__control-select" name="invoice[capture_case]">
- <option value="online"><?php /* @escapeNotVerified */ echo __('Capture Online') ?></option>
- <option value="offline"><?php /* @escapeNotVerified */ echo __('Capture Offline') ?></option>
- <option value="not_capture"><?php /* @escapeNotVerified */ echo __('Not Capture') ?></option>
- </select>
- </div>
- <?php elseif ($block->isGatewayUsed()):?>
- <input type="hidden" name="invoice[capture_case]" value="offline"/>
- <div><?php /* @escapeNotVerified */ echo __('The invoice will be created offline without the payment gateway.') ?></div>
- <?php endif?>
- <?php endif; ?>