@include('Partials.sidebar')
@include('Partials.header')

Payments

Online payment transactions

  1. โ€บ
  2. Payments
{{-- Stat cards --}}
@foreach([ ['label'=>'Total Collected', 'value'=>$currency . ' ' . $stats['total_collected'], 'color'=>'#22c55e','icon'=>'fa-coins'], ['label'=>'This Month', 'value'=>$currency . ' ' . $stats['this_month'], 'color'=>'#c9a96e','icon'=>'fa-calendar-alt'], ['label'=>'Transactions', 'value'=>$stats['total_count'], 'color'=>'#3b82f6','icon'=>'fa-receipt'], ['label'=>'Pending', 'value'=>$stats['pending_count'], 'color'=>'#f59e0b','icon'=>'fa-hourglass-half'], ['label'=>'Failed', 'value'=>$stats['failed_count'], 'color'=>'#ef4444','icon'=>'fa-times-circle'], ] as $c)
{{ $c['label'] }}
{{ $c['value'] }}
@endforeach
{{-- Revenue chart + By gateway --}}
{{-- Monthly chart --}}
Monthly Revenue (Last 6 Months)
{{-- By gateway --}}
By Gateway
@foreach($byGateway as $gw) @php $gwColors = ['razorpay'=>'#3b82f6','stripe'=>'#8b5cf6','phonepe'=>'#f59e0b','cash'=>'#22c55e','manual'=>'#64748b']; $gwColor = $gwColors[strtolower($gw->gateway)] ?? '#64748b'; @endphp
{{ $gw->gateway }} ยท {{ $gw->count }} txns
{{ $currency }} {{ $gw->total }}
@endforeach @if($byGateway->isEmpty())

No data yet

@endif
{{-- Filters --}}
Export CSV
{{-- Transactions table --}}
{{ $transactions->total() }} Transactions
@forelse($transactions as $t) @php $statusColors = ['success'=>'#22c55e','failed'=>'#ef4444','pending'=>'#f59e0b','refunded'=>'#94a3b8']; $statusColor = $statusColors[$t->status] ?? '#94a3b8'; $gwIcons = ['razorpay'=>'๐Ÿ’ณ','stripe'=>'๐Ÿ’Ž','phonepe'=>'๐Ÿ“ฑ','cash'=>'๐Ÿ’ต','manual'=>'๐Ÿฆ']; $gwIcon = $gwIcons[strtolower($t->gateway)] ?? '๐Ÿฆ'; @endphp @empty @endforelse
# User Unit Gateway Payment ID Amount Status Date
{{ $t->id }}
{{ $t->user?->name }}
{{ $t->user?->email }}
@if($t->booking) Unit {{ $t->booking->plot_number }}
{{ $t->booking->plot_type }}
@else โ€” @endif
{{ $gwIcon }} {{ ucfirst($t->gateway) }} @if($t->mode !== 'online') {{ $t->mode }} @endif {{ Str::limit($t->gateway_payment_id ?: $t->gateway_order_id ?: 'โ€”', 24) }} {{ $currency }} {{ $t->amount }}
{{ $t->currency }}
โ— {{ $t->status }} {{ $t->paid_at ? $t->paid_at->format('d M Y') : ($t->created_at->format('d M Y')) }}
{{ $t->paid_at ? $t->paid_at->format('H:i') : '' }}
No payment transactions found.
@if($transactions->hasPages()) @endif
@include('Partials.footer')