@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
|
|
@if ($source === 'Booking.com')
Direct Booking@endifHotel Reservation{{$hotelName}} |
|
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' }}
|
|
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}}
|
| {{ $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 |
|
Special Request
{{ $request }}
|
@endif
@if(!empty($comment))
Comment
{{ $comment }}
|
@endif
© Obeo Limited. All rights reserved.