{{-- Filters & Search Toolbar --}}
{{-- Status Dropdown Filter --}}
{{-- Parking Site --}}
{{-- From Date --}}
{{-- To Date --}}
{{-- Search Box --}}
{{-- Reset Button --}}
@if ($statusFilter !== 'all' || $selectedSite !== 'all' || !empty($startDate) || !empty($endDate) || !empty($search)) @endif
{{-- Active Filters Pills (if any) --}} @if ($statusFilter !== 'all' || $selectedSite !== 'all' || !empty($startDate) || !empty($endDate) || !empty($search))
Active Filters: @if ($statusFilter !== 'all') Status: {{ $statusFilter === 'pending_approval' ? 'Pending Approval (Manual)' : ($statusFilter === 'online_incomplete' ? 'Incomplete Online' : ucwords(str_replace('_', ' ', $statusFilter))) }} × @endif @if ($selectedSite !== 'all') @php $siteObj = $sites->firstWhere('id', $selectedSite); @endphp Site: {{ $siteObj ? $siteObj->site_name : $selectedSite }} × @endif @if (!empty($startDate) || !empty($endDate)) Date: {{ $startDate ? \Carbon\Carbon::parse($startDate)->format('d/m/Y') : 'Start' }} - {{ $endDate ? \Carbon\Carbon::parse($endDate)->format('d/m/Y') : 'End' }} × @endif @if (!empty($search)) Search: "{{ $search }}" × @endif
@endif
{{-- Transactions Table Card --}}
Season Payment Records

List of manual payment submissions synced from external system.

Showing {{ $transactions->firstItem() ?? 0 }} to {{ $transactions->lastItem() ?? 0 }} of {{ $transactions->total() }} submissions
@forelse($transactions as $txn) @php $st = strtolower($txn->payment_status); $isOnline = in_array(strtolower($txn->payment_method), [ 'online', 'online_gateway', 'gateway', 'eghl', 'fiuu', ]); $isManualPending = $st === 'pending_approval' || ($st === 'pending' && !$isOnline); if ($isOnline && in_array($st, ['pending', 'unpaid'])) { $stBadge = 'bg-secondary-subtle text-secondary border border-secondary'; $stLabel = 'Incomplete (Online)'; } else { $stBadge = match ($st) { 'approved', 'success', 'paid' => 'bg-success text-white', 'pending', 'pending_approval' => 'bg-warning text-dark', 'failed', 'rejected' => 'bg-danger text-white', default => 'bg-secondary text-white', }; $stLabel = $isManualPending ? 'Pending Review' : ucwords(str_replace('_', ' ', $st)); } @endphp @empty @endforelse
Invoice / Ref Parking Site Customer & Pass Method Proof / Attachment Amount Submitted Date Status Action
{{ $txn->invoice_no ?: $txn->external_transaction_id }} @if ($txn->reference_no)
Ref: {{ $txn->reference_no }}
@endif
{{ $txn->site->site_name ?? 'Site #' . $txn->site_id }}
{{ $txn->customer_name }}
Pass: {{ $txn->seasonPass?->external_season_id ?? '-' }} @if ($txn->period_start && $txn->period_end)
{{ $txn->period_start->format('d/m/Y') }} – {{ $txn->period_end->format('d/m/Y') }}
@elseif ($txn->billing_month)
{{ \Carbon\Carbon::parse($txn->billing_month)->format('M Y') }}
@endif
{{ ucwords(str_replace('_', ' ', $txn->payment_method)) }} @if ($txn->has_attachment) Receipt Attached @else No file @endif RM {{ number_format($txn->amount, 2) }} {{ $txn->submitted_at ? $txn->submitted_at->format('d/m/Y H:i') : ($txn->created_at ? $txn->created_at->format('d/m/Y H:i') : '-') }} {{ $stLabel }} {{-- @if ($isOnline && in_array($st, ['pending', 'unpaid'])) @endif --}} @if (in_array($st, ['approved', 'paid', 'success'])) @endif @if ($isManualPending) Review & Approve @else View Details @endif

No payment records found matching this filter.

@if ($transactions->hasPages())
{{ $transactions->links() }}
@endif