<?php
// Read the marksheet file to verify changes
$content = file_get_contents('reports/marksheet.php');

echo "=== MARKSHEET MODIFICATION VERIFICATION ===\n\n";

// Check if Point column is removed from table header
if (strpos($content, '<th style="width: 15%;">পয়েন্ট</th>') === false) {
    echo "✅ Point column removed from table header\n";
} else {
    echo "❌ Point column still exists in table header\n";
}

// Check if Point column is removed from table body
if (strpos($content, '<td><?php echo number_format(getGradePoint($result[\'grade\']), 2); ?></td>') === false) {
    echo "✅ Point column removed from table body\n";
} else {
    echo "❌ Point column still exists in table body\n";
}

// Check if calculateGradeFromGPA function exists
if (strpos($content, 'function calculateGradeFromGPA') !== false) {
    echo "✅ calculateGradeFromGPA function added\n";
} else {
    echo "❌ calculateGradeFromGPA function missing\n";
}

// Check if grade is calculated based on GPA
if (strpos($content, '$gpa_based_grade = calculateGradeFromGPA($gpa);') !== false) {
    echo "✅ Grade is now calculated based on GPA\n";
} else {
    echo "❌ Grade is still calculated based on percentage\n";
}

// Check if Point row is removed from result summary
if (strpos($content, '<div class="info-label">পয়েন্ট</div>') === false) {
    echo "✅ Point row removed from result summary\n";
} else {
    echo "❌ Point row still exists in result summary\n";
}

// Check if GPA Summary Row colspan is updated
if (strpos($content, '<td colspan="4" style="text-align: right; padding-right: 15px;">জিপিএ') !== false) {
    echo "✅ GPA Summary Row colspan updated to 4\n";
} else {
    echo "❌ GPA Summary Row colspan not updated\n";
}

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