<?php
if (!defined('ABSPATH')) exit; // Exit if accessed directly 
?>

<div class="iwbvel-form-group" data-name="stock_quantity" data-type="woocommerce_field">
    <label for="iwbvel-variations-bulk-actions-stock-quantity"><?php esc_html_e('Stock quantity', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></label>
    <select name="" id="" data-field="operator">
        <?php
        if (!empty($iwbvel_edit_number_operator)) :
            foreach ($iwbvel_edit_number_operator as $iwbvel_key => $iwbvel_value) :
        ?>
                <option value="<?php echo esc_attr($iwbvel_key); ?>"><?php echo esc_html($iwbvel_value); ?></option>
        <?php
            endforeach;
        endif;
        ?>
    </select>
    <input type="number" id="iwbvel-variations-bulk-actions-stock-quantity" data-field="value" value="">
</div>

<div class="iwbvel-form-group" data-name="low_stock_threshold" data-type="woocommerce_field">
    <label for="iwbvel-variations-bulk-actions-low-stock-threshold"><?php esc_html_e('Low stock threshold ', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></label>
    <select name="" id="" data-field="operator">
        <?php
        if (!empty($iwbvel_edit_number_operator)) :
            foreach ($iwbvel_edit_number_operator as $iwbvel_key => $iwbvel_value) :
        ?>
                <option value="<?php echo esc_attr($iwbvel_key); ?>"><?php echo esc_html($iwbvel_value); ?></option>
        <?php
            endforeach;
        endif;
        ?>
    </select>
    <input type="number" id="iwbvel-variations-bulk-actions-low-stock-threshold" data-field="value" value="">
</div>

<div class="iwbvel-form-group" data-name="backorders" data-type="woocommerce_field">
    <label for="iwbvel-variations-bulk-actions-backorders"><?php esc_html_e('Allow backorders', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></label>
    <select id="iwbvel-variations-bulk-actions-backorders" style="width: auto; padding-top: 2px;" data-field="value">
        <option value=""><?php esc_html_e('Select', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></option>
        <?php
        $iwbvel_backorders = wc_get_product_backorder_options();
        if (!empty($iwbvel_backorders)) :
            foreach ($iwbvel_backorders as $iwbvel_key => $iwbvel_label) :
        ?>
                <option value="<?php echo esc_attr($iwbvel_key); ?>"><?php echo esc_html($iwbvel_label); ?></option>
        <?php
            endforeach;
        endif;
        ?>
    </select>
</div>