{{-- * @category : "Free Living Will" Form's Step-Preview Page * @author : Gurupriya Solanki * @updated date : 30 May 2024 * @company : Birbals Inc * @description : This is a preview page for "Free Living Will" form's Steps Where User can see their all filled step's forms data and can pay to receive Attorney And Document. If payment has been successfully done then Admin will upload this document by Admin panel for particular user to send email with attachment. * Client end send the edit request if their intial payment has done and now they want to update their details then have to click on edit button from preview page then request will send to Admin. After approval by Admin client will receive an email and fron dashboard they will "Edit" Button Client has to click on that button to start update process. After update their data they have to pay as well to submit their updated details. * Data is coming from - app\Http\Controllers\Forms\LivingWillController.php And calling function name is "createSteppreview" * Send Updated Will Document on Vtiger CRM and update path in last payment record in payments table For Free Edit ---}} @extends('layouts.v2.frontend-user-backend') @section('title', '| Free Living Will') @section('content') @include('frontend.forms.v2.Living-Will.stepIndicator') {{-- start --}}
Living Will 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

Living Will

Living well means finding balance, taking control, and creating a life you can truly afford to enjoy A revocable living trust is a flexible legal tool that helps you manage your assets during your lifetime and ensures a smooth transfer to your beneficiaries while avoiding probate.


ID {{ $livingWillForm['id'] }}
Do you want to appoint someone to
make your health care decisions if
you are unable to?
{{ $livingWillForm['health_care_decisions'] ?? "Not specified" }}
Do you want to list your health care
preferences so caregivers have
instruction to follow?
{{ $livingWillForm['preferences'] ?? "Not specified" }}

Location

What state do you live in? {{ $livingWillForm['live_state'] ?? "Not specified"}}

Care Choices

Sustaining Treatment @if($livingWillForm['sustaining_treatment'] == 'yes') I want to receive this treatment @elseif($livingWillForm['sustaining_treatment'] == 'no') I do NOT want to receive this treatment @else Not specified @endif
Artificially Provided Food and Water @if($livingWillForm['artificially_food'] == 'yes') I want to receive this treatment @elseif($livingWillForm['artificially_food'] == 'no') I do NOT want to receive this treatment @else Not specified @endif

Care if Permanently Unconscious

Life Sustaining Treatment @if($livingWillForm['p_sustaining_treatment'] == 'yes') I want to receive this treatment @elseif($livingWillForm['p_sustaining_treatment'] == 'no') I do NOT want to receive this treatment @else Not specified @endif
Artificially Provided Food and Water @if($livingWillForm['p_artificially_food'] == 'yes') I want to receive this treatment @elseif($livingWillForm['p_artificially_food'] == 'no') I do NOT want to receive this treatment @else Not specified @endif

Your Info

Who is this Living Will being created for?

@php $yourInfo = json_decode($livingWillForm['your_information'], true); @endphp
Name {{ $yourInfo['name'] ?? 'Not specified' }}
Street Address1 {{ $yourInfo['street_1'] ?? 'Not specified' }}
Street Address2 {{ $yourInfo['street_2'] ?? 'Not specified' }}
City {{ $yourInfo['city'] ?? 'Not specified' }}
State {{ $yourInfo['state_name'] ?? 'Not specified' }}
Country {{ $yourInfo['country_name'] ?? 'Not specified' }}
Zip Code {{ $yourInfo['zip_code'] ?? 'Not specified' }}
Birthdate {{ $yourInfo['bdate'] ?? 'Not specified' }}
Gender {{ $yourInfo['gender'] ?? 'Not specified' }}
@if($livingWillForm['health_care_decisions'] == 'yes')

Proxy

If I need someone to speak for me

@php $proxy = json_decode($livingWillForm['proxy'], true); @endphp
Proxy Name {{ $proxy['proxy_name'] ?? 'Not specified' }}
Proxy Street {{ $proxy['proxy_street'] ?? 'Not specified' }}
Proxy Town {{ $proxy['proxy_town'] ?? 'Not specified' }}
Proxy State {{ $proxy['proxy_state_name'] ?? 'Not specified' }}
Proxy Country {{ $proxy['proxy_country_name'] ?? 'Not specified' }}
Proxy Zip Code {{ $proxy['proxy_zip_code'] ?? 'Not specified' }}
Proxy Relationship {{ $proxy['proxy_relationship'] ?? 'Not specified' }}

Alternate Health Care Proxy

@php $alternateProxy = json_decode($livingWillForm['alternate_proxy'], true); @endphp
Alternative Name {{ $alternateProxy['alternative_name'] ?? 'Not specified' }}
Alternative Street {{ $alternateProxy['alternative_street'] ?? 'Not specified' }}
Alternative Town {{ $alternateProxy['alternative_town'] ?? 'Not specified' }}
Alternative Country {{ $alternateProxy['alternative_country_name'] ?? 'Not specified' }}
Alternative State {{ $alternateProxy['alternative_state_name'] ?? 'Not specified' }}
Alternative Zip Code {{ $alternateProxy['alternative_zip_code'] ?? 'Not specified' }}
Alternative Phone {{ $alternateProxy['alternative_phone'] ?? 'Not specified' }}
Alternative Relationship {{ $alternateProxy['alternative_relationship'] ?? 'Not specified' }}
How much authority do you want
your health care proxy to have?
{{ $livingWillForm['proxy_authority'] }}

Instructions for Health Care Proxy

Have access to my medical records @if(!empty($livingWillForm['medical_records'])) yes @else No @endif
@if($livingWillForm['proxy_authority'] != "Must follow my listed directions but is also able to make decisions not covered in this document")
Decide if I need tube feeding @if(!empty($livingWillForm['tube_feeding'])) Yes @else No @endif
@endif
@endif

Final Details

@php $contacts = json_decode($livingWillForm['contacts'], true); @endphp @if (is_array($contacts)) @foreach ($contacts as $contact)
Name {{ $contact['full_name'] ?? 'Not specified' }}
Phone Number {{ $contact['phone_number'] ?? 'Not specified' }}
@endforeach @else
Contacts @if($livingWillForm['contact_status'] == "no") No @else Not specified @endif
@endif

Signing Details

@php $signingDetails = json_decode($livingWillForm['signing_details'], true); @endphp
Signing {{ $signingDetails['signing'] ?? 'Not specified' }}
Date {{ $signingDetails['date'] ?? 'Not specified' }}
City {{ $signingDetails['city'] ?? 'Not specified' }}

Created At {{ isset($livingWillForm['created_at']) ? date('m/d/Y h:i A', strtotime($livingWillForm['created_at'])) : 'Not specified' }} (EST)
Updated At {{ isset($livingWillForm['updated_at']) ? date('m/d/Y h:i A', strtotime($livingWillForm['updated_at'])) : 'Not specified' }} (EST)
{{--START = *If payment has been done then client can not able to edit form. But they have to click in "Edit" Button from Preview page. The Request will be send to Admin. If Admin Approve their Edit Request then Client will receive And email And Can see the Edit Button on Dashboard. When Client is click on that button then edit_status will be 1 in db table. then Client can start the update process. And they have to have to for submit their details. * To update edit_status, edit_count check the function - upadateStatusIfClickOnEdit in app\Classes\HandleUserEditFormRequest.php which is callling in index function for every form controller. --}} {{-- @if (isset($livingWillForm['currentStep'])) @php $currentStepRouteLWF = "livingwill.create.step." . $livingWillForm['currentStep']; @endphp @else @php $currentStepRouteLWF = "livingwill.create.step.one"; @endphp @endif --}} @php $currentStepRouteLWF = "livingwill.resetForm"; @endphp @if (($livingWillForm['payment_status'] !== 'succeeded' && $livingWillForm['payment_status'] !== 'paid') || (($livingWillForm->edit_request_data) && ($livingWillForm->edit_request_data->approve_status == "1") && ($livingWillForm->edit_request_data->edit_status !== "0") && ($livingWillForm->edit_request_data->payment_status !== 'succeeded' && $livingWillForm->edit_request_data->payment_status !== 'paid'))) {{---To saving will document data START--}}
@csrf
{{---To saving will document data END--}} {{--Open Payment Process Separate Page----START--}} {{---To Check if payment has not done and status is NULL or empty then paynow buttun 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(($livingWillForm->edit_request_data && $livingWillForm->edit_request_data->approve_status == '1') || ($livingWillForm['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($livingWillForm->free_edit_option_show == true) {{---To saving will document data START--}}
@csrf {{--for unique identify to call vtiger function in controller--}}
{{---To saving will document 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($livingWillForm->cancel_edit_request_data && ($livingWillForm->cancel_edit_request_data->payment_status !== 'succeeded' && $livingWillForm->cancel_edit_request_data->payment_status !== 'paid') && $livingWillForm->cancel_edit_request_data->approve_status == 1 )

*To cancel the edit request, Click Here

@endif
{{-- step 1 --}}
@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($livingWillForm->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($livingWillForm->cancel_edit_request_data && ($livingWillForm->cancel_edit_request_data->payment_status !== 'succeeded' && $livingWillForm->cancel_edit_request_data->payment_status !== 'paid') && $livingWillForm->cancel_edit_request_data->approve_status == 1) @endif @endsection