{{-- Custom Styles Matching System Theme --}}
{{-- Page Header & Actions --}}
{{-- Flash Alerts --}}
@if (session()->has('success'))
{{-- Filters & Search Toolbar --}}
@endif
{{-- Season Passes Table Card --}}
@if ($seasonPasses->hasPages())
{{-- REGISTER NEW PASS (ADMIN MODAL) --}}
@if ($showCreateModal)
Season Passes Management
Monitor subscriber vehicles, subscription statuses, and parking barrier access.
Success! {{ session('success') }}
@endif
@if (session()->has('warning'))
Warning: {{ session('warning') }}
@endif
@if (session()->has('error'))
Error! {{ session('error') }}
@endif
{{-- Season Parking Overview Widget (Cards Only, matching Dashboard theme with Modern Polish) --}}
{{-- Ambient Background Glow Accents --}}
{{-- Active Passes --}}
{{-- Expiring in 7 Days --}}
{{-- Pending Approval --}}
{{-- Season Collection (MTD) --}}
{{-- Watermark SVG --}}
{{ $overviewStats['active_passes'] }}
Active Passes
{{ $overviewStats['active_bays'] }} allocated bays
{{-- 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
{{-- Watermark SVG --}}
{{ $overviewStats['pending_count'] }}
Pending Approval
RM {{ number_format($overviewStats['pending_amount'], 2) }}
{{-- Status Dropdown --}}
{{-- Customer Type Dropdown --}}
{{-- Parking Site Dropdown --}}
{{-- Search Car Plate Number --}}
{{-- General Search (Customer Name, Season ID, Email, Phone) --}}
{{-- Active filter badges / Reset button --}}
@if (
$statusFilter !== 'all' ||
$customerType !== 'all' ||
$selectedSite !== 'all' ||
!empty($search) ||
!empty($searchPlate))
-
@if (!empty($searchPlate))
@endif
@if (!empty($search))
@endif
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
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
| 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. |
||||||||
{{ $seasonPasses->links() }}
@endif