Free Living Will
@if(is_object($livingWillForm)) @if(($livingWillForm) && ($livingWillForm->payment_status == 'succeeded' || $livingWillForm->payment_status == 'paid') && ($livingWillForm->free_edit_option_show == true)) @php $disabled = ''; @endphp @elseif ( (!empty($livingWillForm['edit_request_data'])) && ($livingWillForm->edit_request_data->payment_status !== 'succeeded' && $livingWillForm->edit_request_data->payment_status !== 'paid') && ($livingWillForm->edit_request_data->approve_status === "1" && $livingWillForm->edit_request_data->edit_status === "1") ) @php $disabled = ''; @endphp @elseif (($livingWillForm) && ($livingWillForm->payment_status == 'succeeded' || $livingWillForm->payment_status == 'paid') || (!empty($livingWillForm['edit_request_data']) && $livingWillForm->edit_request_data->edit_status === "0")) @php /* Author : Gurupriya Solanki Updated Date :26 April 2024 Description : If let's say a client is on a steps page(Ex. on "Get Started" Tab) and 24 hours have passed and they refresh that page it should redirect them to the preview page with the steps tab disabled. **/ $currentUrl = url()->current(); $targetUrl = route('livingwill.create.step.preview'); if ($currentUrl !== $targetUrl) { @endphp @section('page-js') @php echo ""; @endphp @endsection @php } $disabled = "stepIndicator_disabled"; @endphp @else @php $disabled = ''; @endphp @endif @else @php $disabled = ''; @endphp @endif Get Started Location Care Choices Your Info @if(isset($livingWillForm->health_care_decisions) && $livingWillForm->health_care_decisions == 'yes' || !isset($livingWillForm->health_care_decisions)) Proxy @endif Final Details Preview
@if($errors->any())
@endif