{{-- Flash Messages --}} @if (session()->has('error')) @endif {{-- STATE 1: CONFIRMATION SCREEN (AFTER SUCCESSFUL PAYMENT OR MANUAL SUBMISSION) --}} @if ($submitted)
{{-- CASE 1A: ONLINE GATEWAY PAYMENT SUCCESS (ACTIVE) --}} @if ($status_type === 'active')
✓ STATUS: PASS ACTIVE

Payment Successful & Season Pass Activated!

Congratulations! Your payment has been confirmed and your season pass is now active. You may now access the carpark facilities.

Season Pass Code: {{ $successData['pass_code'] ?? '-' }}
Pass Status: ACTIVE
Invoice No.: {{ $successData['invoice_no'] ?? '-' }}
Carpark Location: {{ $successData['site_name'] ?? '-' }}
Amount Paid: RM {{ number_format($successData['total_amount'] ?? 0, 2) }}
Payment Method: Online Payment Gateway (eGHL)
Gateway Reference No.: {{ $successData['reference_no'] ?? '-' }}
Payment Date: {{ $successData['payment_date'] ?? '-' }}
{{-- CASE 1B: MANUAL TRANSFER SUBMITTED (PENDING APPROVAL) --}} @else
⏳ AWAITING ADMIN APPROVAL

Payment Proof Submitted Successfully!

Your payment receipt has been recorded. Your renewal / payment is now under review by the parking management team. The pass validity will be updated once approved.

Application Status: Pending Admin Approval
The parking management team will verify your payment receipt. Once approved by the administrator, your season pass will be updated automatically.
Season Pass Code: {{ $successData['pass_code'] ?? '-' }}
Review Status: Awaiting Admin Approval
Invoice No.: {{ $successData['invoice_no'] ?? '-' }}
Carpark Location: {{ $successData['site_name'] ?? '-' }}
Amount Due: RM {{ number_format($successData['total_amount'] ?? 0, 2) }}
Bank Reference No.: {{ $successData['reference_no'] ?? '-' }}
Submitted At: {{ $successData['submitted_at'] ?? '-' }}
@endif
Home / Login
{{-- STATE 2: SEARCH / LOOKUP MODE (WHEN NO PASS IS CURRENTLY SELECTED) --}} @elseif (!$pass)
JLG Metro Season Portal

Find & Pay Season Pass

Enter your vehicle plate number to view pass details and make your payment.

{{-- Search Box Card --}}
@error('searchQuery')
{{ $message }}
@enderror
Examples: WA3514X WXY1234 BQL8139 SP-2610-XXXX
{{-- Not Found Message --}} @if ($hasSearched && empty($searchResults))
No season pass found matching "{{ $searchQuery }}" Please verify your vehicle plate number or IC / SSM number. If you haven't applied for a season pass yet, you can Register for a New Season Pass here.
@endif {{-- Multiple Results Selection --}} @if (!empty($searchResults))
Found {{ count($searchResults) }} matching season pass{{ count($searchResults) > 1 ? 'es' : '' }}:
@foreach ($searchResults as $item)
{{ $item['external_season_id'] }} {{ $item['customer_name'] }} {{ ucfirst($item['customer_type'] ?? 'Individual') }} {{ $item['site']['site_name'] ?? ($item['carpark_name'] ?? 'Site #' . ($item['site_id'] ?? '')) }}
Location: {{ $item['site']['site_name'] ?? ($item['carpark_name'] ?? 'JLG Metro') }} • Bays: {{ $item['no_of_bays'] ?? 1 }} Bay{{ ($item['no_of_bays'] ?? 1) > 1 ? 's' : '' }} • Vehicles: {{ $item['vehicle_no_1'] }}
Current Validity: {{ !empty($item['end_date']) ? \Carbon\Carbon::parse($item['end_date'])->format('d/m/Y') : 'New / Pending' }} {{ ucfirst($item['status'] ?? 'Pending') }}
RM {{ number_format((float) ($item['monthly_rate'] ?? 0), 2) }} / mo
@endforeach
@endif
{{-- New User Prompt Card --}}

Don't have a season pass registered yet? Apply for New Season Pass →

{{-- STATE 3: PASS SELECTED & READY FOR PAYMENT --}} @else {{-- Navigation Back to Search --}}
Pass Selected: {{ $pass->external_season_id }}
{{-- Header --}}

Season Pass Payment & Renewal

@if ($pass->customer_type === 'corporate') Review your season pass details, select renewal duration, and complete payment via Online Gateway (instant activation) or Manual Bank Transfer. @else Review your season pass details, select renewal duration, and complete payment securely via Online Payment Gateway (FPX, Debit/Credit Card, E-Wallet) for instant pass activation. @endif

{{-- Pass Summary Card --}}
Season Pass Details
@php $stBadge = match ($pass->status) { 'active' => 'bg-success text-white', 'approved' => 'bg-info text-white', 'payment_submitted' => 'bg-primary text-white', 'expired' => 'bg-danger text-white', 'terminated' => 'bg-dark text-white', default => 'bg-warning text-dark', }; @endphp Status: {{ ucwords(str_replace('_', ' ', $pass->status)) }}
Pass ID / Application Code: {{ $pass->external_season_id }}
Carpark Location: {{ $pass->carpark_name }}
Customer Name / Category: {{ $pass->customer_name }} {{ ucfirst($pass->customer_type) }}
Number of Bays: {{ $pass->no_of_bays }} Bay{{ $pass->no_of_bays > 1 ? 's' : '' }} @if (!empty($pass->vehicles_data))
@foreach ($pass->vehicles_data as $b => $slots)
Bay #{{ $b }}: @foreach ($slots as $plate) {{ $plate }} @endforeach
@endforeach
@else {{ $pass->vehicle_no_1 }} @endif
@if (!empty($this->newDates['is_backlog'])) Physical Barrier Access Expiry: {{ $pass->end_date ? $pass->end_date->format('d/m/Y') : 'Not yet active' }} Courtesy Access Active @else Current Expiry Date: {{ $pass->end_date ? $pass->end_date->format('d/m/Y') : 'Not yet active' }} @endif
Monthly Rate per Bay: RM {{ number_format($pass->monthly_rate, 2) }}
{{-- Terminated Pass Alert for Customer --}} @if ($pass->status === 'terminated')
This Season Pass Has Been Terminated / Deactivated

This account is deactivated. Automatic LPR barrier access is disabled and renewals are not accepted. If you require parking access, please submit a new application or contact site parking management.

@endif @if ($pass->status !== 'terminated') {{-- Outstanding / Backlog Alert Box for Customer --}} @if (!empty($this->newDates['is_backlog']))
Outstanding Payment Notice Payment Required

Your company has unbilled / backlog parking months that require settlement:

@if (!empty($this->newDates['last_paid_period']))
Last Settled Coverage: {{ $this->newDates['last_paid_period']['month'] }} (ended {{ $this->newDates['last_paid_period']['date'] }})
@endif
Currently Due For Settlement: {{ $this->newDates['month_label'] }} ({{ $this->newDates['start'] }} – {{ $this->newDates['end'] }})
Barrier Access Status: Active until {{ $pass->end_date->format('d/m/Y') }} (Courtesy access granted)
Please complete the payment below to bring your company account up to date. Barrier gate access remains uninterrupted while your invoice/payment is being processed.
@endif {{-- Renewal Duration Selector --}}
@if ($this->isFirstTimeActivation)
1 Month (First-Time Activation) 🔒 Fixed to 1 Month for initial activation
🔒 First-time season pass activation is strictly valid for 1 Month only. Renewal options for 3, 6, or 12 months will be available upon renewal. @else @php $durationOptions = [ 1 => '1 Month', 2 => '2 Months', 3 => '3 Months (Quarterly)', 6 => '6 Months (Half Year)', 12 => '12 Months (1 Year)', ]; @endphp
@foreach ($durationOptions as $m => $mLabel) @endforeach
@endif
Coverage Period for this payment: @if (!empty($this->newDates['is_backlog'])) Outstanding Month @elseif ($pass->renewal_start_override_date) Special Schedule Approved @endif
{{ $this->newDates['month_label'] }}
{{ $this->newDates['start'] }} → {{ $this->newDates['end'] }}
@if ( !empty($this->newDates['is_backlog']) && $pass->end_date && Carbon\Carbon::parse($this->newDates['end_raw'])->isBefore($pass->end_date))
Courtesy barrier access valid until {{ $pass->end_date->format('d/m/Y') }}
@endif
Total Payable Amount:
RM {{ number_format($this->totalAmount, 2) }}
{{-- Proforma Invoice Download Bar --}}
Need an official billing document for company claim or cheque preparation?
@endif
@if ($pass->status !== 'terminated') {{-- Payment Channel Selector Tabs (Online vs Manual) --}}
{{ $pass->customer_type === 'corporate' ? 'Choose Payment Channel' : 'Payment Method' }}
{{-- Option 1: Online Payment --}}
Online Payment Instant Activation
FPX Online Banking, Credit / Debit Card, E-Wallet (eGHL).
✓ Pass validity extended immediately upon payment
{{-- Option 2: Manual Bank Transfer (Corporate Only) --}} @if ($pass->customer_type === 'corporate')
Manual Bank Transfer Requires Approval
Maybank Transfer, Cash Deposit Machine (CDM), Cheque.
• Corporate accounts only (requires receipt upload)
@endif
{{-- CHANNEL A: ONLINE PAYMENT GATEWAY --}} @if ($payment_channel === 'online')

Direct Payment via Payment Gateway

You will be redirected to the secure official payment gateway (FPX Online Banking / Credit / Debit Cards / E-Wallets). Once payment is confirmed, your season pass will be instantly activated / extended.

Total Amount Due: RM {{ number_format($this->totalAmount, 2) }}
New Validity Period: {{ $this->newDates['start'] }} → {{ $this->newDates['end'] }}
Pass Status After Payment: Instant Activation
{{-- Terms Agreement Checkbox --}}
@error('terms_agreed')
{{ $message }}
@enderror
{{-- CHANNEL B: MANUAL BANK TRANSFER --}} @else
{{-- Bank Account Info --}}
Beneficiary Bank Account (Bank Transfer / DuitNow):
Bank Name: MAYBANK ISLAMIC
Account Name: JLG METRO SDN BHD
Account Number: 5510 1234 5678
Amount to Transfer: RM {{ number_format($this->totalAmount, 2) }} ({{ $this->duration_months }} Month{{ $this->duration_months > 1 ? 's' : '' }})
Important Note for Manual Transfer: After uploading your receipt, your payment will be manually verified by the parking management team. The pass validity will be updated upon administrator approval.
{{-- Payment Method --}}
@error('payment_method')
{{ $message }}
@enderror
{{-- Reference Number --}}
Reference or transaction number printed on your transfer receipt. @error('reference_no')
{{ $message }}
@enderror
{{-- File Upload --}}
@php $previewUrl = null; $ext = null; $isImage = false; $isPdf = false; if ($attachment) { try { $ext = strtolower($attachment->getClientOriginalExtension()); $isImage = in_array($ext, [ 'jpg', 'jpeg', 'png', 'webp', 'bmp', 'gif', ]); $isPdf = $ext === 'pdf'; if ($attachment->isPreviewable()) { $previewUrl = $attachment->temporaryUrl(); } } catch (\Throwable $e) { $previewUrl = null; } } @endphp @if (!$attachment)
{{-- Loading --}}
Uploading receipt...
@else {{-- File Uploaded & Pre-submission Preview Card --}}
Receipt Uploaded {{ $attachment->getClientOriginalName() }} {{ round($attachment->getSize() / 1024, 1) }} KB
@if ($isImage && $previewUrl) {{-- Image Live Preview --}}
Receipt Preview
Click image to view full size
@elseif ($isPdf) {{-- PDF Document Preview Card --}}
{{ $attachment->getClientOriginalName() }}
PDF Document
@else {{-- Generic File Preview --}}
{{ $attachment->getClientOriginalName() }}
@endif {{-- Action Buttons to View Preview --}}
@if ($previewUrl) View / Open Receipt in New Tab @endif
{{-- Loading when changing --}}
Updating receipt...
@endif @error('attachment')
{{ $message }}
@enderror
{{-- Terms --}}
@error('terms_agreed')
{{ $message }}
@enderror
{{-- Submit Manual --}}
@endif
@endif @endif