<?php
 
 /**
 * =============================================================================
 * @package			    Blue Raven (Free Version)
 * @Plugin URI			https://enterrahost.com/plugins/blue-raven
 * 
 * @Author			    EnterraHost
 * @Author URI			https://enterrahost.com
 * @License		    	GPL-2.0-or-later
 *  
 * @Copyright			(c) 2025 EnterraHost
 * @File Description	Setting Page
 * 
 * =============================================================================
 * 
 * || INDEX:
 * ||   - BLUE RAVEN ADMIN BLUE RAVEN PRO
 * || 
 * =============================================================================
 */

if ( ! defined( 'ABSPATH' ) ) exit; 

/*
============================================================
    BLUE RAVEN ADMIN SETTINGS
============================================================
*/

class BlueRaven_Admin_BlueRavenPro {
    
    /**
     * @access public
     * @static
     * @return void
     */
    public static function render() {
        self::output_learnMore();
    }
        
    /**
     * @access private
     * @static
     * @return void
     */
    private static function output_learnMore() {
        
        global $wpdb;
        $table_name = $wpdb->prefix . 'BlueRavenConfig';
        $eTypeDebugging = $wpdb->get_var( $wpdb->prepare( "SELECT value FROM $table_name WHERE setting = %s", 'eType_debugging'));
        $uninstaller = get_option('blue_raven_remove_all_data', false);
        
        ?>

            <div class='parent-container'>
                <h2><?php esc_html_e('Learn More About Blue Raven Pro', 'blue-raven'); ?></h2>

                <div class='flex-right'>    
                    <a href="https://enterrahost.com/blue-raven/" target="_blank" rel="noopener noreferrer" class="enterra-button" style='text-align: right; margin: 2rem 0rem 0rem auto;'>
                        <?php esc_html_e('Check Out Blue Raven Pro', 'blue-raven'); ?>
                    </a>
                </div>

                <div style='margin: 5rem 0rem 0rem 0rem;'>
                    <h4 class='enterra-admin'><strong><?php echo esc_html__( 'What Blue Raven Pro Offers', 'blue-raven' ); ?></strong></h4>

                    <div class='flex-sb'>
                        <div class='br-lm-grid blue-background'>
                            <h4 class='enterra-admin' style='min-height: 5rem'>
                                <?php echo esc_html__( 'Smart WooCommerce Product Creation', 'blue-raven' ); ?>
                            </h4>
                            <p><?php echo esc_html__( 'Create a quick WooCommerce product. Include a basic description.', 'blue-raven' ); ?></p>
                        </div>

                        <div class='br-lm-grid blue-background'>
                            <h4 class='enterra-admin' style='min-height: 5rem'>
                                <?php echo esc_html__( 'Monitor your website with EnterraMon', 'blue-raven' ); ?>
                            </h4>
                            <p><?php echo wp_kses_post(
                                __( '<strong>Monitor your website with EnterraMon</strong> to stay informed about SSL, site uptime, plugin status, and receive notifications for alerts.', 'blue-raven' )
                            ); ?></p>
                        </div>

                        <div class='br-lm-grid'>
                            <h4 class='enterra-admin enterra-highlight' style='min-height: 5rem'>
                                <?php echo esc_html__( 'Better Browser Tools', 'blue-raven' ); ?>
                            </h4>
                            <p><?php echo wp_kses_post(
                                __( '<strong>Enhance your website’s discoverability</strong> by implementing site maps, main schema, analytical tags, robots.txt, and site verification.', 'blue-raven' )
                            ); ?></p>
                        </div>

                        <div class='br-lm-grid'>
                            <h4 class='enterra-admin enterra-highlight' style='min-height: 5rem'>
                                <?php echo esc_html__( 'SEO & Meta', 'blue-raven' ); ?>
                            </h4>
                            <p><?php echo wp_kses_post(
                                __( '<strong>Enhance your website’s search engine optimization</strong> (SEO) by optimizing your page meta titles and meta tags. Additionally, improve your products by automatically generating meta titles, meta descriptions, and meta tags.', 'blue-raven' )
                            ); ?></p>
                        </div>
                    </div>
                </div>

                <div style='margin: 0rem 0rem 5rem 0rem;'>
                    <div class='flex-sb'>
                        <div class='br-lm-grid'>
                            <h4 class='enterra-admin enterra-highlight' style='min-height: 5rem'>
                                <?php echo esc_html__( 'Create your own Mail Forms', 'blue-raven' ); ?>
                            </h4>
                            <p><?php echo wp_kses_post(
                                __( '<strong>Create your own Mail Forms</strong> using the Blue Raven Visual Builder, which is much simpler for those who don’t want to deal with code.', 'blue-raven' )
                            ); ?></p>
                        </div>

                        <div class='br-lm-grid'>
                            <h4 class='enterra-admin enterra-highlight' style='min-height: 5rem'>
                                <?php echo esc_html__( 'Analytics & Charts', 'blue-raven' ); ?>
                            </h4>
                            <ul>
                                <li><p><?php echo esc_html__( 'Sales per day', 'blue-raven' ); ?></p></li>
                                <li><p><?php echo esc_html__( 'Revenue per day', 'blue-raven' ); ?></p></li>
                                <li><p><?php echo esc_html__( 'Revenue accumulated', 'blue-raven' ); ?></p></li>
                                <li><p><?php echo esc_html__( 'Average order value', 'blue-raven' ); ?></p></li>
                                <li><p><?php echo esc_html__( 'Average item count per sale', 'blue-raven' ); ?></p></li>
                                <li><p><?php echo esc_html__( 'Sales distribution per category', 'blue-raven' ); ?></p></li>
                            </ul>
                        </div>

                        <div class='br-lm-grid'>
                            <h4 class='enterra-admin enterra-highlight' style='min-height: 5rem'>
                                <?php echo esc_html__( 'Better Browser Tools', 'blue-raven' ); ?>
                            </h4>
                            <p><?php echo wp_kses_post(
                                __( 'Effortlessly <strong>set alternative text for your images</strong> with ease. This helps improve accessibility for visually impaired users. Additionally, it enhances your content’s SEO performance.', 'blue-raven' )
                            ); ?></p>
                        </div>

                        <div class='br-lm-grid'>
                            <h4 class='enterra-admin enterra-highlight' style='min-height: 5rem'>
                                <?php echo esc_html__( 'SEO & Meta', 'blue-raven' ); ?>
                            </h4>
                            <p><?php echo wp_kses_post(
                                __( 'Boost your SEO With <strong>Site Maps and Index Now.</strong> Site maps guide search engines through your pages, while Index Now alerts them to updates, ensuring faster indexing, better visibility, and improved search rankings.', 'blue-raven' )
                            ); ?></p>
                        </div>
                    </div>
                </div>
                <div style='border-top: 1px solid white; margin-bottom: 2rem; margin: 0rem 0rem 5rem 0rem;'>
                    <h2><?php esc_html_e('Smart WooCommerce Product Creation', 'blue-raven'); ?></h2>

                    <p><?php esc_html_e('Create WooCommerce with nothing more than a small description of what you want to sell. using Feathers*', 'blue-raven'); ?></p>

                    <div style='margin: 2rem'>
                        <ul>
                            <li><p><?php esc_html_e('✅  Branded Title', 'blue-raven'); ?></p></li>
                            <li><p><?php esc_html_e('✅  Branded Long Description', 'blue-raven'); ?></p></li>
                            <li><p><?php esc_html_e('✅  Short Description', 'blue-raven'); ?></p></li>
                            <li><p><?php esc_html_e('✅  Price', 'blue-raven'); ?></p></li>
                            <li><p><?php esc_html_e('✅  Meta Title', 'blue-raven'); ?></p></li>
                            <li><p><?php esc_html_e('✅  Meta Description', 'blue-raven'); ?></p></li>
                            <li><p><?php esc_html_e('✅  Meta Tags', 'blue-raven'); ?></p></li>
                        </ul>
                    </div> 
                    
                    <p><?php esc_html_e('Making creating WooCommerce easier than ever before, ', 'blue-raven'); ?></p>
                </div>
                
                <div style='border-top: 1px solid white; margin-bottom: 2rem; margin: 0rem 0rem 5rem 0rem;'>
                    <h2><?php esc_html_e('Includes Free EnterraMon Monitoring', 'blue-raven'); ?></h2>

                    <p class='spacing-bottom'>
                        <?php echo wp_kses_post(
                            __(
                                "Every active Blue Raven subscription comes with <strong>free access to EnterraMon</strong>, our premium website monitoring add-on at no extra cost.",
                                "blue-raven"
                            )
                        ); ?>
                    </p>

                    <p class='spacing-bottom'>
                        <?php echo wp_kses_post(
                            __(
                                "With EnterraMon, your site is automatically checked every 5 minutes for uptime and response time (TTFB), giving you peace of mind that your store is always online and performing. We also scan your site daily to check your installed Enterrahost plugins, WordPress, and WooCommerce versions alerting you if an update is available for any of them.",
                                "blue-raven"
                            )
                        ); ?>
                    </p>

                    <p class='spacing-bottom-large'>
                        <?php echo wp_kses_post(
                            __(
                                "You’ll also receive <strong>automated email alerts</strong> if your SSL certificate or domain name is approaching expiry (30, 7, and 1 day before), and <strong>SMS notifications</strong> for critical issues like downtime or expiring SSLs. All of this is managed through your Blue Raven dashboard, where you can enable or disable notifications and manage your preferences.",
                                "blue-raven"
                            )
                        ); ?>
                    </p>

                    <img fetchpriority="high" decoding="async" width='100%' src="https://enterrahost.com/wp-content/uploads/2025/07/Enterramon-Stats-e1752336138501.jpg.webp" alt="Enterramon Dashboard for website monitoring and notification alerts" class="wp-image-1727" style="object-fit:cover" srcset="https://enterrahost.com/wp-content/uploads/2025/07/Enterramon-Stats-e1752336138501.jpg.webp 1610w, https://enterrahost.com/wp-content/uploads/2025/07/Enterramon-Stats-e1752336138501-300x287.jpg.webp 300w, https://enterrahost.com/wp-content/uploads/2025/07/Enterramon-Stats-e1752336138501-1024x978.jpg.webp 1024w, https://enterrahost.com/wp-content/uploads/2025/07/Enterramon-Stats-e1752336138501-768x734.jpg.webp 768w, https://enterrahost.com/wp-content/uploads/2025/07/Enterramon-Stats-e1752336138501-1536x1467.jpg.webp 1536w" sizes="(max-width: 1610px) 100vw, 1610px">

                    <div class='flex-right'>    
                        <a href="https://portal.enterrahost.com/knowledgebase/18/EnterraMon-Overview.html" target="_blank" rel="noopener noreferrer" class="enterra-button" style='text-align: right; margin: 2rem 0rem 0rem auto;'>
                            <?php esc_html_e('More on EnterraMon', 'blue-raven'); ?>
                        </a>
                    </div>
                </div>
                

                <div style='border-top: 1px solid white; margin-bottom: 2rem;'>
                    <h2><?php esc_html_e('Become a Beta Tester', 'blue-raven'); ?></h2>
                
                    <p class="enterra-highlight indent-one">
                        <?php esc_html_e('Join our beta team to help us improve our plugin, With limited slots, Get Blue Raven Pro for free!', 'blue-raven'); ?>
                    </p>
                    
                    <div class='flex-right'>
                        <a href="https://enterrahost.com/beta-testers/" target="_blank" rel="noopener noreferrer" class="enterra-button" style='text-align: right; margin: 2rem 0rem 0rem auto;'>
                            <?php esc_html_e('Request To Become A Beta Tester', 'blue-raven'); ?>
                        </a>
                    </div>
                </div>
            </div>
        <?php
    }
}

