Ticket #{{ $ticket->ticket_number }} {{ $ticket->status }}

Vehicle License Plate: {{ $ticket->vehicle_number }} @if($ticket->monthlyCustomer) ID: {{ $ticket->monthlyCustomer->customer_code }} @endif

@if($ticket->status === 'parked') Print Barcode Pass @elseif($ticket->status === 'completed' || $ticket->status === 'lost') Print POS Receipt @endif
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

Vehicle & Ticket Overview

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 {{ $bHrs }} {{ \Illuminate\Support\Str::plural('Hour', $bHrs) }}
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)

Monthly Subscriber: {{ $ticket->monthlyCustomer->name }}

Customer ID: {{ $ticket->monthlyCustomer->customer_code }} • Mobile: {{ $ticket->monthlyCustomer->mobile }}

View Customer Profile
@endif
@if($ticket->lostTicketRecord)

Lost Ticket Investigation Log

Driver Name: {{ $ticket->lostTicketRecord->driver_name }}
Driver Mobile: {{ $ticket->lostTicketRecord->driver_mobile }}
NID / License Proof: {{ $ticket->lostTicketRecord->id_proof_number ?? 'N/A' }}
Fine Assessed: ৳{{ number_format($ticket->lostTicketRecord->fine_amount, 2) }}
Notes:

{{ $ticket->lostTicketRecord->notes }}

@endif

Audit Log

Entry Operator: {{ $ticket->entryUser->name ?? 'System' }}
Exit Operator: {{ $ticket->exitUser->name ?? 'N/A' }}
@if($ticket->cancelledBy)
Cancelled By: {{ $ticket->cancelledBy->name }}

Reason: "{{ $ticket->cancellation_reason }}"

@endif
@if($ticket->status === 'parked')

Operational Controls

Report / Process Lost Ticket @if(Auth::user()->hasAnyRole(['admin', 'supervisor']))
@csrf
@endif
@endif