{{ __('Payments ledger') }} {{ __('Record payment') }} {{-- Headline figures --}}
{{-- Unmatched receipts are money you have been paid but not credited --}} @if ($this->unmatched > 0)
{{ trans_choice(':count M-Pesa receipt could not be matched to an account.|:count M-Pesa receipts could not be matched to an account.', $this->unmatched, ['count' => $this->unmatched]) }}
@endif {{-- Ledger --}}
{{ __('Payments') }}
{{ __('Loading...') }}
@forelse ($payments as $p) @php $paid = strtolower((string) $p->status) === 'paid'; @endphp @empty @endforelse
{{ __('Paid by') }} {{ __('Receipt') }} {{ __('Method') }} {{ __('Type') }} {{ __('Status') }} {{ __('Amount') }} {{ __('Date') }}
{{ $p->who }} @if ($p->taken_by) {{ $p->taken_by }} @elseif ($p->origin === 'hotspot') {{ __('Captive portal') }} @endif {{ $p->receipt ?: '—' }} {{ strtoupper($p->method ?: '—') }} {{ ucfirst($p->kind ?: '—') }} {{ ucfirst($p->status ?: 'pending') }} {{ money($p->amount, 0) }} {{ \Carbon\Carbon::parse($p->paid_at)->format('M j, g:i A') }}
@if ($search !== '' || $method !== '' || $range !== 'all') {{ __('No payments match these filters.') }} @else {{ __('No payments recorded yet.') }} @endif
@if ($payments->hasPages())
{{ $payments->links() }}
@endif