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

if (!defined('IWBVE_ACTIVE')):
    include IWBVEL_VIEWS_DIR . 'alerts/warning-active-pro.php';
else:
?>
    <div class="iwbvel-variations-attach-attribute">
        <div class="iwbvel-variations-attach-attribute-selector-container">
            <label for="iwbvel-variations-attach-attribute-selector"><?php esc_html_e('Select attribute', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></label>
            <select id="iwbvel-variations-attach-attribute-selector">
                <option value=""><?php esc_html_e('Select', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></option>
                <?php
                if (!empty($attributes)) :
                    foreach ($attributes as $iwbvel_attribute) :
                ?>
                        <option value="pa_<?php echo esc_attr($iwbvel_attribute->attribute_name); ?>"><?php echo esc_html($iwbvel_attribute->attribute_label); ?></option>
                <?php
                    endforeach;
                endif;
                ?>
            </select>
        </div>
        <div class="iwbvel-variations-term-loading">
            <p><img src="<?php echo esc_url(IWBVEL_IMAGES_URL . 'loading-2.gif'); ?>" width="24"></p>
        </div>
        <div class="iwbvel-variations-attach-term-selector-container" style="display: none;">
            <label for="iwbvel-variations-attach-term-selector"><?php esc_html_e('Select term', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></label>
            <select id="iwbvel-variations-attach-term-selector" data-placeholder="Click for select terms ..."></select>
            <button type="button" class="iwbvel-button iwbvel-button-blue iwbvel-variations-attach-add-term" data-toggle="modal" data-target="#iwbvel-variations-new-attribute-term-modal"><?php esc_html_e('New', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></button>
        </div>
        <div class="iwbvel-variations-attach-items">

        </div>
        <div class="iwbvel-variations-attach-items-loading">
            <img src="<?php echo esc_url(IWBVEL_IMAGES_URL . 'loading-2.gif'); ?>" width="22" height="22" alt="<?php esc_attr_e('Loading ...', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?>">
        </div>
    </div>
<?php endif; ?>