<?php
$content = file_get_contents('d:/xamp/htdocs/neo/admin/upgrade_requests.php');

$start_marker = '<main class="flex-1 overflow-y-auto p-4 md:p-6 lg:p-8 relative">';
$end_marker = '<main class="flex-1 overflow-x-hidden overflow-y-auto bg-gray-50">';

$pos_start = strpos($content, $start_marker);
$pos_end = strpos($content, $end_marker);

if ($pos_start !== false && $pos_end !== false) {
    $before = substr($content, 0, $pos_start + strlen($start_marker));
    $after = substr($content, $pos_end + strlen($end_marker));
    
    file_put_contents('d:/xamp/htdocs/neo/admin/upgrade_requests.php', $before . "\n" . $after);
    echo "Fixed!";
} else {
    echo "Markers not found! \nStart: " . ($pos_start !== false ? 'Found' : 'Not Found') . "\nEnd: " . ($pos_end !== false ? 'Found' : 'Not Found');
}
