|
Site Name
@if ($sortField === 'site_id')
{{ strtoupper($sortDirection) }}
@endif
|
Vehicle Plate No |
Vehicle Type
@if ($sortField === 'vehicle_type')
{{ strtoupper($sortDirection) }}
@endif
|
Entry Gate | Exit Gate | Entry Date | Exit Date | Card No | {{--
Date In
@if ($sortField === 'transaction_date_in')
{{ strtoupper($sortDirection) }}
@endif
| --}}
Card Type
@if ($sortField === 'card_type')
{{ strtoupper($sortDirection) }}
@endif
|
Total Amount (RM)
@if ($sortField === 'amount')
{{ strtoupper($sortDirection) }}
@endif
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $t->site->site_name ?? '-' }} | {{ $t->vehicle_plate_no ?? '-' }} | {{ $t->vehicle_type ?? '-' }} | {{ $t->device_id_in ?: '-' }} | {{ $t->device_id_out ?: '-' }} | {{ $t->transaction_date_in ? \Carbon\Carbon::parse($t->transaction_date_in)->format('d/m/Y H:i') : '-' }} | {{ $t->transaction_date_out?->format('d/m/Y H:i') }} | {{ $t->card_no ?? '-' }} | {{--{{ $t->transaction_date_in?->format('d/m/Y H:i') }} | --}}@php $cardColors = [ 'TNG' => 'primary', 'Visa' => 'warning', 'MasterCard' => 'danger', 'Setel' => 'success', 'Credit Card' => 'warning', 'E-Wallet' => 'danger', 'Cash' => 'primary', 'Others' => 'primary', 'TnGLPR' => 'primary', 'Free Parking' => 'info', 'Season Parking' => 'secondary', ]; $cardType = data_get($t, 'card_type'); $cardLabels = [ 'TnGLPR' => 'TnG Ewallet', ]; @endphp {{ $cardLabels[$cardType] ?? $cardType }} | {{ number_format((float) $t->amount, 2) }} | |
| No records found | |||||||||||