@if (! $mpesaEnabled)
M-Pesa is disabled in system settings.
@else
@if (! $mpesaConfigured)
Simulation mode: requests are created in-app. Complete them below to post a receipt and update the books.
@endif
@endif
@php($pendingSimulated = $mpesaTransactions->where('status', 'pending')->where('is_simulated', true))
@if ($pendingSimulated->isNotEmpty())
Awaiting completion
@foreach ($pendingSimulated as $transaction)
{{ money($transaction->amount) }} · {{ \App\Support\PhoneNumber::display($transaction->phone) }}
{{ $transaction->created_at->format('j M Y, g:i A') }}
@endforeach
@endif
@if ($mpesaTransactions->isNotEmpty())
Recent requests
@foreach ($mpesaTransactions as $transaction)
{{ money($transaction->amount) }}
· {{ $transaction->mpesa_receipt ?? $transaction->created_at->format('j M, g:i A') }}
@if ($transaction->is_simulated)Sim@endif
{{ \App\Models\MpesaTransaction::STATUSES[$transaction->status] ?? ucfirst($transaction->status) }}
@endforeach
Open M-Pesa centre
@endif