<?php
// Simulate the GET parameters
$_GET['student_id'] = '6185';
$_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 columns are present
if (strpos($output, 'জিপি</th>') !== false) {
    echo "✅ Subject-based GP column is present in the table header\n";
} else {
    echo "❌ Subject-based GP column is missing from the table header\n";
}

if (strpos($output, 'পাস নম্বর</th>') !== false) {
    echo "✅ Pass marks column is present in the table header\n";
} else {
    echo "❌ Pass marks column is missing from the table header\n";
}

// Check if dynamic marks are being used
if (strpos($output, 'full_marks') !== false || strpos($output, 'pass_marks') !== false) {
    echo "✅ Dynamic marks system is implemented\n";
} else {
    echo "❌ Dynamic marks system is not implemented\n";
}

// Check if subject GP is displayed
if (strpos($output, 'grade_point') !== false) {
    echo "✅ Subject-based GP is displayed\n";
} else {
    echo "❌ Subject-based GP is not displayed\n";
}

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