<?php
if (!defined('ABSPATH')) exit; // Exit if accessed directly 
if (!empty($iwbvel_filter_item)) : ?>
    <tr class="<?php echo (isset($filter_profile_use_always) && $filter_profile_use_always == $iwbvel_filter_item['key']) ? 'iwbvel-filter-profile-loaded' : ''; ?>">
        <td>
            <span class="iwbvel-history-name"><?php echo esc_html($iwbvel_filter_item['name']); ?></span>
        </td>
        <td><?php echo esc_html(gmdate('Y M d', strtotime($iwbvel_filter_item['date_modified']))); ?></td>
        <td>
            <input type="radio" class="iwbvel-filter-profile-use-always-item" name="use_always" value="<?php echo esc_attr($iwbvel_filter_item['key']); ?>" <?php echo (isset($filter_profile_use_always) && $filter_profile_use_always == $iwbvel_filter_item['key']) ? 'checked="checked"' : ''; ?> title="<?php esc_attr_e('Use it constantly', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?>">
        </td>
        <td>
            <button type="button" class="iwbvel-button iwbvel-button-blue iwbvel-bulk-edit-filter-profile-load" value="<?php echo esc_attr($iwbvel_filter_item['key']); ?>">
                <i class="iwbvel-icon-download-cloud"></i>
                Load
            </button>
            <?php if ($iwbvel_filter_item['key'] != 'default') : ?>
                <button type="button" class="iwbvel-button iwbvel-button-red iwbvel-bulk-edit-filter-profile-delete" value="<?php echo esc_attr($iwbvel_filter_item['key']); ?>">
                    <i class="iwbvel-icon-trash-2"></i>
                    <?php esc_html_e('Delete', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?>
                </button>
            <?php endif; ?>
        </td>
    </tr>
<?php endif; ?>