@extends('layouts.v2.frontend-user-backend') @section('title', '| End-of-Life plan') @section('content') @include('frontend.forms.v2.End-Of-Life-Plan.stepIndicator')
End of Life Plan 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

End of Life Plan

A specialized type of will designed to outline the distribution of assets and wishes for the conclusion of one's affairs. Explore this unique planning option for a comprehensive and tailored approach to end-of-life considerations.


Order ID {{$endoflifePlanForm['payment_order_id']}}
ID {{ $endoflifePlanForm['id'] }}
Do you already have a Last Will and Testament? {{ $endoflifePlanForm['last_will'] ?? 'Not specified' }}
@php $planFor = json_decode($endoflifePlanForm['plan_for'], true); @endphp @if ($planFor)

Your details

@foreach ($planFor as $key => $value) @if ($key !== 'country_name' && $key !== 'state_name')
{{ ucfirst(str_replace('_', ' ', $key)) }} @if ($key === 'country' && isset($planFor['country_name'])) {{ ucfirst($planFor['country_name']) }} @elseif ($key === 'state' && isset($planFor['state_name'])) {{ ucfirst($planFor['state_name']) }} @else {{ $value }} @endif
@endif @endforeach @else
Plan For Not specified
@endif

Appointee

Would you like the executor of your Last Will
to carry out your final wishes?
{{ $endoflifePlanForm['executor'] ?? 'Not specified' }}
@if(isset($endoflifePlanForm['executor']) && $endoflifePlanForm['executor'] == "yes" ) @php $appointeeDetails = json_decode($endoflifePlanForm['executor_details'], true); @endphp @if (is_array($appointeeDetails))

Executor Details

@foreach ($appointeeDetails as $appointee)
Name {{ $appointee['full_name'] ?? 'Not specified' }}
City {{ $appointee['city'] ?? 'Not specified' }}
State {{ $appointee['state_name'] ?? 'Not specified' }}
Country {{ $appointee['country_name'] ?? 'Not specified' }}
Phone Number {{ $appointee['phone_number'] ?? 'Not specified' }}
Email {{ $appointee['email'] ?? 'Not specified' }}
@endforeach @else
Executor Details {{ $endoflifePlanForm['executor_details'] ?? 'Not specified' }}
@endif @endif @if(isset($endoflifePlanForm['executor']) && $endoflifePlanForm['executor'] == "no" ) @php $appointeeDetails = json_decode($endoflifePlanForm['appointee_details'], true); @endphp @if (is_array($appointeeDetails))

Appointee Details

@foreach ($appointeeDetails as $appointee)
Name {{ $appointee['full_name'] ?? 'Not specified' }}
City {{ $appointee['city'] ?? 'Not specified' }}
State {{ $appointee['state_name'] ?? 'Not specified' }}
Country {{ $appointee['country_name'] ?? 'Not specified' }}
Phone Number {{ $appointee['phone_number'] ?? 'Not specified' }}
Email {{ $appointee['email'] ?? 'Not specified' }}
@endforeach @else
Appointee Details {{ $endoflifePlanForm['appointee_details'] ?? 'Not specified' }}
@endif @endif

Announcement

Death Announcement {{ $endoflifePlanForm['announcement'] ?? 'Not specified' }}
@if(isset($endoflifePlanForm['announcement'] )&& $endoflifePlanForm['announcement'] =='death') @php $deathPublication = json_decode($endoflifePlanForm['death_publication'], true); @endphp @if (is_array($deathPublication) && count($deathPublication) > 0)

Death Publication

@foreach ($deathPublication as $publication)
Publication Name {{ $publication['publication_name'] ?? 'Not specified' }}
Publication City {{ $publication['publication_city'] ?? 'Not specified' }}
@endforeach @else
Death Publication {{ 'Not specified' }}
@endif @php $deathNotice = json_decode($endoflifePlanForm['death_notice'], true); @endphp @if ($deathNotice)

Death Notice

@foreach ($deathNotice as $key => $value)
{{ ucfirst(str_replace('_', ' ', $key)) }} {{ $value }}
@endforeach @else
Death Notice Not specified
@endif
Surviving Family {{ $endoflifePlanForm['surviving_family'] ?? 'Not specified' }}
Surviving Family Details @php $deathNotices = json_decode($endoflifePlanForm['surviving_family_details'], true); @endphp @if (is_array($deathNotices)) @foreach ($deathNotices as $deathNotice)
  • - {{ $deathNotice['detail'] ?? 'Not specified' }}
@endforeach @else {{ $endoflifePlanForm['surviving_family_details'] ?? 'Not specified' }} @endif
Death Notice Photograph {{ $endoflifePlanForm['death_notice_photograph'] ?? 'Not specified' }}
@if($endoflifePlanForm['death_notice_photograph'] == 'yes')
Photograph Details {{ $endoflifePlanForm['photograph_details'] ?? 'Not specified' }}
@endif
Funeral Service {{ $endoflifePlanForm['funeral_service'] ?? 'Not specified' }}
@php $charitableDonations = json_decode($endoflifePlanForm['charitable_details'], true); @endphp @if (is_array($charitableDonations))

Charitable Donations

@foreach ($charitableDonations as $donation)
Charity Name {{ $donation['charity_name'] ?? 'Not specified' }}
Registration Number {{ $donation['registration_number'] ?? 'Not specified' }}
@endforeach
@else
Charitable Donations {{ $endoflifePlanForm['charitable_details'] ?? 'No' }}
@endif @endif @if(isset($endoflifePlanForm['announcement'] )&& $endoflifePlanForm['announcement'] =='obituary') @php $obituaryPublication = json_decode($endoflifePlanForm['obituary_publication'], true); @endphp @if (is_array($obituaryPublication))

Obituary Publication

@foreach ($obituaryPublication as $publication)
Publication Name {{ $publication['publication_name'] ?? 'Not specified' }}
Publication City {{ $publication['publication_city'] ?? 'Not specified' }}
@endforeach @else
Obituary Publication {{ $endoflifePlanForm['obituary_publication'] ?? 'Not specified' }}
@endif
Obituary Death Notice @php $obituaryDeathNotice = json_decode($endoflifePlanForm['obituary_death_notice'], true); @endphp @if ($obituaryDeathNotice)
    @foreach ($obituaryDeathNotice as $key => $value)
  • {{ ucfirst(str_replace('_', ' ', $key)) }} {{ $value }}
  • @endforeach
@else Not specified @endif
Obituary Biographical {{ $endoflifePlanForm['obituary_biographical'] ?? 'Not specified' }}
Obituary Biographical Details @php $obituaryBiographicalDetails = json_decode($endoflifePlanForm['obituary_biographical_details'], true); @endphp @if (is_array($obituaryBiographicalDetails)) @foreach ($obituaryBiographicalDetails as $detail)
  • Detail {{ $detail['detail'] ?? 'Not specified' }}
@endforeach @else {{ $endoflifePlanForm['obituary_biographical_details'] ?? 'No' }} @endif
Obituary Death Notice Photograph {{ $endoflifePlanForm['obituary_death_notice_photograph'] ?? 'Not specified' }}
@if($endoflifePlanForm['obituary_death_notice_photograph'] == "yes")
Obituary Photograph Details {{ $endoflifePlanForm['obituary_photograph_details'] ?? 'Not specified' }}
@endif
Obituary Funeral Service United States
Country {{ $endoflifePlanForm['obituary_funeral_service'] ?? 'Not specified' }}
@php $showDonations = $endoflifePlanForm->obituary_charitable_donations === 'yes'; @endphp @if($showDonations) @php $charityData = !empty($endoflifePlanForm->obituary_charitable_details) ? json_decode($endoflifePlanForm->obituary_charitable_details, true) : []; $charitySelect = $charityData['charity_select'] ?? null; $otherCharities = $charityData['other_charity'] ?? []; @endphp
Obituary Charitable Donations
Charity: {{ $charitySelect ?? 'Not specified' }}
@if($charitySelect === 'Other' && is_array($otherCharities) && count($otherCharities))
Other Charities @foreach ($otherCharities as $donation)
  • {{ $loop->iteration }}. Charity Name: {{ $donation['charity_name'] ?? 'Not specified' }}
  • Registration Number: {{ $donation['registration_number'] ?? 'Not specified' }}
@endforeach
@endif @endif @endif @php $organDonor = json_decode($endoflifePlanForm['organ_donor'], true); @endphp @if ($organDonor) @foreach ($organDonor as $key => $value) @if ($key !== 'country_name' && $key !== 'state_name')
{{ ucfirst(str_replace('_', ' ', $key)) }} @if ($key === 'country' && isset($organDonor['country_name'])) {{ ucfirst($organDonor['country_name']) }} @elseif ($key === 'state' && isset($organDonor['state_name'])) {{ ucfirst($organDonor['state_name']) }} @else {{ ucfirst($value) }} @endif
@endif @endforeach @else
Organ Donor Not specified
@endif

Remains

Remains @if(isset($endoflifePlanForm['remains']) && $endoflifePlanForm['remains'] === 'donationscience') Donation Science @elseif($endoflifePlanForm['remains'] === 'nopreference') No Preference @else {{ $endoflifePlanForm['remains'] ?? 'Not specified' }} @endif
@if($endoflifePlanForm['remains'] != 'nopreference') @if($endoflifePlanForm['remains'] == 'burial') @php $burialTypeData = json_decode($endoflifePlanForm['burialin_type'], true); $burialType = isset($burialTypeData['type']) ? $burialTypeData['type'] : null; @endphp
Burial Instructions {{isset($burialTypeData['burialin']) ? $burialTypeData['burialin'] : 'Not specified'}}
@if(isset($burialTypeData['burialin']) && $burialTypeData['burialin'] == "yes")
What details do you want to provide? @if ($burialType)
    @foreach ($burialType as $value)
  • {{ htmlspecialchars($value) }}
  • @endforeach
@else Not specified @endif
@endif @endif @if($endoflifePlanForm['remains'] == 'mausoleum') @php $entombmentTypeData = json_decode($endoflifePlanForm['entombment_type'], true); $entombmentType = isset($entombmentTypeData['type']) ? $entombmentTypeData['type'] : null; @endphp
Entombment Instructions {{isset($entombmentTypeData['entombment']) ? $entombmentTypeData['entombment'] : 'Not specified'}}
@if(isset($entombmentTypeData['entombment']) && $entombmentTypeData['entombment'] == "yes")
What details do you want to provide? @if ($entombmentType)
    @foreach ($entombmentType as $key => $value)
  • {{ htmlspecialchars($value) }}
  • @endforeach
@else No @endif
@endif @endif @if($endoflifePlanForm['remains'] == 'donationscience')
Donation Organization @php $donationOrganization = json_decode($endoflifePlanForm['donation_organization'], true); @endphp @if ($donationOrganization)
    @foreach ($donationOrganization as $key => $value)
  • {{ ucfirst(str_replace('_', ' ', $key)) }} {{ $value }}
  • @endforeach
@else No @endif
Donation Alternate @php $donationAlternateData = json_decode($endoflifePlanForm['donation_alternate'], true); $isDonationAlternateArray = is_array($donationAlternateData); @endphp @if ($isDonationAlternateArray)
    @foreach ($donationAlternateData as $key => $value)
    • {{ ucfirst($key) }} {{ $value }}
    @endforeach
@else No @endif
Return Ashes {{ $endoflifePlanForm['return_ashes'] ?? 'No'}}
@endif @if($endoflifePlanForm['remains'] == 'other')
How would you like your body to be disposed of {{ $endoflifePlanForm['body_disposed'] ?? 'Not specified'}}
@endif @if($endoflifePlanForm['remains'] == 'cremation')
Cremation {{ $endoflifePlanForm['cremation'] ?? 'No' }}
@if(isset($endoflifePlanForm['cremation']) && $endoflifePlanForm['cremation'] == "burial")
Cremation Burialin Type @php $cremationBurialinType = json_decode($endoflifePlanForm['cremation_burialin_type'], true); @endphp @if ($cremationBurialinType)
    @foreach ($cremationBurialinType as $key => $value)
  • {{ ucfirst(str_replace('_', ' ', $key)) }} @if (is_array($value)) @foreach ($value as $item) {{ $item }}, @endforeach @else {{ $value }} @endif
  • @endforeach
@else Not specified @endif
@endif @if(isset($endoflifePlanForm['columbarium']) && $endoflifePlanForm['cremation'] == "columbarium")
Cremation Columbarium Type @php $cremationColumbariumType = json_decode($endoflifePlanForm['cremation_columbarium_type'], true); @endphp @if ($cremationColumbariumType)
    @foreach ($cremationColumbariumType as $key => $value)
  • {{ ucfirst(str_replace('_', ' ', $key)) }} @if (is_array($value)) @foreach ($value as $item) {{ $item }}, @endforeach @else {{ $value }} @endif
  • @endforeach
@else Not specified @endif
@endif @if(isset($endoflifePlanForm['cremation']) && $endoflifePlanForm['cremation'] == "loved")
Cremation Instructions Type @php $cremationInstructionsType = json_decode($endoflifePlanForm['cremation_instructions_type'], true); @endphp @if ($cremationInstructionsType)
    @foreach ($cremationInstructionsType as $key => $value)
  • {{ ucfirst(str_replace('_', ' ', $key)) }} @if (is_array($value)) @foreach ($value as $item) {{ $item }}, @endforeach @else {{ $value }} @endif
  • @endforeach
@else Not specified @endif
@endif @if(isset($endoflifePlanForm['cremation']) && $endoflifePlanForm['cremation'] == "columbarium")
Cremation Instructions Type @php $cremationInstructionsType = json_decode($endoflifePlanForm['cremation_columbarium_type'], true); @endphp @if ($cremationInstructionsType)
    @foreach ($cremationInstructionsType as $key => $value)
  • {{ ucfirst(str_replace('_', ' ', $key)) }} @if (is_array($value)) @foreach ($value as $item) {{ $item }}, @endforeach @else {{ $value }} @endif
  • @endforeach
@else Not specified @endif
@endif @if(isset($endoflifePlanForm['cremation']) && $endoflifePlanForm['cremation'] == "scattered")
Scattering Ashes {{ $endoflifePlanForm['scattering_ashes'] ?? 'Not specified' }}
Additional Instruction @php $additionalInstructions = json_decode($endoflifePlanForm['additional_instruction'], true); @endphp @if ($additionalInstructions)
    @foreach ($additionalInstructions as $instruction)
  • Instruction {{ $instruction['instruction'] ?? 'Not specified' }}
  • @endforeach
@else Not specified @endif
@endif @if(isset($endoflifePlanForm['cremation']) && $endoflifePlanForm['cremation'] == "rother")
Cremation Remains Wishes {{ $endoflifePlanForm['cremation_remains_wishes'] ?? 'Not specified' }}
Additional Instruction @php $additionalInstructions = json_decode($endoflifePlanForm['additional_instruction'], true); @endphp @if ($additionalInstructions)
    @foreach ($additionalInstructions as $instruction)
  • Instruction {{ $instruction['instruction'] ?? 'Not specified' }}
  • @endforeach
@else Not specified @endif
@endif @if(!empty($endoflifePlanForm['receive_your_ashes']))
Receive Your Ashes @php $receiveYourAshes = json_decode($endoflifePlanForm['receive_your_ashes'], true); @endphp @if ($receiveYourAshes) @foreach ($receiveYourAshes as $item)
  • Name {{ $item['full_name'] }}
  • Relationship {{ $item['relationship'] }}
  • Address {{ $item['address'] }}
  • Phone {{ $item['phone'] }}
  • Email {{ $item['email'] }}
@endforeach @else Not specified @endif
@endif @endif @endif

Services @php $services = json_decode($endoflifePlanForm['services'], true); @endphp @if ($services) @if (isset($services['services_av'])) @if ($services['services_av'] == 'no') No service available @elseif ($services['services_av'] == 'yes') Service available @if (isset($services['type']) && is_array($services['type'])) - Types: @foreach ($services['type'] as $key => $type) {{ ucfirst($type) }} @if ($key < count($services['type']) - 1) , @endif @endforeach @endif @endif @endif @else Not specified @endif
@if(isset($services['type']) && in_array('visitation', $services['type']) || isset($services['type']) && $services['type'][0] === 'visitation')

Visitation

arrangements for your visitation {{$endoflifePlanForm['visitation_arrange']}}
@if($endoflifePlanForm['visitation_arrange'] == "yes")
Visitation Location @php $visitationLocation = json_decode($endoflifePlanForm['visitation_location'], true); @endphp @if ($visitationLocation)
  • Name {{ $visitationLocation['full_name'] ?? 'Not specified' }}
  • Address {{ $visitationLocation['address'] ?? 'Not specified' }}
    • @else Not specified @endif
Visitation Instructions @php $visitationInstructions = json_decode($endoflifePlanForm['visitation_instructions'], true); @endphp @if ($visitationInstructions)
    @foreach ($visitationInstructions as $instruction)
  • {{ $instruction['detail'] ?? 'Not specified' }}
  • @endforeach
@else Not specified @endif
@endif @if($endoflifePlanForm['visitation_arrange'] == "no")
Visitation Service @php $visitationService = json_decode($endoflifePlanForm['visitation_service'], true); @endphp @if (is_array($visitationService) && isset($visitationService['type']) && is_array($visitationService['type']))
    @foreach ($visitationService['type'] as $type)
  • {{ $type }}
  • @endforeach
@else {{$visitationService['services_av'] ?? 'Not specified'}} @endif
@if(isset($visitationService['type']) && in_array('location', $visitationService['type']))
Visitation Service Location @php $visitationServiceLocation = json_decode($endoflifePlanForm['visitation_service_location'], true); @endphp @if ($visitationServiceLocation)
    Name {{ $visitationServiceLocation['full_name'] ?? 'Not specified' }}
    Address {{ $visitationServiceLocation['address'] ?? 'Not specified' }}
@else Not specified @endif
@endif @if(isset($visitationService['type']) && in_array('guests', $visitationService['type'])) @php $visitationServiceGuests = json_decode($endoflifePlanForm['visitation_service_guests'], true); @endphp
Who may attend your visitation? {{$visitationServiceGuests['visitation'] ?? ' Not specified'}}
Visitation Service Guests @if (is_array($visitationServiceGuests) && array_key_exists('multipleRecords', $visitationServiceGuests))
    @foreach ($visitationServiceGuests['multipleRecords'] as $guest)
  • Full Name {{ htmlspecialchars($guest['full_name']) }}
    Relationship {{ htmlspecialchars($guest['relationship']) }}
    Address {{ htmlspecialchars($guest['address']) }}
    Phone {{ htmlspecialchars($guest['phone']) }}
    Email {{ htmlspecialchars($guest['email']) }}
  • @endforeach
@else No @endif
@endif @if(isset($visitationService['type']) && in_array('ashes', $visitationService['type']))
Ashes Present {{ $endoflifePlanForm['ashes_present'] ?? 'Not specified' }}
@endif @if(isset($visitationService['type']) && in_array('music', $visitationService['type']))
Visitation Service Music @php $visitationServiceMusic = json_decode($endoflifePlanForm['visitation_service_music'], true); @endphp @if ($visitationServiceMusic)
    Played {{ $visitationServiceMusic['played'] ?? 'Not specified' }}
    Performed {{ $visitationServiceMusic['perform'] ?? 'Not specified' }}
@else Not specified @endif
@endif @if(isset($visitationService['type']) && in_array('speakers', $visitationService['type']))
Visitation Service Speaker @php $visitationServiceSpeaker = json_decode($endoflifePlanForm['visitation_service_speaker'], true); @endphp @if ($visitationServiceSpeaker) @foreach ($visitationServiceSpeaker as $speaker)
  • Name {{ $speaker['full_name'] ?? 'Not specified' }}
    Relationship {{ $speaker['relationship'] ?? 'Not specified' }}
    Address {{ $speaker['address'] ?? 'Not specified' }}
    Phone {{ $speaker['phone'] ?? 'Not specified' }}
    Email {{ $speaker['email'] ?? 'Not specified' }}
@endforeach @else Not specified @endif
@endif @if(isset($visitationService['type']) && in_array('other', $visitationService['type']))
Visitation Service Instructions @php $visitationServiceInstructions = json_decode($endoflifePlanForm['visitation_service_instructions'], true); @endphp @if ($visitationServiceInstructions) @foreach ($visitationServiceInstructions as $instruction)
  • {{ $instruction['detail'] ?? 'Not specified' }}
@endforeach @else Not specified @endif
@endif {{-- @endif --}} @endif @endif @if(isset($services['type']) && in_array('funeral', $services['type']) || isset($services['type']) && $services['type'][0] === 'funeral')

Funeral

Funeral Arrangements {{$endoflifePlanForm['funeral_arrangements']}}
@if($endoflifePlanForm['funeral_arrangements'] == 'yes')
Funeral Location @php $funeralLocation = json_decode($endoflifePlanForm['funeral_location'], true); @endphp @if ($funeralLocation)
    Name {{ $funeralLocation['full_name'] ?? 'Not specified' }}
    Address {{ $funeralLocation['address'] ?? 'Not specified' }}
@else Not specified @endif
Funeral Instructions @php $funeral_instructions = json_decode($endoflifePlanForm['funeral_instructions'], true); @endphp @if ($funeral_instructions)
    @foreach ($funeral_instructions as $type)
  • {{ $type['detail'] }}
  • @endforeach
@else No @endif
@endif @if($endoflifePlanForm['funeral_arrangements'] == 'no')
What type of service would you like @php $funeralService = json_decode($endoflifePlanForm['funeral_service_y'], true); @endphp @if (is_array($funeralService) && isset($funeralService['type']) && is_array($funeralService['type']))
    @foreach ($funeralService['type'] as $type)
  • {{ $type }}
  • @endforeach
@else {{$funeralService['services_av'] ?? "Not specified"}} @endif
@if(isset($funeralService['type']) && in_array('location', $funeralService['type']))
Funeral Location @php $funeralSerLocation = json_decode($endoflifePlanForm['funeral_service_location'], true); @endphp @if ($funeralSerLocation)
    Name {{ $funeralSerLocation['full_name'] ?? 'Not specified' }}
    Address {{ $funeralSerLocation['address'] ?? 'Not specified' }}
@else Not specified @endif
@endif @if(isset($funeralService['type']) && in_array('officiant', $funeralService['type']))
Funeral Service Officiant @php $funeralOfficiant = json_decode($endoflifePlanForm['funeral_service_officiant'], true); @endphp @if ($funeralOfficiant)
    Name {{ $funeralOfficiant['full_name'] ?? 'Not specified' }}
    Phone {{ $funeralOfficiant['phone'] ?? 'Not specified' }}
    Email {{ $funeralOfficiant['email'] ?? 'Not specified' }}
@else Not specified @endif
@endif @if(isset($funeralService['type']) && in_array('guests', $funeralService['type']))
Who may attend your funeral? @php $funeralServiceGuests = json_decode($endoflifePlanForm['funeral_service_guests'], true); @endphp @if (is_array($funeralServiceGuests) && isset($funeralServiceGuests['multipleRecords']) && is_array($funeralServiceGuests['multipleRecords']))
  • {{ $funeralServiceGuests['visitation'] ?? "No" }}
  • @foreach ($funeralServiceGuests['multipleRecords'] as $funeral)
    • Full Name {{ htmlspecialchars($funeral['full_name']) }}
      Relationship {{ htmlspecialchars($funeral['relationship']) }}
      Address {{ htmlspecialchars($funeral['address']) }}
      Phone {{ htmlspecialchars($funeral['phone']) }}
      Email {{ htmlspecialchars($funeral['email']) }}
    @endforeach @else Not specified @endif
    @endif @if(isset($funeralService['type']) && in_array('ashes', $funeralService['type']))
    Funeral Ashes Present {{ $endoflifePlanForm['funeral_ashes_present'] ?? 'Not specified' }}
    @endif @if(isset($funeralService['type']) && in_array('music', $funeralService['type']))
    Funeral Service Music @php $funeralServiceMusic = json_decode($endoflifePlanForm['funeral_service_music'], true); @endphp @if ($funeralServiceMusic)
      @foreach ($funeralServiceMusic as $music)
    • {{ $music }}
    • @endforeach
    @else Not specified @endif
    @endif @if(isset($funeralService['type']) && in_array('eulogy', $funeralService['type']))
    Funeral Eulogist @php $funeralEulogist = json_decode($endoflifePlanForm['funeral_eulogist'], true); @endphp @if ($funeralEulogist)
      @foreach ($funeralEulogist as $eulogist)
    • Name {{ $eulogist['full_name'] ?? 'Not specified' }}
      Relationship {{ $eulogist['relationship'] ?? 'Not specified' }}
      Address {{ $eulogist['address'] ?? 'Not specified' }}
      Phone {{ $eulogist['phone'] ?? 'Not specified' }}
      Email {{ $eulogist['email'] ?? 'Not specified' }}
    • @endforeach
    @else Not specified @endif
    @endif @if(isset($funeralService['type']) && in_array('reception', $funeralService['type']))
    Funeral Reception @php $funeralReception = json_decode($endoflifePlanForm['funeral_reception'], true); @endphp @if ($funeralReception)
      @foreach ($funeralReception as $detail)
    • {{ $detail['detail'] ?? 'Not specified' }}
    • @endforeach
    @else Not specified @endif
    @endif @if(isset($funeralService['type']) && in_array('other', $funeralService['type']))
    Funeral Additional Instructions @php $funeralOtherInstructions = json_decode($endoflifePlanForm['funeral_additional_instructions'], true); @endphp @if ($funeralOtherInstructions)
      @foreach ($funeralOtherInstructions as $instruction)
    • {{ $instruction['detail'] ?? 'Not specified' }}
    • @endforeach
    @else Not specified @endif
    @endif @endif
    @endif @if(isset($services['type']) && in_array('graveside', $services['type']) || isset($services['type']) && $services['type'][0] === 'graveside')

    Graveside

    Graveside Service {{ $endoflifePlanForm['graveside_service']}}
    @if($endoflifePlanForm['graveside_service'] == 'yes')
    Do you wish to include any
    other instructions regarding
    your graveside service?
    @php $gravesideService = json_decode($endoflifePlanForm['graveside_additional_instructions'], true); @endphp @if ($gravesideService)
      @foreach ($gravesideService as $service)
    • {{ $service['detail'] }}
    • @endforeach
    @else No @endif
    @endif @if($endoflifePlanForm['graveside_service'] == 'no')
    Would you like to leave specific instructions for your graveside service? @php $gravesidervice = json_decode($endoflifePlanForm['graveside_service_y'], true); @endphp @if (is_array($gravesidervice) && isset($gravesidervice['type']) && is_array($gravesidervice['type']))
      @foreach ($gravesidervice['type'] as $type)
    • {{ $type }}
    • @endforeach
    @else {{$gravesidervice['services_av'] ?? "Not specified"}} @endif
    @if(isset($gravesidervice['type']) && in_array('officiant', $gravesidervice['type']))
    Graveside Officiant @php $gravesideOfficiant = json_decode($endoflifePlanForm['graveside_officiant'], true); @endphp @if ($gravesideOfficiant)
      Name {{ $gravesideOfficiant['full_name'] ?? 'Not specified' }}
      Phone {{ $gravesideOfficiant['phone'] ?? 'Not specified' }}
      Email {{ $gravesideOfficiant['email'] ?? 'Not specified' }}
    @else Not specified @endif
    @endif @if(isset($gravesidervice['type']) && in_array('guests', $gravesidervice['type']))
    Graveside Service Guests @php $gravesideServiceGuests = json_decode($endoflifePlanForm['graveside_service_guests'], true); @endphp
  • {{ $gravesideServiceGuests['attend_guests'] ?? "No" }}
  • @if (is_array($gravesideServiceGuests) && isset($gravesideServiceGuests['multipleRecords']) && is_array($gravesideServiceGuests['multipleRecords'])) @foreach ($gravesideServiceGuests['multipleRecords'] as $guest)
    • {{ $guest['full_name'] }}
    • {{ $guest['relationship'] }}
    • {{ $guest['address'] }}
    • {{ $guest['phone'] }}
    • {{ $guest['email'] }}
    @endforeach @else Not specified @endif
    @endif @if(isset($gravesidervice['type']) && in_array('music', $gravesidervice['type']))
    Graveside Music @php $gravesideMusic = json_decode($endoflifePlanForm['graveside_music'], true); @endphp @if ($gravesideMusic) @foreach ($gravesideMusic as $music)
    • {{ $music }}
    @endforeach @else Not specified @endif
    @endif @if(isset($gravesidervice['type']) && in_array('speakers', $gravesidervice['type']))
    Graveside Speaker @php $gravesideSpeaker = json_decode($endoflifePlanForm['graveside_speaker'], true); @endphp @if ($gravesideSpeaker) @foreach ($gravesideSpeaker as $speaker)
    • Name {{ $speaker['full_name'] ?? 'Not specified' }}
      Relationship {{ $speaker['relationship'] ?? 'Not specified' }}
      Phone {{ $speaker['phone'] ?? 'Not specified' }}
      Email {{ $speaker['email'] ?? 'Not specified' }}
    @endforeach @else Not specified @endif
    @endif @if(isset($gravesidervice['type']) && in_array('other', $gravesidervice['type']))
    Graveside Other Instructions @php $gravesideOtherInstructions = json_decode($endoflifePlanForm['graveside_other_instructions'], true); @endphp @if ($gravesideOtherInstructions)
      @foreach ($gravesideOtherInstructions as $instruction)
    • {{ $instruction['detail'] ?? 'Not specified' }}
    • @endforeach
    @else No @endif
    @endif @endif
    @endif @if(isset($services['type']) && in_array('memorial', $services['type']) || isset($services['type']) && $services['type'][0] === 'memorial')

    Memorial

    Memorial Service {{$endoflifePlanForm['memorial_service']}}
    @if($endoflifePlanForm['memorial_service'] == 'yes')
    Memorial Location @php $memorialLocation = json_decode($endoflifePlanForm['memorial_location'], true); @endphp @if ($memorialLocation)
      Name: {{ $memorialLocation['full_name'] ?? 'Not specified' }}
      Address: {{ $memorialLocation['address'] ?? 'Not specified' }}
    @else Not specified @endif
    Memorial Instructions @php $memorialInstructions = json_decode($endoflifePlanForm['memorial_instructions'], true); @endphp @if ($memorialInstructions) @foreach ($memorialInstructions as $instruction)
    • {{ $instruction['detail'] ?? 'Not specified' }}
    @endforeach @else No @endif
    @endif @if($endoflifePlanForm['memorial_service'] == 'no')
    What type of service would you like @php $memorialServiceY = json_decode($endoflifePlanForm['memorial_service_y'], true); @endphp @if (is_array($memorialServiceY) && isset($memorialServiceY['type']) && is_array($memorialServiceY['type']))
      @foreach ($memorialServiceY['type'] as $item)
    • {{ $item }}
    • @endforeach
    @else {{ $memorialServiceY['services_av'] ?? "No" }} @endif
    @if(isset($memorialServiceY['type']) && in_array('location', $memorialServiceY['type']))
    Memorial Service Held @php $memorialServiceHeld = json_decode($endoflifePlanForm['memorial_service_held'], true); @endphp @if ($memorialServiceHeld)
      Name: {{ $memorialServiceHeld['full_name'] ?? 'Not specified' }}
      Address: {{ $memorialServiceHeld['address'] ?? 'Not specified' }}
    @else Not specified @endif
    @endif @if(isset($memorialServiceY['type']) && in_array('guests', $memorialServiceY['type']))
    Memorial Guests @php $memorialServiceGuests = json_decode($endoflifePlanForm['memorial_guests'], true); @endphp
    • {{ $memorialServiceGuests['attend_guests'] ?? "No" }}
    @if (is_array($memorialServiceGuests) && isset($memorialServiceGuests['multipleRecords']) && is_array($memorialServiceGuests['multipleRecords']))
      @foreach ($memorialServiceGuests['multipleRecords'] as $memorial)
    • Full Name: {{ htmlspecialchars($memorial['full_name']) }}
      Relationship: {{ htmlspecialchars($memorial['relationship']) }}
      Phone: {{ htmlspecialchars($memorial['phone']) }}
      Email: {{ htmlspecialchars($memorial['email']) }}
    • @endforeach
    @else No @endif
    @endif @if(isset($memorialServiceY['type']) && in_array('music', $memorialServiceY['type']))
    Memorial Service Music @php $memorialServiceMusic = json_decode($endoflifePlanForm['memorial_service_music'], true); @endphp @if ($memorialServiceMusic)
      @foreach ($memorialServiceMusic as $music)
    • {{ $music }}
    • @endforeach
    @else Not specified @endif
    @endif @if(isset($memorialServiceY['type']) && in_array('speakers', $memorialServiceY['type']))
    Memorial Service Speaker @php $memorialServiceSpeaker = json_decode($endoflifePlanForm['memorial_service_speaker'], true); @endphp @if ($memorialServiceSpeaker) @foreach ($memorialServiceSpeaker as $speaker)
    • Name: {{ $speaker['full_name'] ?? 'Not specified' }}
      Relationship: {{ $speaker['relationship'] ?? 'Not specified' }}
      Phone: {{ $speaker['phone'] ?? 'Not specified' }}
      Email: {{ $speaker['email'] ?? 'Not specified' }}
    @endforeach @else Not specified @endif
    @endif @if(isset($memorialServiceY['type']) && in_array('other', $memorialServiceY['type']))
    Memorial Service Instructions @php $memorialServiceInstructions = json_decode($endoflifePlanForm['memorial_service_instructions'], true); @endphp @if ($memorialServiceInstructions)
      @foreach ($memorialServiceInstructions as $instruction)
    • {{ $instruction['detail'] ?? 'Not specified' }}
    • @endforeach
    @else No @endif
    @endif @endif
    @endif @if(isset($services['type']) && in_array('other', $services['type']) || isset($services['type']) && $services['type'][0] === 'other')

    Other

    Other Service Type {{ $endoflifePlanForm['other_service_type'] ?? 'Not specified' }}
    Other Service Instructions @php $otherServiceInstructions = json_decode($endoflifePlanForm['other_service_instructions'], true); @endphp @if ($otherServiceInstructions)
      @foreach ($otherServiceInstructions as $instruction)
    • {{ $instruction['detail'] ?? 'Not specified' }}
    • @endforeach
    @else No @endif
    @endif

    Miscellaneous

    Funeral Expenses {{ $endoflifePlanForm['funeral_expenses'] ?? 'Not specified' }}
    @if($endoflifePlanForm['funeral_expenses'] != "Do not specify") @php $estateCoverData = json_decode($endoflifePlanForm['estate_cover'], true); @endphp @if ($estateCoverData)
    Would you like to cap the amount
    that your estate will cover?
    yes
    @foreach ($estateCoverData as $key => $value) {{ ucfirst($key) }} {{ $value }} @endforeach
    @else
    Would you like to cap the amount
    that your estate will cover?
    Not specified
    @endif @endif
    Final Instructions @php $finalInstructionsData = json_decode($endoflifePlanForm['final_instructions']); @endphp @if ($finalInstructionsData) @foreach ($finalInstructionsData as $instruction)
    • {{ $instruction->message }}
    @endforeach @else Not specified @endif
    Final Thoughts @php $finalThoughtsData = json_decode($endoflifePlanForm['final_thoughts']); @endphp @if ($finalThoughtsData) @foreach ($finalThoughtsData as $thought)
    • {{ $thought->message }}
    @endforeach @else Not specified @endif
    Created At {{ isset($endoflifePlanForm['created_at']) ? date('m/d/Y h:i A', strtotime($endoflifePlanForm['created_at'])) : 'Not specified' }} (EST)
    Updated At {{ isset($endoflifePlanForm['updated_at']) ? date('m/d/Y h:i A', strtotime($endoflifePlanForm['updated_at'])) : 'Not specified' }} (EST)
    {{-- @if (isset($endoflifePlanForm['currentStep'])) @php $currentStepRouteEOL = "endoflifePlan.create.step." . $endoflifePlanForm['currentStep']; @endphp @else @php $currentStepRouteEOL = 'EndoflifePlanForm'; @endphp @endif --}} @php $currentStepRouteEOL = "endoflifePlan.resetForm"; @endphp @if (($endoflifePlanForm['payment_status'] !== 'succeeded' && $endoflifePlanForm['payment_status'] !== 'paid') ||(($endoflifePlanForm->edit_request_data) && ($endoflifePlanForm->edit_request_data->approve_status == "1") && ($endoflifePlanForm->edit_request_data->edit_status !== "0") && ($endoflifePlanForm->edit_request_data->payment_status !== 'succeeded' && $endoflifePlanForm->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 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(($endoflifePlanForm->edit_request_data && $endoflifePlanForm->edit_request_data->approve_status == '1') || ($endoflifePlanForm['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 @if(!$record_completion) @else @endif
    {{-- Open Payment Process Separate Page----END--}} @else {{-- Author: Gurupriya Solanki Description - Go to Dashboard button should not contain d-none. It should work like other wills button Updated Date : 6 Dec 2024 --}} {{-- /* * 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($endoflifePlanForm->free_edit_option_show == true) {{---To saving will document preview data --START--}}
    @csrf {{--for unique identify to call vtiger function in controller--}}
    {{---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($endoflifePlanForm->cancel_edit_request_data && ($endoflifePlanForm->cancel_edit_request_data->payment_status !== 'succeeded' && $endoflifePlanForm->cancel_edit_request_data->payment_status !== 'paid') && $endoflifePlanForm->cancel_edit_request_data->approve_status == 1)

    *To cancel the edit request, Click Here

    @endif @include('frontend.modals.paynowPopup') {{-- Payment modal --}} @include('frontend.modals.commanPaymentModal') {{-- Payment modalEnds --}} {{-- 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($endoflifePlanForm->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($endoflifePlanForm->cancel_edit_request_data && ($endoflifePlanForm->cancel_edit_request_data->payment_status !== 'succeeded' && $endoflifePlanForm->cancel_edit_request_data->payment_status !== 'paid') && $endoflifePlanForm->cancel_edit_request_data->approve_status == 1) @endif @endsection