getMessage()); $error = 'Could not update the lead.'; } } } try { $lead = $id > 0 ? get_lead($id) : null; } catch (Throwable $e) { error_log('Lead detail load failed: ' . $e->getMessage()); $lead = null; $error = 'Lead data is unavailable.'; } function h(?string $value): string { return htmlspecialchars((string)$value, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8'); } function status_label(array $statuses, string $status): string { return $statuses[$status] ?? ucfirst($status); } ?> <?= $lead ? 'Lead #' . h((string)$lead['id']) : 'Lead Not Found' ?> | <?= h($projectName) ?>

Lead not found

The requested lead may not exist.

Back to dashboard

Lead #

ยท

Request details

Email
Phone
Company
Budget
Timeline
Source

Project notes

Follow-up

Dashboard
Saved.