Logo

@if(isset($isAdmin) && $isAdmin) Hello Admin @else Hello {{ $user->name }} @endif

@if(isset($isAdmin) && $isAdmin) New Hotel Booking has been Made @else Your Hotel Booking Confirmation @endif

Hotel Details:

Hotel: {{ $hotel->title ?? 'Hotel Name Not Available' }}

Address: {{ $hotel->extra_field_18 ?? 'Address Not Available' }}

Type: {{ $hotel->extra_field_23 ?? 'N/A' }} {{ $hotel->extra_field_2 ?? 'N/A' }}


Booking Information

Booking ID: {{ $booking->id }}

Travelling From: {{ $booking->travelling_from }}

Check-in: {{ $booking->check_in }}

Check-out: {{ $booking->check_out }}

Adults: {{ $booking->adults }}

Childrens: {{ $booking->childrens }}

Rooms: {{ $booking->rooms }}

Total Amount: ${{ $booking->price }}

Payment Method: {{ $booking->payment_via }}

Payment Status: {{ $booking->status ?? 'Pending' }}

@php // Handle guest_details whether it's JSON string or array $guestDetails = $booking->guest_details; if (is_string($guestDetails)) { $guestDetails = json_decode($guestDetails, true); } // Ensure it's an array if (!is_array($guestDetails)) { $guestDetails = []; } @endphp

Guest Details

@if(is_array($guestDetails) && !empty($guestDetails)) @if(isset($guestDetails[0]))

Name: {{ $guestDetails[0] ?? 'N/A' }}

Email: {{ $guestDetails[1] ?? 'N/A' }}

Phone: {{ $guestDetails[2] ?? 'N/A' }}

@else @foreach($guestDetails as $index => $guest)

Guest {{ $index + 1 }}: {{ is_array($guest) ? json_encode($guest) : $guest }}

@endforeach @endif @else

Guest details not available.

@endif

If you have any questions, feel free to contact us.
We look forward to hosting you!

Warm Regards,
The {{ config('app.name') }} Team
{{url('/')}}