prepare("SELECT * FROM lpa_applications WHERE id = ?"); $stmt->execute([$lpa_id]); $lpa_data = $stmt->fetch(); } // Redirect to step 1 if no ID but step > 1 if ($step > 1 && !$lpa_id) { header("Location: apply.php?step=1"); exit; } $attorneys = []; $replacement_attorneys = []; $notified_persons = []; if ($lpa_id) { $stmt = db()->prepare("SELECT * FROM lpa_attorneys WHERE lpa_id = ? AND type = 'replacement'"); $stmt->execute([$lpa_id]); $replacement_attorneys = $stmt->fetchAll(); $stmt = db()->prepare("SELECT * FROM lpa_attorneys WHERE lpa_id = ? AND type = 'primary'"); $stmt->execute([$lpa_id]); $attorneys = $stmt->fetchAll(); $stmt = db()->prepare("SELECT * FROM lpa_notified_persons WHERE application_id = ?"); $stmt->execute([$lpa_id]); $notified_persons = $stmt->fetchAll(); } $num_attorneys = count($attorneys); // This is now count of primary attorneys $num_replacements = count($replacement_attorneys); $all_attorneys = array_merge($attorneys, $replacement_attorneys); $potential_witnesses = []; if ($lpa_data) { if (!empty($lpa_data["witness_first_name"])) { $potential_witnesses[] = [ "type" => "Donor Witness", "title" => $lpa_data["witness_title"], "first_name" => $lpa_data["witness_first_name"], "last_name" => $lpa_data["witness_last_name"], "address1" => $lpa_data["witness_address_line1"], "address2" => $lpa_data["witness_address_line2"], "address3" => $lpa_data["witness_address_line3"], "postcode" => $lpa_data["witness_postcode"] ]; } if (!empty($lpa_data["certificate_provider_first_name"])) { $potential_witnesses[] = [ "type" => "Certificate Provider", "title" => $lpa_data["certificate_provider_title"], "first_name" => $lpa_data["certificate_provider_first_name"], "last_name" => $lpa_data["certificate_provider_last_name"], "address1" => $lpa_data["certificate_provider_address_line1"], "address2" => $lpa_data["certificate_provider_address_line2"], "address3" => $lpa_data["certificate_provider_address_line3"], "postcode" => $lpa_data["certificate_provider_postcode"] ]; } } foreach ($notified_persons as $np) { $potential_witnesses[] = [ "type" => "Notified Person", "title" => $np["title"], "first_name" => $np["first_name"], "last_name" => $np["last_name"], "address1" => $np["address_line1"], "address2" => $np["address_line2"], "address3" => $np["address_line3"], "postcode" => $np["postcode"] ]; } ?>
Please select the type of LPA and provide the donor's details and address. You can save your progress and return later.
Add the people who will make decisions for you. You can add multiple attorneys. They must be over 18 and have mental capacity.
Specify how you want your attorneys to work together when making decisions on your behalf.
You can choose to appoint replacement attorneys who can step in if your original attorneys are no longer able to act for you.
Provide final details regarding life-sustaining treatment and witness information.
Do you wish to notify anyone else when the LPA is registered?
Provide any specific preferences or instructions for your attorneys.
Please provide the details of the person who will be your certificate provider.
Select a witness for each attorney's signature. You can use an existing person or add a new witness.
Select whether the donor or the attorney(s) will register this lasting power of attorney.
Nominate the person who should receive the registered LPA document.
Specify how you wish to pay the application fee and if you are eligible for any reductions.
Please review all your details before final submission.