Payment Management
{{ $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)
All time · by currency
{{ number_format($amount, 0) }} {{ $code }}
@empty
0 —
@endforelse
Completed
@forelse($completedByCurrency ?? [] as $code => $amount)
Paid
{{ number_format($amount, 0) }} {{ $code }}
@empty
0 —
@endforelse
Pending
@forelse($pendingByCurrency ?? [] as $code => $amount)
Awaiting payment
{{ number_format($amount, 0) }} {{ $code }}
@empty
0 —
@endforelse
This Month
@forelse($monthlyByCurrency ?? [] as $code => $amount)
{{ now()->format('F Y') }}
{{ number_format($amount, 0) }} {{ $code }}
@empty
0 —
@endforelse
Payment History
| 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 FoundThere are no payment records to display at the moment. |
||||||||