prepare("SELECT * FROM residents WHERE id = ?"); $stmt->execute([$resident_id]); $resident = $stmt->fetch(PDO::FETCH_ASSOC); if (!$resident) { header("Location: staff_dashboard.php"); exit; } // Fetch action plans for the resident $stmt = $pdo->prepare("SELECT * FROM action_plans WHERE resident_id = ? ORDER BY created_at DESC"); $stmt->execute([$resident_id]); $action_plans = $stmt->fetchAll(PDO::FETCH_ASSOC); ?> View Resident - <?php echo htmlspecialchars($resident['first_name'] . ' ' . $resident['last_name']); ?>

Resident:

← Back to Dashboard
Resident Information Edit

Name:

Email:

Phone:

Program:

Status:

Date of Birth:

Action Plans + New Action Plan
Title Status Due Date Created On Action
No action plans found for this resident.
View/Edit