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

<div class="iwbvel-modal" id="iwbvel-modal-it-wc-dynamic-pricing-select-roles">
    <div class="iwbvel-modal-container">
        <div class="iwbvel-modal-box iwbvel-modal-box-sm">
            <div class="iwbvel-modal-content">
                <div class="iwbvel-modal-title">
                    <h2><?php esc_html_e('Dynamic pricing by roles', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?> - <span id="iwbvel-modal-it-wc-dynamic-pricing-select-roles-title" class="iwbvel-modal-item-title"></span></h2>
                    <button type="button" class="iwbvel-modal-close" data-toggle="modal-close">
                        <i class="iwbvel-icon-x"></i>
                    </button>
                </div>
                <div class="iwbvel-modal-body">
                    <div class="iwbvel-wrap">
                        <div class="iwbvel-form-group">
                            <label for="iwbvel-user-roles"><?php esc_html_e('Select Roles', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></label>
                            <select id="iwbvel-user-roles" class="iwbvel-select2" data-placeholder="<?php esc_html_e('Select ...', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?>" multiple>
                                <?php
                                if (!empty($wp_roles) && !empty($wp_roles->roles)) :
                                    foreach ($wp_roles->roles as $iwbvel_role_key => $iwbvel_role) :
                                ?>
                                        <option value="<?php echo esc_attr($iwbvel_role_key); ?>"><?php echo esc_html($iwbvel_role['name']); ?></option>
                                <?php
                                    endforeach;
                                endif;
                                ?>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="iwbvel-modal-footer">
                    <button type="button" id="iwbvel-modal-it-wc-dynamic-pricing-select-roles-apply" data-item-id="" data-content-type="" class="iwbvel-button iwbvel-button-blue" data-toggle="modal-close">
                        <?php esc_html_e('Apply Changes', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?>
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>