@extends('layouts.pay') @section('content') @php // Get transaction ID from the URL query string or session. URL is more reliable for client-side flows. $transactionId = request('transaction_id') ?? session('last_transaction_id'); $transaction = null; if ($transactionId) { $transaction = \App\Models\Transaction::with('brand')->find($transactionId); } @endphp

{{ __('Payment Successful!') }}

{{ __('Thank you! Your payment has been processed successfully.') }}

@if ($transaction)

Transaction Summary

{{ __('Transaction ID:') }} {{ $transaction->trx_id ?? $transaction->system_trx_id }}
{{ __('Amount Paid:') }} ৳{{ number_format($transaction->amount, 2) }}
{{ __('Paid To:') }} {{ $transaction->brand->name ?? 'N/A' }}
@endif
@endsection