@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

الفندق

قسيمة

شركة ريلتي للسياحة ذ.م.م

عنوان: طريق أبو بكر الصديق، حي النهضة، بريدة، المملكة العربية السعودية 52389

دولة: KSA

بريد إلكتروني: support@rehlte.com


اسم الضيف

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

قسيمة حجز - فندق
مرجع الحجز : {{ $bookingDetail->booking_ref ?? ''}}
معرف البائع : {{ $bookingDetail->supplier_booking_ref ?? ''}}
رقم تأكيد الفندق : يجب أن يتم تقديم المشورة
تاريخ الحجز : {{ \Carbon\Carbon::parse($bookingDetail->booking_date)->format('Y-m-d') ?? '' }}
@php $propertyType = 'الفندق'; if($hotelDetails->hotelDetails->PropertyType){ $propertyType = $hotelDetails->hotelDetails->PropertyType; if($propertyType == 'Hotel'){ $propertyType = 'الفندق' ; }elseif($propertyType == 'Apartment'){ $propertyType = 'شقة' ; }else{ $propertyType = 'الفندق'; } } @endphp
@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) {{ 'تحقق في :' }} @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 {{ 'تحقق في :' }} {{ $searchDetails->checkInDate ?? $searchDetails->stay->checkIn }} @endif
  • @if ($bookingDetail?->customer_language_code == App\Enums\Locale::English->value) {{ 'الدفع :' }} @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 {{ 'الدفع :' }} {{ $searchDetails->checkOutDate ?? $searchDetails->stay->checkOut }} @endif
  • عدد الليالي : {{ $numberofdays ?? '' }}
  • المسافرون : {{ $adult + $child }}
Logo {{ $propertyType }}
الوحدات أنواع الغرف الكبار أطفال الأعمار خطة وجبة
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' }}
ملاحظات العميل

{{ '' }}

@php $bookingRemarks = ''; $cancellationPolicies; if (!empty($cancellationPolicies) && !empty($cancellationPolicies->BookingRemarks)) { $bookingRemarks = $cancellationPolicies->BookingRemarks; } // Detect if the text contains Arabic letters $isArabic = preg_match('/\p{Arabic}/u', $bookingRemarks); // Set direction and alignment $dir = $isArabic ? 'rtl' : 'ltr'; $align = $isArabic ? 'right' : 'left'; @endphp @if($bookingRemarks)
معلومات هامة :
{!! $bookingRemarks !!}
@endif
رسم خريطة :

@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