prepare("SELECT * FROM lpa_applications WHERE id = ?"); $stmt->execute([$lpa_id]); $lpa_data = $stmt->fetch(); if (!$lpa_data) { header("Location: dashboard.php"); exit; } // Authorization check if ($lpa_data['user_id'] != $user_id && ($_SESSION['user_role'] ?? '') !== 'Super User') { header("Location: dashboard.php"); exit; } } // 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"] ]; } ?> Start Application — <?php echo htmlspecialchars($project_name); ?>
Step of 14

Let's get started.

Please select the type of LPA and provide the donor's details and address. You can save your progress and return later.

>
>

Basic Information

Donor Address

Cancel

Attorneys

Add the people who will make decisions for you. You can add multiple attorneys. They must be over 18 and have mental capacity.

Currently Added Attorneys

Add an Attorney

How should your attorneys make decisions?

Specify how you want your attorneys to work together when making decisions on your behalf.

1) ? 'disabled' : ''; ?> required>
>
>
>
Back to Step 2

Replacement Attorneys

You can choose to appoint replacement attorneys who can step in if your original attorneys are no longer able to act for you.

Added Replacement Attorneys

Add a Replacement Attorney

Life-sustaining treatment

Specify whether your attorneys have authority to give or refuse consent to life-sustaining treatment.

required> >
Back to Step 4

Witness Information

Provide the details of the person who will witness the donor's signature.

Back to Step 5

People to notify

Do you wish to notify anyone else when the LPA is registered?

No

Currently Notified Persons

Add a Person to Notify

Preferences and instructions

Provide any specific preferences or instructions for your attorneys.

Preferences

Your attorneys don’t have to follow your preferences but they should keep them in mind. For examples of preferences, see the Guide, part A7.

Preferences – use words like ‘prefer’ and ‘would like’

Instructions

Your attorneys will have to follow your instructions exactly. For examples of instructions, see the Guide, part A7.

Be careful – if you give instructions that are not legally correct they would have to be removed before your LPA could be registered.

Instructions – use words like ‘must’ and ‘have to’

Certificate Provider

Please provide the details of the person who will be your certificate provider.

Back to Step 8

Attorney Witnesses

Select a witness for each attorney's signature. You can use an existing person or add a new witness.

$attorney): ?>

Witness for

Back to Step 9

Who is registering the LPA?

Select whether the donor or the attorney(s) will register this lasting power of attorney.

required>
>

Select the registering attorneys

If you appointed attorneys jointly, they must all register the LPA together.

Back to Step 10

Who should receive the LPA?

Nominate the person who should receive the registered LPA document.

required>
>
>

Correspondence Details

How would the person above prefer to be contacted?

>
>
>
>
Back to Step 11

Application fee

Specify how you wish to pay the application fee and if you are eligible for any reductions.

Payment Method

required>
>

Reduced Fees

The donor might not have to pay the full fee or any fee at all if they have a low income or receive certain benefits.

required> >
onclick="document.getElementById('repeat_case_box').classList.toggle('d-none')">

Select this if the Office of the Public Guardian has told you the LPA can't be registered and you're applying again within 3 months.

Back to Step 12

Review Summary

Step 14 of 14

Please review all your details carefully before submitting your application. You can edit any section if you find any errors.

1. Donor Information

Edit Section
Full Name
Date of Birth
Address
, ,

2. Attorneys

Edit Section

3. Decision Making

Edit Section

4. Replacement Attorneys

Edit Section
None appointed.

5. Life-sustaining treatment

Edit Section
Life-sustaining Treatment Preference

6. Donor's Witness

Edit Section
Witness Name

7. People to Notify

Edit Section
No people to notify.

8. Preferences and Instructions

Edit Section
Preferences
Instructions

9. Certificate Provider

Edit Section

10. Attorney Witnesses

Edit Section
Witness for
Not specified'; } ?>

11. Registration

Edit Section
Who is registering?
Registering Attorneys

12. Correspondence

Edit Section
Recipient
Name
Contact Method

13. Payment & Fee

Edit Section
Payment Method
Reduced Fee Eligibility
Repeat Application
Back to Step 13
Download Summary PDF