@php $currentStatus = strtolower($status ?? ''); if (isset($success)) { $currentStatus = $success ? 'success' : 'failed'; } if ( !in_array( $currentStatus, [ 'success', 'completed', 'pending', 'processing', 'failed', 'error' ] ) ) { $currentStatus = 'failed'; } if ($currentStatus === 'completed') { $currentStatus = 'success'; } if ($currentStatus === 'processing') { $currentStatus = 'pending'; } $isSuccess = $currentStatus === 'success'; $isPending = $currentStatus === 'pending'; $title = $isSuccess ? 'Payment Successful' : ( $isPending ? 'Payment Processing' : 'Payment Failed' ); $defaultMessage = $isSuccess ? 'Your payment has been completed successfully.' : ( $isPending ? 'Your payment is still being processed. Please check again shortly.' : 'The payment could not be completed.' ); $displayMessage = $message ?? $defaultMessage; @endphp
@if($isSuccess) ✓ @elseif($isPending) … @else × @endif
{{ $title }}
{{ $displayMessage }}
@if($isSuccess)
Return to BDCodeShop
@elseif($isPending)
Return to BDCodeShop
@else
Return to BDCodeShop
@endif
Open BDCodeShop Bot
You can safely return to Telegram.