{{-- ══════════════════════════════════════════════
HEADER
══════════════════════════════════════════════ --}}
@php
$logoPath = public_path('uploads/site/' . $mailConfig->logo);
$logoBase64 = file_exists($logoPath)
? 'data:image/' . pathinfo($logoPath, PATHINFO_EXTENSION) . ';base64,' . base64_encode(file_get_contents($logoPath))
: '';
@endphp
|
أجياد الدولية للسفر والسياحة
AJYAD INTERNATIONAL TRAVEL & TOURISM
C.R.1161992 · P.O Box 202, Postal Code 101, City Center
Tel: 24511355 / 98583083 · Email: op@ajyadintl.com
|
|
{{-- ══════════════════════════════════════════════
BOOKING CONFIRMATION BANNER
Booked By (left) | BOOKING CONFIRMATION + ID + Date (right)
══════════════════════════════════════════════ --}}
|
Booked By
{{ $booked_by }}
{{ $booked_email }}
|
RECEIPT
| Booking ID |
{{ $booking->booking_id }} |
| Booking Date |
{{ \Carbon\Carbon::parse($booking->booking_date)->format('d-m-Y') }} |
|
|
✓ {{ ucfirst($booking->status) }}
|
|
|
|
{{-- ══════════════════════════════════════════════
SECTION 1 — BOOKING DETAILS
══════════════════════════════════════════════ --}}
|
Booking Details
|
| Check-in |
{{ \Carbon\Carbon::parse($booking->checkin)->format('d-m-Y H:i') }}
|
| Check-out |
{{ \Carbon\Carbon::parse($booking->checkout)->format('d-m-Y H:i') }}
|
| Guests |
{{ $totalAdults }} Adult{{ $totalAdults != 1 ? 's' : '' }}@if($totalChildren > 0), {{ $totalChildren }} Child{{ $totalChildren != 1 ? 'ren' : '' }}@endif
|
| Reservation |
{{ $roomCount }} Room{{ $roomCount != 1 ? 's' : '' }} · {{ $nights }} Night{{ $nights != 1 ? 's' : '' }}
|
@if(!empty($roomDescription))
| Room Type |
{{ $roomDescription }} |
@endif
@if(!empty($boardingDetails))
| Meal Plan |
{{ implode(', ', $boardingDetails) }} |
@endif
|
{{-- ══════════════════════════════════════════════
SECTION 2 — PASSENGER DETAILS TABLE
Columns: # | Full Name | Type | Age | Room
══════════════════════════════════════════════ --}}
|
Passenger Details
|
{{-- Header --}}
| # |
Full Name |
Type |
Age |
Room |
@foreach($allPaxes as $idx => $pax)
| {{ $idx + 1 }} |
{{ trim(($pax['title'] ?? '') . ' ' . ($pax['name'] ?? '') . ' ' . ($pax['surname'] ?? '')) }}
|
@if(($pax['type'] ?? '') === 'AD')
Adult
@else
Child
@endif
|
{{ !empty($pax['age']) ? $pax['age'] . ' yrs' : '—' }}
|
Room {{ $pax['room_no'] }}
|
@endforeach
|
{{-- ══════════════════════════════════════════════
SECTION 3 — PRICE BREAKUP TABLE
Columns: Description | Amount
══════════════════════════════════════════════ --}}
|
Price Breakup
|
{{-- Header --}}
| Description |
Amount ({{ $booking->currency }})
|
{{-- Base price (price minus tax) --}}
|
Hotel Charges
|
{{ number_format($price - $tax, 2) }}
|
{{-- Subtotal --}}
|
Subtotal
|
{{ number_format($price - $tax, 2) }}
|
{{-- Tax --}}
@if($tax > 0)
|
Tax
|
{{ number_format($tax, 2) }}
|
@endif
{{-- Total --}}
|
Total
|
{{ $booking->currency }} {{ number_format($price, 2) }}
|
@if($tax > 0)
*Prices exclusive of applicable taxes
@endif
|
|
{{ $booking->hotel_name }}
@if(!empty($booking->city_name)), {{ $booking->city_name }}@endif
@if(!empty($booking->hotel_address))
{{ $booking->hotel_address }}
@endif
|
{{-- ══════════════════════════════════════════════
NOTES
══════════════════════════════════════════════ --}}
|
Thank you for choosing {{ $mailConfig->title ?? config('app.name') }}. We look forward to welcoming you :)
Please carry a valid photo ID at check-in.
|
{{-- ══════════════════════════════════════════════
FOOTER
══════════════════════════════════════════════ --}}
|
@if(!empty($mailConfig->phone)){{ $mailConfig->phone }} · @endif
© {{ date('Y') }} {{ $mailConfig->title ?? config('app.name') }}.
This is a system-generated booking confirmation.
|