@extends('layouts.v2.frontend-user-backend') @section('title', '| Last Will And Testament') @section('content') @include('frontend.forms.v2.Will-Testament.stepIndicator')
Last Will and Testament form summary
@if(session('error')){{--To show error if deduct by controller--}}
{{ session('error') }}
@endif @if(session('info')){{--To show information if deduct by controller--}}
{{ session('info') }}
@endif

Last Will and Testament

Hereby declare this document to be my Last Will and Testament, expressing my final wishes with the intent of ensuring clarity, fairness, and peace of mind for my loved ones


ID {{ $willsAndTest['id'] }}
Who is this Last Will for ? {{ $willsAndTest['a_status'] ?? 'Not specified' }}

Your Details

Name {{ $willsAndTest['full_name'] ?? 'Not specified' }}
Street Address1 {{ $willsAndTest['street_1'] ?? 'Not specified' }}
Street Address2 {{ $willsAndTest['street_2'] ?? 'Not specified' }}
City {{ $willsAndTest['city'] ?? 'Not specified' }}
State @php $stateRaw = $willsAndTest['state'] ?? null; $stateValue = (ctype_digit((string)$stateRaw)) ? getState((int)$stateRaw) : ($stateRaw ?: 'Not specified'); @endphp {{ $stateValue }}
Country {{ getCountry($willsAndTest['country'] ?? 'Not specified') }}
ZIP Code {{ $willsAndTest['zip_code'] ?? 'Not specified' }}
What is your marital status? {{ $willsAndTest['m_status'] ?? 'Not specified' }}
What is your spouse's name? {{ $willsAndTest['spouse_name'] ?? 'Not specified' }}
@if(!empty($willsAndTest['partner_name']))
Who is the testator's partner? {{ $willsAndTest['partner_name'] ?? 'Not specified' }}
@endif

Family

@php $children = json_decode($willsAndTest['children'], true); @endphp @if (is_array($children))

Who are the your children ?

@foreach ($children as $child)
Child Name {{ $child['child_name'] ?? 'Not specified' }}
Dependent {{ $child['dependent'] ?? 'Not specified' }}
@endforeach @else
Who are the your children ? {{ $willsAndTest['children'] ?? 'No' }}
@endif

Guardian

@php $guardian = json_decode($willsAndTest['guardian'], true); $guardian_status = $willsAndTest['guardian_status'] ?? 'no'; $children = json_decode($willsAndTest['children'], true); $has_dependent = is_array($children) && collect($children)->contains('dependent', 'yes'); @endphp @if ($guardian_status === 'yes' && $has_dependent && is_array($guardian) && count($guardian) > 0) @foreach ($guardian as $index => $item)
{{ $index + 1 }}. Guardian
Name {{ $item['name'] ?? 'Not specified' }}
Country {{ getCountry($item['country']) ?? 'Not specified' }}
State {{ getState($item['state']) ?? 'Not specified' }}
@endforeach @else
Guardian Details Not specified
@endif
@if(!empty($willsAndTest['executors']))
Who will be the executor? {{ $willsAndTest['executors'] ?? 'Not specified' }}
@endif @if(isset($willsAndTest['alternate_executors']))
Who will be the Executors {{ $willsAndTest['alternate_executors'] ?? 'Not specified' }}
@endif @if(isset($willsAndTest['pets']))
Pets {{ $willsAndTest['pets'] ?? 'Not specified' }}
@endif @if(!empty($willsAndTest['asset_description']))
Asset Description {{ $willsAndTest['asset_description'] ?? 'Not specified' }}
@endif

Estate and Gifts

@php $assetBeneficiary = json_decode($willsAndTest['asset_beneficiary'], true); @endphp

Asset Beneficiary

@if (is_array($assetBeneficiary) && $willsAndTest['asset_description'] === "no") @foreach ($assetBeneficiary as $item) @if(!empty($item['type']))
Type {{ $item['type'] ?? 'Not specified' }}
@endif @if(isset($item['type']) && $item['type'] == 'person') @if(!empty($item['name']))
Name {{ $item['name'] ?? 'Not specified' }}
@endif @if(!empty($item['city']))
City {{ $item['city'] ?? 'Not specified' }}
@endif @if(!empty($item['state']))
State {{ $item['state'] ?? 'Not specified' }}
@endif @endif @if(isset($item['type']) && $item['type'] == 'charity') @if(!empty($item['charity_name']))
Charity Name {{ $item['charity_name'] ?? 'Not specified' }}
@endif @if(!empty($item['charity_registration']))
Charity Registration {{ $item['charity_registration'] ?? 'Not specified' }}
@endif @if(!empty($item['charity_city']))
Charity City {{ $item['charity_city'] ?? 'Not specified' }}
@endif @if(!empty($item['charity_state']))
Charity State {{ $item['charity_state'] ?? 'Not specified' }}
@endif @endif @endforeach @elseif($willsAndTest['asset_description'] === "yes")
Asset Beneficiary yes
@else
Asset Beneficiary Not specified
@endif
Do you want your spouse to receive
the assets of your estate excluding
any specific gifts to others?
@if($willsAndTest['beneficiaries'] == 'spouse') Divided equally among your parents / sibling @elseif($willsAndTest['beneficiaries'] == 'someone_else') Given to someone else @else Not specified @endif

@php $wipeoutBeneficiary = json_decode($willsAndTest['wipeout_beneficiary'], true); @endphp @if (is_array($wipeoutBeneficiary))

How will the estate be distributed
if the testator's beneficiaries pass away
first or no longer exist when the testator dies?

@foreach ($wipeoutBeneficiary as $item) @if(!empty($item['type']))
Type {{ $item['type'] ?? 'Not specified' }}
@endif @if(!empty($item['name']))
Name {{ $item['name'] ?? 'Not specified' }}
@endif @if(!empty($item['city']))
City {{ $item['city'] ?? 'Not specified' }}
@endif @if(!empty($item['state']))
State {{ $item['state'] ?? 'Not specified' }}
@endif @if(isset($item['type']) && $item['type'] == 'charity') @if(!empty($item['charity_name']))
Charity Name {{ $item['charity_name'] ?? 'Not specified' }}
@endif @if(!empty($item['registration']))
EIN {{ $item['registration'] ?? 'Not specified' }}
@endif @if(!empty($item['charity_city']))
Charity City {{ $item['charity_city'] ?? 'Not specified' }}
@endif @if(!empty($item['charity_state']))
Charity State {{ $item['charity_state'] ?? 'Not specified' }}
@endif @endif @endforeach @else
How will the estate be distributed
if the testator's beneficiaries pass away
first or no longer exist when the testator dies?
@if($willsAndTest['beneficiaries'] == "spouse") Divided equally among your parents / sibling @elseif($willsAndTest['beneficiaries'] == "someone_else") Given to someone else @else {{ $willsAndTest['wipeout_beneficiary'] ?? 'Not specified' }} @endif
@endif

Additional Notes {{ $willsAndTest['additional_notes'] ?? 'Not specified' }}
@if(!empty($willsAndTest['gift_l']))
Gift {{ $willsAndTest['gift_l'] ?? 'Not specified' }}
@endif
Specific Gifts {{ $willsAndTest['specific_gifts'] ?? 'Not specified' }}
@php $specificGiftsDetails = json_decode($willsAndTest['specific_gifts_details'], true); @endphp @if (is_array($specificGiftsDetails))

Specific Gifts Details

@foreach ($specificGiftsDetails as $item)
{{ $loop->iteration }}. Gift
@if(!empty($item['type']))
Type {{ $item['type'] ?? 'Not specified' }}
@endif @if(!empty($item['name']))
Name {{ $item['name'] ?? 'Not specified' }}
@endif @if(!empty($item['city']))
City {{ $item['city'] ?? 'Not specified' }}
@endif @if(!empty($item['state']))
State {{ getState($item['state'] ?? 'Not specified') }}
@endif @if(!empty($item['country']))
Country {{ getCountry($item['country'] ?? 'Not specified') }}
@endif @if(!empty($item['leaving']))
Leaving {{ $item['leaving'] ?? 'Not specified' }}
@endif @if(isset($item['type']) && $item['type'] == 'charity') @if(!empty($item['charity_name']))
Charity Name {{ $item['charity_name'] ?? 'Not specified' }}
@endif @if(!empty($item['charity_registration']))
Charity Registration {{ $item['charity_registration'] ?? 'Not specified' }}
@endif @if(!empty($item['charity_city']))
Charity City {{ $item['charity_city'] ?? 'Not specified' }}
@endif @if(!empty($item['charity_leaving']))
Charity Leaving {{ $item['charity_leaving'] ?? 'Not specified' }}
@endif @if(!empty($item['charity_state']))
Charity State {{ $item['charity_state'] ?? 'Not specified' }}
@endif @endif @if (!empty($item['alternate_recipient']) && $item['alternate_recipient'] === 'yes')
Alternate Recipient Name {{ $item['alternate_name'] ?? 'Not specified' }}
Alternate Recipient City {{ $item['alternate_city'] ?? 'Not specified' }}
Alternate Recipient State {{ is_numeric($item['alternate_state'] ?? null) ? getState((int) $item['alternate_state']) ?? 'Not specified' : ($item['alternate_state'] ?? 'Not specified') }}
@else
Alternate Recipient No
@endif {{-- Gap between records except after last one, and not for single record --}} @if (!$loop->last && count($specificGiftsDetails) > 1)
{{-- adjust class or add HR line if needed --}} @endif @endforeach @else
Specific Gifts Details {{ $willsAndTest['specific_gifts_details'] ?? 'Not specified' }}
@endif

Inheritance Delay

@php $inheritanceDelay = json_decode($willsAndTest['inheritance_delay'], true); @endphp
Inheritance {{ $inheritanceDelay['inheritance'] ?? 'Not specified' }}
Inheritance Age {{ $inheritanceDelay['inheritance_age'] ?? 'Not specified' }}

Executor

Manage Estate Details

@php $manageEstateDetails = json_decode($willsAndTest['manage_estate_details'], true); @endphp
Executor {{ $manageEstateDetails['executor'] ?? 'Not specified' }}
Other Executor {{ $manageEstateDetails['other-executor'] ?? 'Not specified' }}
@if(!empty($willsAndTest['manage_estate_executors'])) @php $manageEstateExecutors = json_decode($willsAndTest['manage_estate_executors'], true); @endphp @if (!empty($manageEstateExecutors)) @if ( is_array($manageEstateExecutors))

Manage Estate Executors

@foreach ($manageEstateExecutors as $item)
Executors {{ $loop->iteration }}
Name {{ $item['name'] ?? 'Not specified' }}
City {{ $item['city'] ?? 'Not specified' }}
@if(isset($item['country']) && $item['country'])
Country {{ getCountry($item['country'] ?? 'Not specified') }}
@endif
State {{ is_int($item['state'] ?? null) ? getState($item['state']) : ($item['state'] ?? 'Not specified') }}
@endforeach @else
Manage Estate Executors {{ $willsAndTest['manage_estate_executors'] ?? 'Not specified' }}
@endif @endif @endif

@php $manageEstate = json_decode($willsAndTest['manage_estate'], true); @endphp @if(is_array($manageEstate) && count($manageEstate) > 0)

Manage Estate

@if (is_array($manageEstate)) @foreach ($manageEstate as $item)
{{ $loop->iteration }}. Executor
Name {{ $item['name'] ?? 'Not specified' }}
City {{ $item['city'] ?? 'Not specified' }}
Country {{ getCountry($item['country'] ?? 'Not specified') }}
State {{ getState($item['state'] ?? 'Not specified') }}
{{-- Gap between records except after last one, and not for single record --}} @if (!$loop->last && count($manageEstate) > 1)
{{-- adjust class or add HR line if needed --}} @endif @endforeach @else
Manage Estate {{ $willsAndTest['manage_estate'] ?? 'Not specified' }}
@endif @endif @php $backupExecutor = json_decode($willsAndTest['backup_executor'], true); @endphp @if (is_array($backupExecutor))

Backup Executor

@foreach ($backupExecutor as $item)
{{ $loop->iteration }}. Backup Executor
Name {{ $item['name'] ?? 'Not specified' }}
City {{ $item['city'] ?? 'Not specified' }}
Country {{ getCountry($item['country'] ?? 'Not specified') }}
State {{ getState($item['state'] ?? 'Not specified') }}
{{-- Add bottom spacing if not the last item and total > 1 --}} @if (!$loop->last && count($backupExecutor) > 1)
{{-- You can change to
or custom CSS class if needed --}} @endif @endforeach @else
Backup Executor {{ $willsAndTest['backup_executor'] ?? 'Not specified' }}
@endif

Final Details

Pets Status {{ $willsAndTest['pets_status'] ?? 'Not specified' }}
@php $petsDetails = json_decode($willsAndTest['pets_details'], true); @endphp @if (is_array($petsDetails))

Pets Details

@foreach ($petsDetails as $item) @if(!empty($item['petname']))
Pet Name {{ $item['petname'] ?? 'Not specified' }}
@endif @if(!empty($item['petDescription']))
Pet Description {{ $item['petDescription'] ?? 'Not specified' }}
@endif @if(!empty($item['petFundAmount']))
Pet Fund Amount {{ $item['petFundAmount'] ?? 'Not specified' }}
@endif @if(!empty($item['pets_care']))
Pets Care {{ $item['pets_care'] ?? 'Not specified' }}
@endif @if(!empty($item['caretaker_name']))
Caretaker Name {{ $item['caretaker_name'] ?? 'Not specified' }}
@endif @if(!empty($item['caretaker_city']))
Caretaker City {{ $item['caretaker_city'] ?? 'Not specified' }}
@endif @if(!empty($item['caretaker_state']))
Caretaker State {{ getState($item['caretaker_state'] ?? 'Not specified') }}
@endif @endforeach @else
Pets Details {{ $willsAndTest['pets_details'] ?? 'Not specified' }}
@endif

Additional Details @if($willsAndTest['additional_details_status'] == 'yes') @php $additionalDetails = json_decode($willsAndTest['additional_details'], true); @endphp @if (is_array($additionalDetails))
    @foreach ($additionalDetails as $item)
  • {{$item}}
  • @endforeach
@else {{ $willsAndTest['additional_details'] ?? 'Not specified' }} @endif @elseif($willsAndTest['additional_details_status'] == 'no') No @else Not specified @endif
Created At {{ isset($willsAndTest['created_at']) ? date('m/d/Y h:i A', strtotime($willsAndTest['created_at'])) : 'Not specified' }} (EST)
Updated At {{ isset($willsAndTest['updated_at']) ? date('m/d/Y h:i A', strtotime($willsAndTest['updated_at'])) : 'Not specified' }} (EST)
{{-- @if (isset($willsAndTest['currentStep'])) @php $currentStepRouteLWT = "willsAndTest.create.step." . $willsAndTest['currentStep']; @endphp @else @php $currentStepRouteLWT = 'willsAndTestForm'; @endphp @endif --}} @php $currentStepRouteLWT = 'willsAndTest.resetForm'; @endphp @if (($willsAndTest['payment_status'] !== 'succeeded' && $willsAndTest['payment_status'] !== 'paid') || (($willsAndTest->edit_request_data) && ($willsAndTest->edit_request_data->approve_status == '1') && ($willsAndTest->edit_request_data->edit_status !== '0') && ($willsAndTest->edit_request_data->payment_status !== 'succeeded' && $willsAndTest->edit_request_data->payment_status !== 'paid'))) {{---To saving will document preview data --START--}}
@csrf
{{---To saving will document preview data--- END--}} {{--Open Payment Process Separate Page----START--}} {{---To Check if payment has not done and status is NULL or empty then paynow button will show--}} {{--it will redirect to payment process page after take required data from here and post it to that page --}}
@csrf {{--START - After intial payment now if client want to update their details then they to pay again.Payment Form will be same only price will be changed So thats why only button name has changed--}} @if(($willsAndTest->edit_request_data && $willsAndTest->edit_request_data->approve_status == '1') || ($willsAndTest['edit_status'] > 0)) @php $paynow = "Submit"; // Payment for updating details $edit_submit_modal_id = "edit_submit_disclaimer"; // Showing Edit Disclaimer Message before "payment process form" by this Modal id @endphp @else @php $paynow = 'Pay Now'; // Initial Payment $edit_submit_modal_id = ''; @endphp @endif {{--END - After intial payment now if client want to update their details then they to pay again.Payment Form will be same only price will be changed--}} @if(!$record_completion) @else @endif
{{--Open Payment Process Separate Page----END--}} @else {{-- /* * Author: Gurupriya Solanki * Updated date: 24 May 2024 * Description: Free Edit Save * Send Updated Will Document on Vtiger CRM and update path in last payment record in payments table For Free Edit Save * After payment has done we are sending document to Vtiger CRM and updating path in payments table by payment Controller. But As we have Free Edit Functionlity and At that time we dont have "Pay Now" option so We are updating the pdf by "Save" Button. Vtiger Storing as new latest pdf and path will update in payment table. */ --}} @if($willsAndTest['free_edit_option_show'] == true) {{---To saving will document preview data --START--}}
@csrf
{{---To saving will document preview data--- END--}} @else {{-- /* * Author: Vidhi Shah * Updated date: 26th Mar 2024 * Description: Add edit option for paid forms */ --}} @endif @endif {{--END = If payment has been done then client can not able to edit form --}}
{{-- /** * Author : Gurupriya Solanki * Description : After Approve Form Edit Request User can Cancel that request * Created Date : 15 Jan 2025 */ --}} @if($willsAndTest->cancel_edit_request_data && $willsAndTest->cancel_edit_request_data->payment_status !== 'succeeded' && $willsAndTest->cancel_edit_request_data->payment_status !== 'paid' && $willsAndTest->cancel_edit_request_data->approve_status == 1)

*To cancel the edit request, Click Here

@endif
@include('frontend.modals.paynowPopup') {{--Showing Message when click on Edit Button in Modal: Starts here--}} @include('frontend.modals.editRequestOptionPopup') {{--Showing Message when click on Edit Button in Modal: Ends here--}} {{--Showing Disclaimer when click on Edit Submit Button in Modal: Starts here--}} @include('frontend.modals.editSubmitDisclaimerPopup') {{--ShowingDisclaimer Message when click on Edit Submit Button in Modal: Ends here--}} {{-- /** * Author : Gurupriya Solanki * Description : After Approve Form Edit Request User can Cancel that request * Created Date : 15 Jan 2025 */ Showing Confirmation to Cancel edit Request Modal: Starts here--}} @include('frontend.modals.cancelFormEditRrequest') {{--Showing Confirmation to Cancel edit Request Modal: Ends here--}} @endsection @section('page-js') @if($willsAndTest->edit_request_data) {{-- /* * Author: Vidhi Shah * Updated date: 26th Mar 2024 * Description: Add edit option for paid forms */ --}} @else {{-- /* * Author: Gurupriya Solanki * Company: Birbals Inc. * Created date: 18 April 2024 * Description: This Modal Pop is showing when Client is click on Edit button to show Disclaimer. Then after confirm Edit request will send to Admin and sending email as well. If Request is already sent then this modal will not show */ --}} @endif {{-- /** * Author : Gurupriya Solanki * Description : After Approve Form Edit Request User can Cancel that request * Created Date : 15 Jan 2025 */ --}} @if($willsAndTest->cancel_edit_request_data && $willsAndTest->cancel_edit_request_data->payment_status !== 'succeeded' && $willsAndTest->cancel_edit_request_data->payment_status !== 'paid' && $willsAndTest->cancel_edit_request_data->approve_status == 1) @endif @endsection