End-of-life Plan
@if(is_object($endoflifePlanForm)) @if(($endoflifePlanForm) && ($endoflifePlanForm->payment_status == 'succeeded' || $endoflifePlanForm->payment_status == 'paid') && ($endoflifePlanForm->free_edit_option_show == true)) @php $disabled = ''; @endphp @elseif ( (!empty($endoflifePlanForm['edit_request_data'])) && ($endoflifePlanForm->edit_request_data->payment_status !== 'succeeded' && $endoflifePlanForm->edit_request_data->payment_status !== 'paid') && ($endoflifePlanForm->edit_request_data->approve_status === "1" && $endoflifePlanForm->edit_request_data->edit_status === "1") ) @php $disabled = ''; @endphp @elseif (($endoflifePlanForm) && ($endoflifePlanForm->payment_status == 'succeeded' || $endoflifePlanForm->payment_status == 'paid') || (!empty($endoflifePlanForm['edit_request_data']) && $endoflifePlanForm->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('endoflifePlan.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 Appointee Announcement Remains Services Miscellaneous Preview
@if($errors->any())
@endif