{{-- Custom Styles Matching System Theme --}} {{-- Page Header & Actions --}}

Season Passes Management

Monitor subscriber vehicles, subscription statuses, and parking barrier access.

{{-- Flash Alerts --}} @if (session()->has('success')) @endif @if (session()->has('warning')) @endif @if (session()->has('error')) @endif {{-- Season Parking Overview Widget (Cards Only, matching Dashboard theme with Modern Polish) --}}
{{-- Ambient Background Glow Accents --}}
{{-- Active Passes --}}
{{-- Watermark SVG --}}

{{ $overviewStats['active_passes'] }}

Active Passes
{{ $overviewStats['active_bays'] }} allocated bays
{{-- Expiring in 7 Days --}}
{{-- Watermark SVG --}}

{{ $overviewStats['expiring_7_days'] }}

Expiring (7 Days)
@if ($overviewStats['expiring_7_days'] > 0) Requires renewal @else All active & healthy @endif
@if ($overviewStats['expiring_7_days'] > 0) 7 Days @endif
{{-- Pending Approval --}}
{{-- Watermark SVG --}}

{{ $overviewStats['pending_count'] }}

Pending Approval
RM {{ number_format($overviewStats['pending_amount'], 2) }}
{{-- Season Collection (MTD) --}}
{{-- Watermark SVG --}}

RM {{ number_format($overviewStats['monthly_revenue'], 2) }}

Season Collection
MTD • {{ now()->format('M Y') }}
{{-- Filters & Search Toolbar --}}
{{-- Status Dropdown --}}
{{-- Customer Type Dropdown --}}
{{-- Parking Site Dropdown --}}
{{-- Search Car Plate Number --}}
- @if (!empty($searchPlate)) @endif
{{-- General Search (Customer Name, Season ID, Email, Phone) --}}
@if (!empty($search)) @endif
{{-- Active filter badges / Reset button --}} @if ( $statusFilter !== 'all' || $customerType !== 'all' || $selectedSite !== 'all' || !empty($search) || !empty($searchPlate))
Active Filters: @if ($statusFilter !== 'all') Status: {{ ucfirst(str_replace('_', ' ', $statusFilter)) }} @endif @if ($customerType !== 'all') Type: {{ ucfirst($customerType) }} @endif @if ($selectedSite !== 'all') Site ID: {{ $selectedSite }} @endif @if (!empty($searchPlate)) Plate: {{ strtoupper($searchPlate) }} @endif @if (!empty($search)) Keyword: "{{ $search }}" @endif
@endif
{{-- Season Passes Table Card --}}
Season Pass Records

Manage registered seasonal parkers, vehicles, and validity schedules.

Season Bays View
Showing {{ $seasonPasses->firstItem() ?? 0 }} to {{ $seasonPasses->lastItem() ?? 0 }} of {{ $seasonPasses->total() }} season passes
@forelse($seasonPasses as $pass) @php $today = now()->startOfDay(); $endDate = $pass->end_date ? $pass->end_date->startOfDay() : null; $isExpired = $pass->status === 'expired' || ($pass->status === 'active' && $endDate && $endDate->lt($today)); $isExpiringSoon = $pass->status === 'active' && !$isExpired && $endDate && $endDate->diffInDays($today, false) >= -14 && $endDate->diffInDays($today, false) <= 0; if ($pass->status === 'terminated' || $pass->status === 'cancelled') { $statusLabel = 'Terminated'; $statusBadge = 'bg-dark text-white'; } elseif ($pass->status === 'pending_approval') { $statusLabel = 'Pending Approval'; $statusBadge = 'bg-warning text-dark'; } elseif ($pass->status === 'approved') { $statusLabel = 'Approved (Pending Payment)'; $statusBadge = 'bg-info text-white'; } elseif ($pass->status === 'payment_submitted') { $statusLabel = 'Payment Submitted'; $statusBadge = 'bg-primary text-white'; } elseif ($pass->status === 'rejected') { $statusLabel = 'Rejected'; $statusBadge = 'bg-secondary text-white'; } elseif ($isExpired) { $statusLabel = 'Expired'; $statusBadge = 'bg-danger text-white'; } elseif ($isExpiringSoon) { $statusLabel = 'Expiring Soon'; $statusBadge = 'bg-warning text-dark'; } else { $statusLabel = 'Active'; $statusBadge = 'bg-success text-white'; } // Count extra vehicles $allPlates = $pass->all_plates; $primaryPlate = $allPlates[0] ?? ($pass->vehicle_no_1 ?: null); $extraVehicles = max(0, count($allPlates) - 1); @endphp @empty @endforelse
Season ID Customer Parking Site & Carpark Vehicles Registered Bays Monthly Rate Validity Period Status Action
{{ $pass->external_season_id }} @if ($pass->customer_id)
Acc: {{ $pass->customer_id }}
@endif
{{ $pass->customer_name }} @if ($pass->customer_type === 'corporate') Corporate @else Individual @endif
@if ($pass->phone) {{ $pass->phone }} @endif @if ($pass->phone && $pass->email) • @endif @if ($pass->email) {{ $pass->email }} @endif
@if ($pass->proof_of_employment) @endif
{{ $pass->site->site_name ?? 'Site #' . $pass->site_id }} @if ($pass->carpark_name)
{{ $pass->carpark_name }}
@endif
@if ($primaryPlate) {{ $primaryPlate }} @else No plate @endif @if ($extraVehicles > 0) +{{ $extraVehicles }} more @endif
{{ $pass->no_of_bays ?? 1 }} {{ ($pass->no_of_bays ?? 1) > 1 ? 'bays' : 'bay' }} RM {{ number_format($pass->monthly_rate, 2) }}
Base: RM {{ number_format($pass->base_rate, 2) }} + Tax: RM {{ number_format($pass->tax_amount, 2) }}
{{ $pass->start_date ? $pass->start_date->format('d/m/Y') : '-' }} → {{ $pass->end_date ? $pass->end_date->format('d/m/Y') : '-' }}
@if ($pass->end_date) @if ($isExpired) Expired @else @php $daysLeft = (int) $today->diffInDays($endDate, false); @endphp {{ $daysLeft }} {{ $daysLeft === 1 ? 'day' : 'days' }} remaining @endif @endif
{{ $statusLabel }}
@if ($pass->status === 'pending_approval') @endif View Details

No season passes found matching this filter.

@if ($seasonPasses->hasPages())
{{ $seasonPasses->links() }}
@endif
{{-- REGISTER NEW PASS (ADMIN MODAL) --}} @if ($showCreateModal) @endif {{-- Modal: Bulk Import Season Passes (Excel / CSV) --}} @if ($showImportModal) @endif
@push('local-js') @endpush