{{-- Page Header & Breadcrumbs --}}
Parking Transaction Report
{{-- Filters Card --}}
{{-- From Date --}}
{{-- To Date --}}
{{-- Site Filter --}}
{{-- Payment Method / Card Type --}}
{{-- Vehicle Type --}}
{{-- Search (Plate / Card No) --}}
{{-- Action Buttons & Total Row --}}
{{-- Filter Button --}} {{-- Clear Button --}} {{-- Export Excel --}} {{-- Export PDF --}}
{{-- Total Amount & Rows selector --}}
Total : RM {{ number_format($totalAmount, 2) }}
@if ($selectedDate !== null)
Rows:
@endif
{{-- Data Table Card: Daily Summary OR Day Details --}}
@if ($selectedDate === null) {{-- MODE 1: DAILY SUMMARY TABLE --}}
Daily Parking Transaction Summary

Total revenue and transaction count grouped by day. Click View Details to see individual records.

Showing all {{ $dailySummary->count() }} days
@forelse ($dailySummary as $row) @php $carbonDate = \Carbon\Carbon::parse($row->trx_date); @endphp @empty @endforelse @if ($dailySummary->isNotEmpty()) @endif
Site Name
Transaction Date @if ($sortDirection === 'asc') @else @endif
Car Motorcycle TnG (RM/Count) Cash (RM/Count) Credit Card (RM/Count) Ewallet (RM/Count) Setel (RM/Count) Total Gross Amount (RM/Count) Action
{{ $row->site_name }}
{{ $carbonDate->format('d/m/Y') }} {{ $carbonDate->format('D') }}
{{ $row->car_count }} {{ $row->motorcycle_count }} {{ number_format($row->tng_amount, 2) }}({{ $row->tng_count }}) {{ number_format($row->cash_amount, 2) }}({{ $row->cash_count }}) {{ number_format($row->card_amount, 2) }}({{ $row->card_count }}) {{ number_format($row->ewallet_amount, 2) }}({{ $row->ewallet_count }}) {{ number_format($row->setel_amount, 2) }}({{ $row->setel_count }}) {{ number_format($row->total_amount, 2) }} ({{ $row->total_count }})

No parking records found matching this filter.

Total {{ number_format($totalCars) }} {{ number_format($totalMotors) }} {{ number_format($totalTng, 2) }}({{ $totalTngCount }}) {{ number_format($totalCash, 2) }}({{ $totalCashCount }}) {{ number_format($totalCards, 2) }}({{ $totalCardsCount }}) {{ number_format($totalEwallets, 2) }}({{ $totalEwalletsCount }}) {{ number_format($totalSetel, 2) }}({{ $totalSetelCount }}) {{ number_format($totalAmount, 2) }} ({{ $totalCount }}) -
@else {{-- MODE 2: DAY DETAILED TRANSACTIONS TABLE --}}
Transactions on {{ \Carbon\Carbon::parse($selectedDate)->format('d/m/Y (l)') }}
Showing all transactions recorded on this day.
Day Total: RM {{ number_format($selectedDateTotal, 2) }} ({{ $selectedDateCount }} records)
@forelse ($transactions as $row) @empty @endforelse
Site Name @if ($sortField === 'site_id') {{ strtoupper($sortDirection) }} @endif
Plate / Card No Vehicle Type Terminal Exit Date In
Date Out @if ($sortField === 'transaction_date_out') {{ strtoupper($sortDirection) }} @endif
Payment Method
Amount (RM) @if ($sortField === 'amount') {{ strtoupper($sortDirection) }} @endif
{{ optional($row->site)->site_name ?? 'Site #' . $row->site_id }}
@if ($row->car_plate_no || $row->vehicle_plate_no) {{ $row->car_plate_no ?: $row->vehicle_plate_no }} @endif @if ($row->card_no) {{ $row->card_no }} @endif
@if (strtolower($row->vehicle_type ?? '') === 'car') Car @elseif (strtolower($row->vehicle_type ?? '') === 'motorcycle') Motorcycle @else {{ $row->vehicle_type ?: '-' }} @endif {{ $row->device_id_out ?: '-' }} {{ optional($row->transaction_date_in)?->format('d/m/Y H:i:s') ?: '-' }} {{ optional($row->transaction_date_out)?->format('d/m/Y H:i:s') }} @php $badgeClass = match ($row->card_type) { 'TNG' => 'bg-primary-subtle text-primary border-primary-subtle', 'TnGLPR' => 'bg-info-subtle text-info border-info-subtle', 'VISA', 'MasterCard' => 'bg-success-subtle text-success border-success-subtle', 'Setel' => 'bg-warning-subtle text-warning border-warning-subtle', default => 'bg-light text-dark', }; $methodLabel = $row->card_type === 'TnGLPR' ? 'TnG Ewallet' : ($row->card_type ?: 'Unknown'); @endphp {{ $methodLabel }} RM {{ number_format((float) ($row->amount ?? 0), 2) }}

No transaction records found for this date.

@if ($transactions && $transactions->hasPages()) @endif @endif