<?php
if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly
?>
<div class="rivax-dashboard-wrapper">
    <div class="rivax-dashboard-header">
        <div class="rivax-dashboard-header-content">
            <?php
            $theme = wp_get_theme(); 
            $theme = $theme->parent() ?: $theme;
            ?>
			<div class="rivax-dashboard-stars"><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span></div>
            <h1><?php esc_html_e('Welcome to Newsfy - Version ', 'newsfy'); echo esc_html($theme->get( 'Version' )); ?></h1>
            <p><?php esc_html_e('Thank you so much for joining with Rivax Studio family! Hope you enjoy working with the theme.', 'newsfy'); ?></p>
            <p><?php printf(esc_html__('Please do not forget to rate this theme %1$s 5 stars %2$s. This encourages us to add more features to it.', 'newsfy'), '<b>', '</b>'); ?></p>
            <p><?php printf(esc_html__('Please %1$srate it here%2$s.', 'newsfy'), '<a target="_blank" class="rivax-dashboard-link" href="https://themeforest.net/downloads">', '</a>'); ?></p>
            <div class="rivax-dashboard-hr"></div>
			<p><?php esc_html_e('If you are interested in our theme, Please look at our other themes on themeforest.', 'newsfy'); ?> <a class="rivax-dashboard-link" href="https://1.envato.market/7m70Rd" target="_blank"><?php esc_html_e('Rivax Studio Themes', 'newsfy'); ?></a></p>
        </div>
        <div class="rivax-dashboard-header-logo">
            <a href="https://1.envato.market/7m70Rd" target="_blank">
                <img src="<?php echo esc_url(get_template_directory_uri() . '/admin/assets/img/developer-logo.png'); ?>" alt="<?php esc_attr_e('Rivax Studio', 'newsfy'); ?>">
                <span><?php esc_html_e('Rivax Studio', 'newsfy'); ?></span>
            </a>
        </div>
    </div>
    <div class="rivax-dashboard-body">
        <div class="rivax-dashboard-card">
            <div class="rivax-dashboard-card-inner card-1">
                <h3><?php esc_html_e('Step 1 : Install Required Plugins', 'newsfy'); ?></h3>
                <p><?php esc_html_e('Our theme has some required and optional plugins to function properly. Please install them.', 'newsfy'); ?></p>
                <a class="rivax-dashboard-btn" href="<?php echo esc_url(admin_url( 'admin.php?page=rivax-plugins' )); ?>"><?php esc_html_e('Install Plugins', 'newsfy'); ?></a>
            </div>
        </div>
        <div class="rivax-dashboard-card">
            <div class="rivax-dashboard-card-inner card-2">
                <h3><?php esc_html_e('Step 2 : Import Demo Content', 'newsfy'); ?></h3>
                <p><?php esc_html_e('Importing demo data (post, pages, images, theme settings, etc.) is the quickest and easiest way to set up your new theme.', 'newsfy'); ?></p>
                <a class="rivax-dashboard-btn" href="<?php echo esc_url(admin_url( 'admin.php?page=rivax-demo-importer' )); ?>"><?php esc_html_e('Import Demo', 'newsfy'); ?></a>
            </div>
        </div>
        <div class="rivax-dashboard-card">
            <div class="rivax-dashboard-card-inner card-3">
                <h3><?php esc_html_e('Step 3 : Read Theme Documentation', 'newsfy'); ?></h3>
                <p><?php esc_html_e('Follow our documentation and read the theme setup and configurations to learn how to use the theme.', 'newsfy'); ?></p>
                <a class="rivax-dashboard-btn" href="https://docs.rivaxstudio.com/newsfy/" target="_blank"><?php esc_html_e('Read Documentation', 'newsfy'); ?></a>
            </div>
        </div>
        <div class="rivax-dashboard-card">
            <div class="rivax-dashboard-card-inner card-4">
                <h3><?php esc_html_e('Step 4 : Check Video Tutorials', 'newsfy'); ?></h3>
                <p><?php esc_html_e('We have made some helpful video tutorials to show you how to work with the theme.', 'newsfy'); ?></p>
                <a class="rivax-dashboard-btn" href="https://www.youtube.com/@rivaxstudio/playlists" target="_blank"><?php esc_html_e('Check Video Tutorials', 'newsfy'); ?></a>
            </div>
        </div>
		<div class="rivax-dashboard-card">
            <div class="rivax-dashboard-card-inner card-5">
                <h3><?php esc_html_e('Step 5 : Need Any Help?', 'newsfy'); ?></h3>
                <p><?php esc_html_e('If you need any assistance, feel free to contact us and ask your question.', 'newsfy'); ?></p>
                <a class="rivax-dashboard-btn" href="https://1.envato.market/7m70Rd" target="_blank"><?php esc_html_e('Ask Question', 'newsfy'); ?></a>
            </div>
        </div>
    </div>
</div>

