<?php
// Test script to verify marksheet changes

// Simulate the GET parameters for a student
$_GET['student_id'] = '1'; // Sample student ID
$_GET['session'] = '2025';
$_GET['exam_type'] = 'midterm';

// Capture the output of the marksheet.php
ob_start();
include 'reports/marksheet.php';
$output = ob_get_clean();

// Check if the new "সর্বোচ্চ নম্বর" column is present
if (strpos($output, 'সর্বোচ্চ<br>নম্বর') !== false) {
    echo "✅ Maximum Marks column is present in the table header\n";
} else {
    echo "❌ Maximum Marks column is missing from the table header\n";
}

// Check if "প্রাপ্ত নম্বর" is used instead of "মোট নম্বর" in the header
if (strpos($output, 'প্রাপ্ত<br>নম্বর') !== false) {
    echo "✅ Obtained Marks column header is correctly labeled\n";
} else {
    echo "❌ Obtained Marks column header is not correctly labeled\n";
}

// Check if full_marks is being displayed in the table body
if (strpos($output, 'full_marks') !== false) {
    echo "✅ Full marks data is being displayed\n";
} else {
    echo "❌ Full marks data is not being displayed\n";
}

echo "\n=== VERIFICATION COMPLETE ===\n";
?>