<?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
 * @Contents        Admin Tools Head
 *
 * =============================================================================
 * 
 * || INDEX:
 * ||   - BLUE RAVEN ADMIN TOOLS HEAD
 * ||   
 * =============================================================================
 */

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

/*
============================================================
    BLUE RAVEN ADMIN TOOLS HEAD
============================================================
*/

/**
 * Blue_Raven_Admin_Tools
 *
 * Handles the display and interface structure for the Blue Raven Admin Tools page 
 * in the WordPress admin area, including sidebars and tool sections like Mail Builder, 
 * Sitemap, and more.
 */
class Blue_Raven_Admin_Tools {
    
    /**
     * Renders the sitemap page for the Blue Raven Admin Tools.
     */
    public function render() {
        $this->load_tools_template();
    }
    
    /**
     * Load and output the admin tools interface HTML.
     *
     * Responsible for printing the structured layout and markup of the Blue Raven 
     * tools page, including sidebar navigation and sub-sections.
     *
     * @return void
     * @access private 
     */
    private function load_tools_template() {
        ?>
        <div class="parent-container">
            <div class="flex-left" style='max-width: 100%'>
                 <div class="blue-raven-flex-left blue-raven-border-bottom-white sidebar" style="width: 15%; min-width: 12rem; flex-shrink: 0;">
                    <h2><?php esc_html_e('Tools', 'blue-raven'); ?></h2>

                    <button class="spacing-right side-bar-buttons" data-tool="mail" id="tools-sb-mail">
                        <?php esc_html_e('Mail Form Builder', 'blue-raven'); ?>
                    </button>
                    <div class="inner-side-bar hidden" id="tools-mail"></div>

                    <button class="spacing-right side-bar-buttons" data-tool="searchability" id="tools-sb-searchability">
                        <?php esc_html_e('Searchability', 'blue-raven'); ?>
                    </button>
                    <div class="inner-side-bar hidden" id="sb-dd-searchability">
                        <button class="spacing-right side-bar-buttons inner-tool-item" data-tool="robots" id="tools-sb-sub-robots">
                            <?php esc_html_e('Robots.txt', 'blue-raven'); ?>
                        </button>
                        <button class="spacing-right side-bar-buttons inner-tool-item" data-tool="sitemap" id="tools-sb-sub-sitemap">
                            <?php esc_html_e('Site Map', 'blue-raven'); ?>
                        </button>
                        <button class="spacing-right side-bar-buttons inner-tool-item" data-tool="atags" id="tools-sb-sub-analytics">
                            <?php esc_html_e('Analytics Tags', 'blue-raven'); ?>
                        </button>
                        <button class="spacing-right side-bar-buttons inner-tool-item" data-tool="mschema" id="tools-sb-sub-schema">
                            <?php esc_html_e('Main Schema', 'blue-raven'); ?>
                        </button>
                        <button class="spacing-right side-bar-buttons inner-tool-item" data-tool="mmeta" id="tools-sb-sub-meta">
                            <?php esc_html_e('Main Meta', 'blue-raven'); ?>
                        </button>
                        <button class="spacing-right side-bar-buttons inner-tool-item" data-tool="verification" id="tools-sb-verification">
                            <?php esc_html_e('Site Verification', 'blue-raven'); ?>
                        </button>
                    </div>

                    <button class="spacing-right side-bar-buttons" data-tool="alt" id="tools-sb-alt">
                        <?php esc_html_e('Alt Text', 'blue-raven'); ?>
                    </button>
                             
                    <div class="inner-side-bar hidden" id="tools-alt"></div>
                </div>
                <div id="tools-sub-container" style="flex: 1 1 auto; min-width: 0;"></div>
            </div>
        </div>
        <?php
    }
}










