@php
// Determine the file path based on the approval status
$file =
isset($customerAgreement) && $customerAgreement->is_approved === 1
? 'storage/signed_agreements/' . $customerAgreement->file_name
: 'storage/agreement_form/referral-and-commission-program-terms-and-conditions.pdf';
@endphp
Agreement.pdf
@if (isset($customerAgreement))
@if ($customerAgreement->is_approved === 0)
The signed agreement has been uploaded. Your request is waiting for approval.
@elseif ($customerAgreement->is_approved === 2)
Unfortunately, your signed agreement has been rejected. Please review the agreement and
upload it again for further processing.
@endif
@else
@endif