@php /** @var \App\Models\invoice\InvoiceServices|null $invoiceService */ /** @var \App\Models\Profile\Profile|null $profile */ /** @var \App\Models\General\Companies|null $company */ /** @var \App\Models\Profile\Customer|null $customer */ /** @var \App\Models\User|null $executive */ $profileNumber = $profile?->profile_number ?? ''; $customerName = $customer?->full_name ?? ''; $customerPhone = $customer?->phone ?? ''; $customerEmail = $customer?->email ?? ''; $companyName = $company?->currentTranslation?->name_company ?? $company?->name_company ?? 'Company'; $logoUrl = $company && $company->invoice_logo && file_exists(public_path($company->invoice_logo)) ? public_path($company->invoice_logo) : ($company?->logo ?? null); $accommodationType = $invoiceService?->reservation?->accommodation?->type ?? 'hotel'; // hotel | cruise $accommodationTypeLabel = $accommodationType === 'cruise' ? 'Accommodation Cruise' : 'Accommodation Hotel'; $serviceTypeLabel = $accommodationType === 'cruise' ? 'Cruise' : 'Hotel'; // Rooms date range (Check-In / Check-Out) $rooms = $invoiceService?->reservation?->rooms ?? collect(); $rawCheckIn = $rooms->min('check_in'); $rawCheckOut = $rooms->max('check_out'); $checkIn = $rawCheckIn ? \Carbon\Carbon::parse($rawCheckIn)->format('Y-m-d') : ''; $checkOut = $rawCheckOut ? \Carbon\Carbon::parse($rawCheckOut)->format('Y-m-d') : ''; $firstRoom = $rooms->first(); $roomTypeName = $firstRoom?->roomType?->currentTranslation?->name ?? $firstRoom?->roomType?->name ?? '—'; $mealPlanName = $firstRoom?->mealPlan?->currentTranslation?->name ?? $firstRoom?->mealPlan?->name ?? '—'; @endphp
@if($logoUrl) Logo @else
@endif
{{ $companyName }}

{{ $accommodationTypeLabel }} VOUCHER

Issued: {{ now()->format('Y-m-d') }}

Customer Information
Primary Guest
{{ $customerName }}
Profile Number
{{ $profileNumber }}
Contact
{{ trim($customerPhone . ' / ' . $customerEmail, ' /') }}
Booking Reference
Service Type
{{ $serviceTypeLabel }}
Confirmation #
{{ $invoiceService?->reserve_number ?? '' }}
Status
{{ $invoiceService?->status ?? 'Confirmed' }}
Service Itinerary (Hotel/Cruise)
Hotel / Nile Cruise
{{ $invoiceService?->reservation?->accommodation?->currentTranslation?->name ?? $invoiceService?->reservation?->accommodation?->name ?? '' }}
Check-In | Check-Out
{{ $checkIn }} | {{ $checkOut }}
Room Type
{{ $roomTypeName }}
Meal Type
{{ $mealPlanName }}
Assigned Specialist
{{ $executive?->name ?? '' }}
@if ($executive)
Employee ID: #{{ $executive->employee_number ?? $executive->id }}
{{ $executive->email }}
@endif

Authorized Signature

Please present this voucher and a valid ID at check-in. {{ $company ? trim(($company->companie_phone ?? '') . ' | ' . ($company->companie_email ?? ''), ' |') : 'Support' }}