@if(isset($serviceb['type']) && in_array('location', $serviceb['type']) && isset($serviceb['type']) && $serviceb['type'][$aid] === 'location')
Funeral location
Where will your funeral be held?
@endif
@if(isset($serviceb['type']) && in_array('officiant', $serviceb['type']) && isset($serviceb['type']) && $serviceb['type'][$aid] === 'officiant')
Officiant
Who will be your officiant?
@endif
@if(isset($serviceb['type']) && in_array('guests', $serviceb['type']) && isset($serviceb['type']) && $serviceb['type'][$aid] === 'guests')
@php
$receive_your_ashesArray = json_decode($endoflifePlanForm->funeral_service_guests, true)
@endphp
Guests
Who may attend your funeral?
@endif
@if(isset($serviceb['type']) && in_array('ashes', $serviceb['type']) && isset($serviceb['type']) && $serviceb['type'][$aid] === 'ashes')
Viewing
Do you wish to have your ashes present?
@endif
@if(isset($serviceb['type']) && in_array('music', $serviceb['type']) && isset($serviceb['type']) && $serviceb['type'][$aid] === 'music')
@php
$receive_your_ashesArray = json_decode($endoflifePlanForm->funeral_service_music, true)
@endphp
Funeral details
@endif
@if(isset($serviceb['type']) && in_array('eulogy', $serviceb['type']) && isset($serviceb['type']) && $serviceb['type'][$aid] === 'eulogy')
Eulogy
Who would you like to speak at your visitation?
@endif
@if(isset($serviceb['type']) && in_array('reception', $serviceb['type']) && isset($serviceb['type']) && $serviceb['type'][$aid] === 'reception')
Reception
What instructions do you have for your post-funeral reception?
You can include instructions for the location (usually the same location as the funeral), flowers, music, food, and drinks.
@endif
@if(isset($serviceb['type']) && in_array('other', $serviceb['type']) && isset($serviceb['type']) && $serviceb['type'][$aid] === 'other')
Additional instructions
Do you wish to include any other instructions regarding your funeral?
@endif
@foreach ($serviceb['type'] as $service)
@if ($service === $typeStep)
@if ($aid == 0)
@else
@endif
@endif
@endforeach
{{-- --}}