@php $statusKey = strtolower($status ?? 'pending'); $isSuccess = in_array($statusKey, ['completed', 'success', 'paid'], true); $isFailed = in_array($statusKey, ['failed', 'cancelled'], true); $targetRedirectUrl = $transaction?->redirect_url; @endphp
@if($isSuccess) @elseif($isFailed) @else @endif

@if($isSuccess) {{ __('Payment Successful!') }} @elseif($isFailed) {{ __('Payment Failed') }} @else {{ __('Payment Processing') }} @endif

@if($isSuccess) {{ __('Your transaction was completed successfully.') }} @elseif($isFailed) {{ __('Your payment could not be processed.') }} @else {{ __('Your transaction is being processed.') }} @endif

@if($amount !== null)
{{ __('Amount Paid') }}
{{ $currencySymbol }}{{ number_format((float)$amount, 2) }}
@endif
{{ __('Status') }} {{ strtoupper($status) }}
@if($transactionId)
{{ __('Transaction ID') }} {{ $transactionId }}
@endif @if($paymentMethod)
{{ __('Payment Method') }} {{ $paymentMethod }}
@endif @if($type)
{{ __('Payment Type') }} {{ ucfirst($type) }}
@endif @if($date)
{{ __('Date & Time') }} {{ \Carbon\Carbon::parse($date)->format('d M Y, h:i A') }}
@endif
Redirecting to app in 3 seconds...