M-Pesa IPN Simulator

@if (session('success')) @endif @if (session('error')) @endif
@csrf
@error('TransAmount')
{{ $message }}
@enderror
@error('BillRefNumber')
{{ $message }}
@enderror
@if ($transactions = \App\Models\Transaction::latest()->take(5)->get())

Recent Transactions

@foreach ($transactions as $transaction) @endforeach
Trans ID Amount Bill Ref Phone Time Invoice Type
{{ $transaction->trans_id }} {{ number_format($transaction->amount, 2) }} {{ $transaction->bill_ref_number }} {{ $transaction->phone_number }} {{ $transaction->trans_time }} {{ $transaction->invoice_type ?? 'N/A' }}
@endif