{{-- 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
{{ ___('admin.hotel_voucher_10aec7') }}