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

<div class="iwbvel-form-group" data-name="enabled" data-type="woocommerce_field">
    <label for="iwbvel-variations-bulk-actions-enabled"><?php esc_html_e('Enabled', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></label>
    <select name="" id="iwbvel-variations-bulk-actions-enabled" data-field="value">
        <option value=""><?php esc_html_e('Select', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></option>
        <option value="yes"><?php esc_html_e('Yes', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></option>
        <option value="no"><?php esc_html_e('No', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></option>
    </select>
</div>
<div class="iwbvel-form-group" data-name="downloadable" data-type="woocommerce_field">
    <label for="iwbvel-variations-bulk-actions-downloadable"><?php esc_html_e('Downloadable', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></label>
    <select name="" id="iwbvel-variations-bulk-actions-downloadable" data-field="value">
        <option value=""><?php esc_html_e('Select', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></option>
        <option value="yes"><?php esc_html_e('Yes', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></option>
        <option value="no"><?php esc_html_e('No', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></option>
    </select>
</div>
<div class="iwbvel-form-group" data-name="virtual" data-type="woocommerce_field">
    <label for="iwbvel-variations-bulk-actions-virtual"><?php esc_html_e('Virtual', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></label>
    <select name="" id="iwbvel-variations-bulk-actions-virtual" data-field="value">
        <option value=""><?php esc_html_e('Select', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></option>
        <option value="yes"><?php esc_html_e('Yes', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></option>
        <option value="no"><?php esc_html_e('No', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></option>
    </select>
</div>
<div class="iwbvel-form-group" data-name="manage_stock" data-type="woocommerce_field">
    <label for="iwbvel-variations-bulk-actions-manage-stock"><?php esc_html_e('Manage stock', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></label>
    <select name="" id="iwbvel-variations-bulk-actions-manage-stock" data-field="value">
        <option value=""><?php esc_html_e('Select', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></option>
        <option value="yes"><?php esc_html_e('Yes', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></option>
        <option value="no"><?php esc_html_e('No', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></option>
    </select>
</div>
<div class="iwbvel-form-group" data-name="regular_price" data-type="woocommerce_field">
    <label for="iwbvel-variations-bulk-actions-regular-price"><?php esc_html_e('Regular price', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></label>
    <select name="" id="" data-field="operator">
        <?php
        if (!empty($iwbvel_regular_price_operator)) :
            foreach ($iwbvel_regular_price_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-regular-price" data-field="value" value="">
</div>
<div class="iwbvel-form-group" data-name="sale_price" data-type="woocommerce_field">
    <label for="iwbvel-variations-bulk-actions-sale-price"><?php esc_html_e('Sale price', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></label>
    <select name="" id="" data-field="operator">
        <?php
        if (!empty($iwbvel_sale_price_operator)) :
            foreach ($iwbvel_sale_price_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-sale-price" data-field="value" value="">
</div>
<div class="iwbvel-form-group" data-name="date_on_sale_from" data-type="woocommerce_field">
    <label for="iwbvel-bulk-actions-form-sale-date-from"><?php esc_html_e('Sale date from', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></label>
    <input type="text" class="iwbvel-input-md iwbvel-datepicker iwbvel-date-from" data-field="value" id="iwbvel-bulk-actions-form-sale-date-from" data-to-id="iwbvel-bulk-actions-form-sale-date-to" placeholder="Sale date from ...">
</div>
<div class="iwbvel-form-group" data-name="date_on_sale_to" data-type="woocommerce_field">
    <label for="iwbvel-bulk-actions-form-sale-date-to"><?php esc_html_e('Sale date to', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></label>
    <input type="text" class="iwbvel-input-md iwbvel-datepicker" data-field="value" id="iwbvel-bulk-actions-form-sale-date-to" placeholder="Sale date to ...">
</div>
<div class="iwbvel-form-group" data-name="sku" data-type="woocommerce_field">
    <label for="iwbvel-variations-bulk-actions-sku"><?php esc_html_e('SKU', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></label>
    <select name="" id="" data-field="operator">
        <?php
        if (!empty($iwbvel_edit_text_operator)) :
            foreach ($iwbvel_edit_text_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="text" id="iwbvel-variations-bulk-actions-sku" data-field="value">
    <select data-field="variable" class="iwbvel-bulk-edit-form-variable">
        <?php foreach (iwbvel\classes\helpers\Product_Helper::get_text_variable_options() as $iwbvel_key => $iwbvel_value) : ?>
            <option value="<?php echo esc_attr($iwbvel_key); ?>"><?php echo esc_html($iwbvel_value); ?></option>
        <?php endforeach; ?>
    </select>
</div>
<div class="iwbvel-form-group" data-name="description" data-type="woocommerce_field">
    <label for="iwbvel-variations-bulk-actions-description"><?php esc_html_e('Description', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></label>
    <!-- <textarea id="iwbvel-variations-bulk-actions-description" class="iwbvel-text-editor" data-field="value"></textarea> -->
    <?php wp_editor("", 'iwbvel-variations-bulk-edit-description'); ?>
</div>
<div class="iwbvel-form-group" data-name="image_id" data-type="woocommerce_field">
    <div>
        <label>Image</label>
        <button type="button" data-type="single" class="iwbvel-button iwbvel-button-blue iwbvel-float-left iwbvel-open-uploader" data-target="variations-bulk-actions-image">Choose image</button>
        <input type="hidden" data-field="value" class="iwbvel-variations-bulk-actions-image">
        <div class="iwbvel-variations-bulk-actions-image-preview"></div>
    </div>
</div>