{{-- Standalone printable hotel voucher. Opens in a new tab and fires the browser print dialog, so the user can save it as PDF without a server-side PDF renderer. Swap the controller to Pdf::loadView() if dompdf is installed. --}} @php $statusClass = match($booking->status) { 'Confirmed' => 'status-confirmed', 'Booked' => 'status-booked', 'Cancelled' => 'status-cancelled', default => 'status-default', }; $nights = max(1, (int) $booking->nights); $perNight = (float) $booking->amount / $nights; $location = collect([$booking->hotel?->city, $booking->hotel?->country])->filter()->join(', '); $brand = settings('name') ?: 'Travelio'; @endphp {{ $voucherNo }} {{ ___('admin.hotel_voucher_68a406') }}
{{ $brand }} {{ settings('email') }}@if(settings('email') && settings('phone')) · @endif{{ settings('phone') }}

{{ ___('admin.hotel_voucher_10aec7') }}

{{ $voucherNo }}
{{ admin_label($booking->status) }}
{{ ___('admin.guest_face83') }}
{{ $booking->guest_name }}
{{ ___('admin.hotel_9c4ba7') }}
{{ $booking->hotel?->name ?? '—' }}
{{ ___('admin.location_d219c6') }}
{{ $location ?: '—' }}
{{ ___('admin.room_type_478cc1') }}
{{ $booking->hotelRoom->room_type ?? '—' }}
{{ ___('admin.booking_reference_9086c0') }}
{{ $booking->booking_no }}
{{ ___('admin.check_in_48431e') }}
{{ $booking->check_in?->translatedFormat('d M Y') ?? '—' }}
{{ ___('admin.check_out_f4e37e') }}
{{ $booking->check_out?->translatedFormat('d M Y') ?? '—' }}
{{ ___('admin.total_amount_c1ed4a') }}
{{ currency_symbol() }}{{ number_format((float) $booking->amount) }}
{{ currency_symbol() }}{{ number_format($perNight) }} × {{ $nights }} {{ ___('admin.night_1be2a4') }}{{ $nights === 1 ? '' : 's' }}
{{ ___('admin.please_note_b092b1') }} {{ ___('admin.present_this_voucher_together_with_a_valid_photo_id_at__eafd93') }} {{ $brand }} {{ ___('admin.before_your_travel_date_d17572') }}