Access Level';
$replace_th = '
Access Level |
Outlet | ';
$content = str_replace($search_th, $replace_th, $content);
$search_td = '
= htmlspecialchars((string)($u[\'group_name\'] ?? \'No Role Assigned\')) ?>
';
$replace_td = '
= htmlspecialchars((string)($u[\'group_name\'] ?? \'No Role Assigned\')) ?>
| ';
$content = str_replace($search_td, $replace_td, $content);
file_put_contents('index.php', $content);
echo "Users table updated to show assigned outlet.\n";