<?php
// Test sidebar integration for fee selection
echo "Sidebar Integration Test for Fee Selection\n";
echo "========================================\n";

// Check if the select fees page exists
if (file_exists('fees/select_fees.php')) {
    echo "✓ Fee selection page exists\n";
} else {
    echo "✗ Fee selection page NOT FOUND\n";
}

// Check if sidebar layout file exists
if (file_exists('includes/sidebar_layout.php')) {
    echo "✓ Sidebar layout file exists\n";
    
    // Read the sidebar layout file
    $sidebar_content = file_get_contents('includes/sidebar_layout.php');
    
    // Check if the fee selection link is in the sidebar
    if (strpos($sidebar_content, 'fees/select_fees.php') !== false) {
        echo "✓ Fee selection link found in sidebar\n";
    } else {
        echo "✗ Fee selection link NOT found in sidebar\n";
    }
    
    // Check if the correct text is in the sidebar
    if (strpos($sidebar_content, 'ফি নির্বাচন') !== false) {
        echo "✓ Bengali text 'ফি নির্বাচন' found in sidebar\n";
    } else {
        echo "✗ Bengali text 'ফি নির্বাচন' NOT found in sidebar\n";
    }
    
    // Check if the correct icon is in the sidebar
    if (strpos($sidebar_content, 'fas fa-list-check') !== false) {
        echo "✓ Correct icon 'fas fa-list-check' found in sidebar\n";
    } else {
        echo "✗ Correct icon 'fas fa-list-check' NOT found in sidebar\n";
    }
} else {
    echo "✗ Sidebar layout file NOT FOUND\n";
}

echo "\nSidebar integration test completed!\n";
?>