@if($payment->hasDeclineHistory()) @php $declinePayloadB64 = base64_encode(json_encode( $payment->declineDialogPayload(), JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES ) ?: '{}'); $declineBtnTitle = $payment->payment_status === 'paid' ? 'View prior declined attempts' : 'Why was this declined?'; @endphp @endif