@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
{{-- start View --}}
End of Life plan
ID:
{{ $endoflifePlanForm['id'] }}
Do you already have a Last Will and Testament?
{{ $endoflifePlanForm['last_will'] ?? 'Not specified' }}
Plan For:
@php
$planFor = json_decode($endoflifePlanForm['plan_for'], true);
@endphp
@if ($planFor)
@foreach ($planFor as $key => $value)
- {{ ucfirst(str_replace('_', ' ', $key)) }}: {{ $value }}
@endforeach
@else
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" )
Executor Details:
@php
$appointeeDetails = json_decode($endoflifePlanForm['executor_details'], true);
@endphp
@if (is_array($appointeeDetails))
@foreach ($appointeeDetails as $appointee)
- Name: {{ $appointee['full_name'] ?? 'Not specified' }}
- City: {{ $appointee['city'] ?? 'Not specified' }}
- State: {{ $appointee['state'] ?? 'Not specified' }}
- Phone Number: {{ $appointee['phone_number'] ?? 'Not specified' }}
- Email: {{ $appointee['email'] ?? 'Not specified' }}
@endforeach
@else
{{ $endoflifePlanForm['executor_details'] ?? 'Not specified' }}
@endif
@endif
@if(isset($endoflifePlanForm['executor']) && $endoflifePlanForm['executor'] == "no" )
Appointee Details:
@php
$appointeeDetails = json_decode($endoflifePlanForm['appointee_details'], true);
@endphp
@if (is_array($appointeeDetails))
@foreach ($appointeeDetails as $appointee)
- Name: {{ $appointee['full_name'] ?? 'Not specified' }}
- City: {{ $appointee['city'] ?? 'Not specified' }}
- State: {{ $appointee['state'] ?? 'Not specified' }}
- Phone Number: {{ $appointee['phone_number'] ?? 'Not specified' }}
- Email: {{ $appointee['email'] ?? 'Not specified' }}
@endforeach
@else
{{ $endoflifePlanForm['appointee_details'] ?? 'Not specified' }}
@endif
@endif
Announcement
Death Announcement:
{{ $endoflifePlanForm['announcement'] ?? 'Not specified' }}
@if(isset($endoflifePlanForm['announcement'] )&& $endoflifePlanForm['announcement'] =='death')
Death Publication:
@php
$deathPublication = json_decode($endoflifePlanForm['death_publication'], true);
@endphp
@if (is_array($deathPublication))
@foreach ($deathPublication as $publication)
- Publication Name: {{ $publication['publication_name'] ?? 'Not specified' }}
- Publication City: {{ $publication['publication_city'] ?? 'Not specified' }}
@endforeach
@else
{{ $endoflifePlanForm['death_publication'] ?? 'Not specified' }}
@endif
Death Notice:
@php
$deathNotice = json_decode($endoflifePlanForm['death_notice'], true);
@endphp
@if ($deathNotice)
@foreach ($deathNotice as $key => $value)
- {{ ucfirst(str_replace('_', ' ', $key)) }}: {{ $value }}
@endforeach
@else
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)
- Detail: {{ $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
Photograph:
{{ $endoflifePlanForm['photograph'] ?? 'Not specified' }}
Funeral Service:
{{ $endoflifePlanForm['funeral_service'] ?? 'Not specified' }}
Charitable Donations:
@php
$charitableDonations = json_decode($endoflifePlanForm['charitable_details'], true);
@endphp
@if (is_array($charitableDonations))
@foreach ($charitableDonations as $donation)
- Charity Name: {{ $donation['charity_name'] ?? 'Not specified' }}
- Registration Number: {{ $donation['registration_number'] ?? 'Not specified' }}
@endforeach
@else
{{ $endoflifePlanForm['charitable_details'] ?? 'No' }}
@endif
@endif
{{-- obituary --}}
@if(isset($endoflifePlanForm['announcement'] )&& $endoflifePlanForm['announcement'] =='obituary')
Obituary Publication:
@php
$obituaryPublication = json_decode($endoflifePlanForm['obituary_publication'], true);
@endphp
@if (is_array($obituaryPublication))
@foreach ($obituaryPublication as $publication)
- Publication Name: {{ $publication['publication_name'] ?? 'Not specified' }}
- Publication City: {{ $publication['publication_city'] ?? 'Not specified' }}
@endforeach
@else
{{ $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:
{{ $endoflifePlanForm['obituary_funeral_service'] ?? 'Not specified' }}
Obituary Charitable Donations:
@php
$obituaryCharitableDonations = json_decode($endoflifePlanForm['obituary_charitable_details'], true);
@endphp
@if (is_array($obituaryCharitableDonations))
@foreach ($obituaryCharitableDonations as $donation)
- Charity Name: {{ $donation['charity_name'] ?? 'Not specified' }}
- Registration Number: {{ $donation['registration_number'] ?? 'Not specified' }}
@endforeach
@else
{{ $endoflifePlanForm['obituary_charitable_details'] ?? 'Not specified' }}
@endif
@endif
Organ Donor:
@php
$organDonor = json_decode($endoflifePlanForm['organ_donor'], true);
@endphp
@if ($organDonor)
@foreach ($organDonor as $key => $value)
- {{ ucfirst(str_replace('_', ' ', $key)) }}: {{ $value }}
@endforeach
@else
Not specified
@endif
Remains
What would you like done with your body after death?
{{ $endoflifePlanForm['remains'] ?? 'Not specified' }}
@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
Not specified
@endif
@endif
@endif
@if($endoflifePlanForm['remains'] == 'donationscience')
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
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
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:
@if($endoflifePlanForm['cremation'] ?? 'Not specified' == 'rother')
Other
@else
{{ $endoflifePlanForm['cremation'] ?? 'Not specified' }}
@endif
@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['cremation']) && $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'] == "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'] ?? 'No' }}
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
Services:
@php
$services = json_decode($endoflifePlanForm['services'], true);
@endphp
@if ($services)
@foreach ($services 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
{{-- for --}}
@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
@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)
@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)
@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")
Would you like to cap the amount that your estate will cover?:
@php
$estateCoverData = json_decode($endoflifePlanForm['estate_cover'], true);
@endphp
@if ($estateCoverData)
@foreach ($estateCoverData as $key => $value)
- {{ ucfirst($key) }}: {{ $value }}
@endforeach
@else
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)
@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)
{{-- end view --}}