= qh_h(qh_t('Room', 'غرفة')) ?> = qh_h($ticket['doctor_room'] ?? '--') ?>
HTML;
$replace = <<<'HTML'
= qh_h($ticket['ticket_number']) ?>
= qh_h(qh_name($ticket, 'doctor_name', qh_t('Doctor', 'الطبيب'))) ?>
= qh_h(qh_t('Room', 'غرفة')) ?> = qh_h($ticket['doctor_room'] ?? '--') ?>
= qh_format_datetime($ticket['called_at'] ?? $ticket['updated_at']) ?>
HTML;
$newContent = str_replace($search, $replace, $content);
if ($newContent !== $content) {
file_put_contents('display.php', $newContent);
echo "Replaced successfully\n";
} else {
echo "Pattern not found\n";
}