@if((isset($RevocableTrustData['payment_status'] )) && ($RevocableTrustData['payment_status'] == 'succeeded' || $RevocableTrustData['payment_status'] == 'paid') && ($RevocableTrustData['free_edit_option_show'] == true)) @php $disabled = ''; @endphp @elseif ( (isset($RevocableTrustData['edit_request_data']['approve_status'])) && ($RevocableTrustData['edit_request_data']['payment_status'] !== 'succeeded' && $RevocableTrustData['edit_request_data']['payment_status'] !== 'paid') && ($RevocableTrustData['edit_request_data']['approve_status'] == '1') && ($RevocableTrustData['edit_request_data']['edit_status'] !== '0') ) @php $disabled = ''; @endphp @elseif (isset($RevocableTrustData['payment_status']) && ($RevocableTrustData['payment_status'] == 'succeeded' || $RevocableTrustData['payment_status'] == 'paid')) @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('RevocableLivingTrust.create.step.preview'); if ($currentUrl !== $targetUrl) { @endphp @section('page-js') @php echo ""; @endphp @endsection @php } $disabled = "stepIndicator_disabled"; @endphp @else @php $disabled = ''; @endphp @endif