Reservation {{ $reservation->reservation_number }}
@php $statusMap = collect($statusMeta)->keyBy('value'); $meta = $statusMap[$reservation->status->value] ?? null; $hex = $meta['color'] ?? '#6B7280'; $rgb = [ hexdec(substr(ltrim($hex, '#'), 0, 2)), hexdec(substr(ltrim($hex, '#'), 2, 2)), hexdec(substr(ltrim($hex, '#'), 4, 2)), ]; @endphp {{ $meta['label'] ?? ucfirst(str_replace('_',' ',$reservation->status->value)) }}
Client
Name{{ $reservation->user->name ?? '—' }}
Email{{ $reservation->user->email ?? '—' }}
Car
Car@if($reservation->car) {{ $reservation->car->year }} {{ $reservation->car->make }} {{ $reservation->car->model }} @else — @endif
Plate{{ $reservation->car->license_plate ?? '—' }}
Reservation Details
Start
{{ optional($reservation->start_date)->format('Y-m-d') }} {{ optional($reservation->pickup_time)->format('H:i') }}
End
{{ optional($reservation->end_date)->format('Y-m-d') }} {{ optional($reservation->return_time)->format('H:i') }}
Duration
{{ $reservation->total_days }} days
Pickup Location
{{ $reservation->pickup_location ?? '—' }}
Return Location
{{ $reservation->return_location ?? '—' }}
@if($reservation->status === \App\Enums\ReservationStatus::CANCELLED)
Cancelled At
{{ optional($reservation->cancelled_at)->format('Y-m-d H:i') ?? '—' }}
Reason
{{ $reservation->cancellation_reason ?? '—' }}
@endif
Payments
@if($reservation->payments->count() === 0)
No payments recorded.
@else @foreach($reservation->payments as $p) @endforeach
# Amount Method Status Processed
{{ $p->payment_number }} {{ $currency }}{{ number_format((float)$p->amount, 2) }} {{ $p->payment_method->value ?? $p->payment_method }} {{ ucfirst(str_replace('_',' ', $p->status->value ?? $p->status)) }} {{ optional($p->processed_at)->format('Y-m-d H:i') ?? '—' }}
@endif
Totals
Daily Rate{{ $currency }}{{ number_format((float)$reservation->daily_rate, 2) }}
Subtotal{{ $currency }}{{ number_format((float)$reservation->subtotal, 2) }}
Tax{{ $currency }}{{ number_format((float)$reservation->tax_amount, 2) }}
Discount-{{ $currency }}{{ number_format((float)$reservation->discount_amount, 2) }}
Total{{ $currency }}{{ number_format((float)$reservation->total_amount, 2) }}