PARKING PAYMENT RECEIPT
{{ $ticket->vehicle_number }}
Ticket Number:
{{ $ticket->ticket_number }}
Vehicle Category:
{{ $ticket->vehicleCategory->name ?? 'N/A' }}
Entry Time:
{{ $ticket->entry_at ? $ticket->entry_at->format('d/m/Y h:i A') : 'N/A' }}
Exit Time:
{{ $ticket->exit_at ? $ticket->exit_at->format('d/m/Y h:i A') : 'N/A' }}
Total Duration:
{{ (new \App\Services\ParkingBillingService())->formatDuration($ticket->duration_minutes) }}
@php
$billingSvc = new \App\Services\ParkingBillingService();
$graceMins = $ticket->vehicleCategory->grace_period_minutes ?? 15;
$billedHrs = $billingSvc->calculateBilledHours($ticket->duration_minutes, $graceMins);
@endphp
Hours Billed:
{{ $billedHrs }} {{ \Illuminate\Support\Str::plural('Hour', $billedHrs) }}
1st Hour Rate:
৳{{ number_format($ticket->vehicleCategory->first_hour_rate ?: $ticket->vehicleCategory->hourly_rate, 2) }}
2nd Hour Onwards:
৳{{ number_format($ticket->vehicleCategory->hourly_rate, 2) }}/hr
Calculated Charge:
৳{{ number_format($ticket->calculated_amount, 2) }}
@if($ticket->fine_amount > 0)
Fine / Lost Fee:
+৳{{ number_format($ticket->fine_amount, 2) }}
@endif
@if($ticket->discount_amount > 0)
Discount:
-৳{{ number_format($ticket->discount_amount, 2) }}
@endif
TOTAL PAID:
৳{{ number_format($ticket->total_paid, 2) }}
Payment Method:
{{ str_replace('_', ' ', $ticket->payment_method ?? 'cash') }}
Payment Status:
{{ $ticket->payment_status }}
Cashier / Operator:
{{ $ticket->exitUser->name ?? 'System' }}