| ID @if ($sortBy === 'id') @if ($sortDirection === 'asc') @else @endif @else @endif | Pass Name | Vehicle Plate @if ($sortBy === 'vehicle_no') @if ($sortDirection === 'asc') @else @endif @else @endif | Validity | Date Range | Amount @if ($sortBy === 'amount') @if ($sortDirection === 'asc') @else @endif @else @endif | Status | Purchased On @if ($sortBy === 'created_at') @if ($sortDirection === 'asc') @else @endif @else @endif | Action |
|---|---|---|---|---|---|---|---|---|
| {{ $purchase->id }} | {{ $purchase->seasonPass->pass_name ?? 'N/A' }} |
@if ($purchase->meta_data)
@php
$meta = is_array($purchase->meta_data)
? $purchase->meta_data
: json_decode($purchase->meta_data, true);
@endphp
@if (isset($meta['old_vehicle_no']) && isset($meta['new_vehicle_no']))
{{ $meta['new_vehicle_no'] }}
(Previously: {{ $meta['old_vehicle_no'] }}) @else {{ $purchase->vehicle_no ?? 'N/A' }} @endif @else {{ $purchase->vehicle_no ?? 'N/A' }} @endif |
{{ $purchase->seasonPass->validity ?? 'N/A' }} | {{ $purchase->start_date?->format('d/m') ?? 'N/A' }} - {{ $purchase->end_date?->format('d/m/Y') ?? 'N/A' }} | {{-- Fix: Changed `price` to `amount` --}} RM {{ number_format($purchase->amount, 2) }} | {{ ucfirst($purchase->status ?? 'N/A') }} | {{ $purchase->created_at?->format('d/m/Y') ?? 'N/A' }} | |
| No Season Pass purchases found. | ||||||||
| ID @if ($sortBy === 'id') @if ($sortDirection === 'asc') @else @endif @else @endif | Vehicle Plate @if ($sortBy === 'vehicle_no') @if ($sortDirection === 'asc') @else @endif @else @endif | Lot Number @if ($sortBy === 'lot_no') @if ($sortDirection === 'asc') @else @endif @else @endif | Validity @if ($sortBy === 'validity') @if ($sortDirection === 'asc') @else @endif @else @endif | Date Range | {{-- Fix: Updated sort_by from price to amount --}} Amount @if ($sortBy === 'amount') @if ($sortDirection === 'asc') @else @endif @else @endif | Status @if ($sortBy === 'status') @if ($sortDirection === 'asc') @else @endif @else @endif | Purchased On @if ($sortBy === 'created_at') @if ($sortDirection === 'asc') @else @endif @else @endif | Action |
|---|---|---|---|---|---|---|---|---|
| {{ $purchase->id }} |
@if ($purchase->meta_data)
@php
$meta = is_array($purchase->meta_data)
? $purchase->meta_data
: json_decode($purchase->meta_data, true);
@endphp
@if (isset($meta['old_vehicle_no']) && isset($meta['new_vehicle_no']))
{{ $meta['new_vehicle_no'] }}
(Previously: {{ $meta['old_vehicle_no'] }}) @else {{ $purchase->vehicle_no ?? 'N/A' }} @endif @else {{ $purchase->vehicle_no ?? 'N/A' }} @endif |
{{ $purchase->lot_no ?? 'N/A' }} | {{ $purchase->privatePass->validity ?? 'N/A' }} | {{ $purchase->start_date?->format('d/m') ?? 'N/A' }} - {{ $purchase->end_date?->format('d/m/Y') ?? 'N/A' }} | {{-- Fix: Changed `price` to `amount` --}} RM {{ number_format($purchase->amount, 2) }} | {{ ucfirst($purchase->status ?? 'N/A') }} | {{ $purchase->created_at?->format('d/m/Y') ?? 'N/A' }} | |
| No Reserved Lot purchases found. | ||||||||