{{-- * @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.frontend') @section('title', '| Free Living Will') @section('content') @include('frontend.forms.Living-Will.stepIndicator') {{-- start --}}
{{-- step 1 --}}
@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
Free Living Will
ID:
{{ $livingWillForm['id'] }}
Do you want to appoint someone to make your health care decisions if you are unable to?:
{{ $livingWillForm['health_care_decisions'] }}
Do you want to list your health care preferences so caregivers have instruction to follow?:
{{ $livingWillForm['preferences'] }}

Location
What state do you live in?
{{ $livingWillForm['live_state'] }}

Care Choices
Sustaining Treatment:
@if($livingWillForm['sustaining_treatment'] == 'yes') I want to receive this treatment @else I do NOT want to receive this treatment @endif
Artificially Provided Food and Water:
@if($livingWillForm['artificially_food'] == 'yes') I want to receive this treatment @else I do NOT want to receive this treatment @endif
Care if Permanently Unconscious
Life Sustaining Treatment:
@if($livingWillForm['p_sustaining_treatment'] == 'yes') I want to receive this treatment @else I do NOT want to receive this treatment @endif
Artificially Provided Food and Water:
@if($livingWillForm['p_artificially_food'] == 'yes') I want to receive this treatment @else I do NOT want to receive this treatment @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' }}
  • State: {{ $yourInfo['state'] ?? 'Not specified' }}
  • City: {{ $yourInfo['city'] ?? 'Not specified' }}
  • Country: {{ $yourInfo['country'] ?? '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 State: {{ $proxy['proxy_state'] ?? 'Not specified' }}
  • Proxy Town: {{ $proxy['proxy_town'] ?? '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 State: {{ $alternateProxy['alternative_state'] ?? 'Not specified' }}
  • Alternative Town: {{ $alternateProxy['alternative_town'] ?? '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
Contacts:
@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 {{ 'No' }} @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)
{{-- 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--}} @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 @endsection