Barcode Serial
{{ $ticket->barcode }}
Vehicle Category
{{ $ticket->vehicleCategory->name ?? 'N/A' }}
Customer Type
{{ $ticket->customer_type }}
Entry Date & Time
{{ $ticket->entry_at->format('d M, Y h:i A') }}
Exit Date & Time
{{ $ticket->exit_at ? $ticket->exit_at->format('d M, Y h:i A') : 'Still Parked' }}
Duration
{{ (new \App\Services\ParkingBillingService())->formatDuration($ticket->duration_minutes ?: $ticket->entry_at->diffInMinutes(now())) }}
Billed Hours
@php
$svc = new \App\Services\ParkingBillingService();
$mins = $ticket->duration_minutes ?: $ticket->entry_at->diffInMinutes(now());
$grace = $ticket->vehicleCategory->grace_period_minutes ?? 15;
$bHrs = $svc->calculateBilledHours($mins, $grace);
@endphp
Base Calculated Amount:
৳{{ number_format($ticket->calculated_amount, 2) }}
Fine / Lost Ticket Charges:
+৳{{ number_format($ticket->fine_amount, 2) }}
Discount Allowed:
-৳{{ number_format($ticket->discount_amount, 2) }}
Total Amount Paid:
৳{{ number_format($ticket->total_paid, 2) }}
@if($ticket->monthlyCustomer)