<?php
if (!defined('ABSPATH')) exit;

$iwbvel_field_id = 'iwbvel-bulk-new-form-' . esc_attr($iwbvel_item['name']);
?>
<input <?php echo (isset($iwbvel_item['disabled']) && $iwbvel_item['disabled']) ? 'disabled="disabled"' : ''; ?>
    type="number"
    id="<?php echo esc_attr($iwbvel_field_id); ?>"
    data-field="value"
    placeholder="<?php echo isset($iwbvel_item['placeholder']) ? esc_attr($iwbvel_item['placeholder']) : ''; ?>">

<?php if (isset($iwbvel_item['round_items']) && is_array($iwbvel_item['round_items'])): ?>
    <select <?php echo (isset($iwbvel_item['disabled']) && $iwbvel_item['disabled']) ? 'disabled="disabled"' : ''; ?> data-field="round" id="<?php echo esc_attr($iwbvel_field_id); ?>-round-item" title="<?php esc_attr_e('Select round item', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?>">
        <?php foreach ($iwbvel_item['round_items'] as $iwbvel_value => $iwbvel_label): ?>
            <option value="<?php echo esc_attr($iwbvel_value); ?>"><?php echo esc_html($iwbvel_label); ?></option>
        <?php endforeach; ?>
    </select>
<?php endif; ?>