<?php defined('ABSPATH') || exit; ?>

<div class="glsr-welcome wrap about-wrap about-wrap-content">
    <h1><?php echo get_admin_page_title(); ?></h1>
    <div class="glsr-about-text about-text">Site Reviews is a free WordPress review plugin with advanced features that makes it easy to manage reviews on your website. Follow the instructions below to get started!</div>
    <div class="badge">Version <?php echo glsr()->version; ?></div>
    <nav class="glsr-nav-tab-wrapper nav-tab-wrapper">
        <?php foreach ($tabs as $id => $title) : ?>
        <a class="glsr-nav-tab nav-tab" data-id="<?php echo esc_attr($id); ?>" href="<?php echo esc_url(glsr_admin_url('welcome', $id)); ?>" tabindex="0"><?php echo esc_html($title); ?></a>
        <?php endforeach; ?>
    </nav>
    <?php foreach ($tabs as $id => $title) : ?>
    <div class="glsr-nav-view ui-tabs-hide" id="<?php echo esc_attr($id); ?>">
        <?php glsr('Modules\Html\Template')->render("pages/welcome/{$id}", $data); ?>
    </div>
    <?php endforeach; ?>
    <input type="hidden" name="_active_tab">
    <input type="hidden" name="_wp_http_referer" value="<?php echo esc_attr($http_referer); ?>">
</div>
