<?php
/**
 * Template Name: Trainer Training Leads
 * Template for displaying trainer training leads page
 *
 * @package HVAC_Plugin
 * @since 2.0.0
 */

// Define constant to identify we're in a page template
define('HVAC_IN_PAGE_TEMPLATE', true);

// Get header
get_header();

// Initialize breadcrumbs if available
if (class_exists('HVAC_Breadcrumbs')) {
    $breadcrumbs = HVAC_Breadcrumbs::get_instance();
    $breadcrumbs->set_custom_breadcrumb([
        ['title' => 'Trainer', 'url' => home_url('/trainer/')],
        ['title' => 'Profile', 'url' => home_url('/trainer/profile/')],
        ['title' => 'Training Leads', 'url' => '']
    ]);
}

?>

<div class="container hvac-trainer-page">
    
    <?php
    // Render navigation menu
    if (class_exists('HVAC_Menu_System')) {
        $menu_system = HVAC_Menu_System::instance();
        $menu_system->render_trainer_menu();
    }
    ?>
    
    <?php
    // Render breadcrumbs if available
    if (isset($breadcrumbs)) {
        echo $breadcrumbs->render();
    }
    ?>
    
    <main class="hvac-main-content">
        <?php
        // Render the training leads content using shortcode
        if (class_exists('HVAC_Training_Leads')) {
            echo do_shortcode('[hvac_trainer_training_leads]');
        } else {
            echo '<p>Training Leads functionality is not available. Please contact an administrator.</p>';
        }
        ?>
    </main>
    
</div>

<?php get_footer(); ?>