@include('admin.booking.includes.styles.voucher') @php if ($editedHotelDetails) { $editedHotelDetails = json_decode($editedHotelDetails); $editedBookingDetails = json_decode($editedHotelDetails[0]->booking_details); $userDetails = $editedBookingDetails->userDetails; $searchDetails = $editedBookingDetails->searchDetails; $hotelDetails = $editedBookingDetails->hotelDetails; $checkindate = strtotime($searchDetails->checkInDate ?? $searchDetails->stay->checkIn); $checkoutdate = strtotime($searchDetails->checkOutDate ?? $searchDetails->stay->checkOut); $cancellationPolicies = $hotelDetails->cancellationPolicy ?? []; $datediff = $checkoutdate - $checkindate; $numberofdays = round($datediff / (60 * 60 * 24)); $adult = 0; $child = 0; $room = 0; $roomtype = ""; $boardName = ""; $rateCommment = ""; $childAges = ""; $occupancyD = $searchDetails->occupancies; $adult = $occupancyD[0]->adults ?? 0; $child = $occupancyD[0]->children ?? 0; $hotel_image = $hotelDetails->hotelDetails->Photos[0] ?? ($hotelDetails->hotelDetails->DefaultImage->FullSize ?? ''); } @endphp

{{ $invoiceSettings->title_en ?? 'Rehlte For Tourism LLC' }}

Address: {{ $invoiceSettings->address_en ?? 'Abu Bakr Siddiq Road, Al Nahdah District, Buraydah, Saudi Arabia 52389' }}

Country: {{ $invoiceSettings->city_en ?? 'KSA' }}

Email: {{ $invoiceSettings->email ?? 'support@rehlte.com' }}

Hotel

Voucher


Guest Name

{{ ucwords($userDetails->title ?? '') }} {{ $userDetails->firstName ?? '' }}  {{ $userDetails->lastName ?? ''}}

Booking Voucher - Hotel
@if ($bookingDetail?->customer_language_code == App\Enums\Locale::English->value) @else @endif
Booking Reference: {{ $bookingDetail->booking_ref ?? ''}}
Vendor ID: {{ $bookingDetail->supplier_booking_ref ?? ''}}
Hotel Confirmation No: To Be Advised
Booking Date: {{ \Carbon\Carbon::parse($bookingDetail->booking_date)->format('d-m-Y') ?? '' }}
Booking Date: {{ $bookingDetail->booking_date ?? '' }}
Logo {{ $hotelDetails->hotelDetails->PropertyType ?? '' }}
@php $starRating = $hotelDetails->hotelDetails->StarRating ?? 4; @endphp

{{ $hotelDetails->hotelDetails->DisplayName ?? '' }} @for ($i = 0; $i < $starRating; $i++) @endfor

{{ $hotelDetails->hotelDetails->Address ?? ''}}

  • @if ($bookingDetail?->customer_language_code == App\Enums\Locale::English->value) {{'Check In:'}} @if(!empty($searchDetails->checkInDate)) {{ \Carbon\Carbon::parse($searchDetails->checkInDate)->format('d-m-Y') }} @else {{ \Carbon\Carbon::parse($searchDetails->stay->checkIn)->format('d-m-Y') }} @endif @else {{'Check In: '}} {{ $searchDetails->checkInDate ?? $searchDetails->stay->checkIn }} @endif
  • @if ($bookingDetail?->customer_language_code == App\Enums\Locale::English->value) {{'Check Out:'}} @if(!empty($searchDetails->checkOutDate)) {{ \Carbon\Carbon::parse($searchDetails->checkOutDate)->format('d-m-Y') }} @else {{ \Carbon\Carbon::parse($searchDetails->stay->checkOut)->format('d-m-Y') }} @endif @else {{'Check Out: '}} {{ $searchDetails->checkOutDate ?? $searchDetails->stay->checkOut }} @endif
  • Number of Nights: {{ $numberofdays ?? '' }}
  • Travellers: {{ $adult+$child }}
Units Room Types Adults Children Ages Meal Plan
1

{{ $hotelDetails->selectedRooms->RoomType ?? 'N/A' }} - {{ $hotelDetails->selectedRooms->RoomName ?? 'N/A' }} - {{ $hotelDetails->selectedRooms->RoomClass ?? 'N/A' }}

{{ $adult ?? 0 }} {{ $child ?? 0 }} {{ is_array($hotelDetails->selectedRooms->KidsAges ?? null) && count($hotelDetails->selectedRooms->KidsAges) > 0 ? implode(', ', $hotelDetails->selectedRooms->KidsAges) : '-' }} {{ $hotelDetails->selectedRooms->RoomBasis ?? 'N/A' }}
Client's Remarks

{{ '' }}

@php $bookingRemarks = ''; $cancellationPolicies; if (!empty($cancellationPolicies) && !empty($cancellationPolicies->BookingRemarks)) { $bookingRemarks = $cancellationPolicies->BookingRemarks; } @endphp @if($bookingRemarks)
Important Information :
{!! $bookingRemarks !!}
@endif
Map :

@php $latitude = $hotelDetails->hotelDetails->GeoLocation->Latitude ?? ''; $longitude = $hotelDetails->hotelDetails->GeoLocation->Longitude ?? ''; $googleMapKey = env('GOOGLE_MAP_KEY'); $customMarkerUrl = asset('storage/images/general/map-marker2.png'); $mapImageUrl = "https://maps.googleapis.com/maps/api/staticmap?center={$latitude},{$longitude}&zoom=14&size=600x300&&markers=icon:{$customMarkerUrl}%7C{$latitude},{$longitude}&key={$googleMapKey}"; @endphp Location Map