<?php if ( ! defined('WPINC')) {
    die;
} ?>
<div class="wrap">
    <h2><?php _e('Premmerce User Roles', 'premmerce-users-roles') ?></h2>
    <h2 class="nav-tab-wrapper">
        <?php foreach ($tabs as $tab => $name): ?>
            <?php $class = ($tab == $current) ? ' nav-tab-active' : ''; ?>
            <a class='nav-tab<?php echo esc_attr($class) ?>'
               href='?page=premmerce-users-roles&tab=<?php echo esc_attr($tab) ?>'><?php echo esc_html($name) ?></a>
        <?php endforeach; ?>
    </h2>
    <?php $file = __DIR__ . "/tabs/{$current}.php" ?>
    <?php if (file_exists($file)): ?>
        <?php include $file ?>
    <?php endif; ?>
</div>

