@if(!empty($pesapalSyncStats['completed']))
{{ $pesapalSyncStats['completed'] }} client payment(s) auto-marked completed from PesaPal.
@endif @if(request('payment_synced') === '1' || session('success'))
{{ session('success') ?? 'Payment synced and marked completed.' }}
@endif
Total Revenue
@forelse($completedByCurrency ?? [] as $code => $amount)
{{ number_format($amount, 0) }} {{ $code }}
@empty
0
@endforelse
All time · by currency
Completed
@forelse($completedByCurrency ?? [] as $code => $amount)
{{ number_format($amount, 0) }} {{ $code }}
@empty
0
@endforelse
Paid
Pending
@forelse($pendingByCurrency ?? [] as $code => $amount)
{{ number_format($amount, 0) }} {{ $code }}
@empty
0
@endforelse
Awaiting payment
This Month
@forelse($monthlyByCurrency ?? [] as $code => $amount)
{{ number_format($amount, 0) }} {{ $code }}
@empty
0
@endforelse
{{ now()->format('F Y') }}
Clear
Payment History
@forelse($payments ?? [] as $payment) @empty @endforelse
ID Hotel Amount Currency Payment Method Transaction ID Payment Date Status Actions
#{{ $payment->id }}
{{ $payment->subscription->hotel->name ?? 'N/A' }}
{{ $payment->subscription->plan_name ?? '' }}
{{ $payment->display_currency }} {{ number_format((float) $payment->amount, 0) }}
{{ $payment->display_currency }} @if($payment->subscription?->hotel?->country) {{ $payment->subscription->hotel->country }} @endif @php $methodClass = 'badge-info'; if ($payment->payment_method == 'pesapal') { $methodClass = 'badge-pesapal'; } elseif ($payment->payment_method == 'cash') { $methodClass = 'badge-success'; } elseif ($payment->payment_method == 'bank') { $methodClass = 'badge-secondary'; } elseif ($payment->payment_method == 'mobile') { $methodClass = 'badge-warning'; } @endphp {{ ucfirst($payment->payment_method) }} @if($payment->transaction_id) {{ $payment->transaction_id }} @else N/A @endif {{ \Carbon\Carbon::parse($payment->payment_date)->format('M d, Y') }} @php $statusClass = match($payment->status) { 'completed' => 'badge-success', 'pending' => 'badge-warning', 'failed' => 'badge-danger', 'refunded' => 'badge-secondary', default => 'badge-secondary' }; @endphp {{ ucfirst($payment->status) }}
@if($payment->status == 'pending') @endif
No Payments Found

There are no payment records to display at the moment.

@if(isset($payments) && method_exists($payments, 'links')) @endif