@php use Carbon\Carbon; function formatDate($date) { return Carbon::parse($date)->format('d F Y'); // e.g. 09 July 2025 } function imgToBase64($path) { if (file_exists($path)) { $type = pathinfo($path, PATHINFO_EXTENSION); // e.g. png, jpg $data = file_get_contents($path); $base64 = base64_encode($data); return "data:image/{$type};base64,{$base64}"; } return ''; } $logoData = imgToBase64(public_path('images/obeologo.png')); $bookingData = imgToBase64(public_path('images/booking.png')); $expediaData = imgToBase64(public_path('images/expedia.png')); $airbnbData = imgToBase64(public_path('images/airbnb.png')); $cTripData = imgToBase64(public_path('images/ctrip.png')); $makeData = imgToBase64(public_path('images/make.png')); @endphp {{$guest_name}}
Logo
@if ($source === 'Booking.com') Reservation Source @elseif ($source === 'Expedia') Reservation Source @elseif ($source === 'Airbnb') Reservation Source @elseif ($source === 'Ctrip') Reservation Source @elseif ($source === 'Makemytrip') Reservation Source @else

Direct Booking

@endif

Hotel Reservation

{{$hotelName}}

Reservation Information

Guest Name

{{ $guest_name }}
Reservation No
{{ $reservation_no }}
Obeo Sl
{{ $obeo_sl }}
Check In
{{formatDate( $check_in) }}
Check Out
{{ formatDate( $check_out) }}
Booked on
{{ formatDate( $reservation_date) }}
Total Room
{{ is_array($rooms) ? count($rooms) : 'N/A' }} Rooms
Total Nights
{{ $total_night }} Nights
Total Adults
{{ $total_adult }} Adults
Childrens & Age ({{ count($children) }})
@if (is_array($children) && count($children) > 0) {{ collect($children)->pluck('age')->implode(', ') }} years @else N/A @endif
Phone Number
{{ $phone ?? 'N/A' }}
Email
{{ $email ?? 'N/A' }}
Payment & Pricing
Price (USD)
${{$totalUsd}}
Exchange Rate
{{$rate}} TK
Total Price (BDT)
{{$totalBdt}} TK
Total Advance
{{$total_advance}} TK
Total Pay In Hotel
{{$totalPayInHotel}} TK
Payment Method
{{$payment_method}}
Room Wise Information & Price Details
@foreach($rooms as $room) @php $roomName = $room['name']; $totalRoom = $room['total_room']; $totalNight = $room['total_night']; $totalPrice = (float)$room['total_price']; $rate = (float) $rate; $baseRateCount = $totalRoom * $totalNight; $currency = $room['currency']['currency']; $totalPriceInBdt = $currency === 'USD' ? $totalPrice * $rate : $totalPrice; $totalBasePriceForRoom = $totalPriceInBdt / $baseRateCount; $totalRoomPrice = $totalRoom * $totalBasePriceForRoom; $totalNightPrice = $totalRoomPrice * $totalNight; @endphp
{{ $roomName }} ({{ $totalRoom }}) ({{ $totalRoom }} * {{ number_format($totalBasePriceForRoom, 0) }}) {{ number_format($totalRoomPrice, 0) }} TK
Total Night ({{$totalNight}}) ({{ $totalNight }} * {{ number_format($totalRoomPrice, 0) }}) {{ number_format($totalNightPrice, 0) }} TK
Total Amount {{ number_format($totalNightPrice, 0) }} TK
@endforeach
@if(!empty($request) || !empty($comment))
Comments & Requests
@if(!empty($request)) @endif @if(!empty($comment)) @endif
Special Request
{{ $request }}
Comment
{{ $comment }}
@endif

© Obeo Limited. All rights reserved.