{{-- Header --}}
@if($restaurant && $restaurant->logo_url)
@endif
|
{{ $companyTitle }}
@if($companyAddress)
{{ $companyAddress }}
@endif
|
@if($companyPhone)
{{ __('hotel::modules.reservation.emailContactPhone') }}: {{ $companyPhone }}
@endif
@if($companyEmail)
{{ __('hotel::modules.reservation.emailContactEmail') }}: {{ $companyEmail }}
@endif
@if($companyWebsite)
{{ __('hotel::modules.reservation.emailContactWebsite') }}: {{ $companyWebsite }}
@endif
|
|
{{-- Booking overview --}}
{{ __('hotel::modules.reservation.emailBookingId') }} {{ $reservation->reservation_number }}
|
{{ __('hotel::modules.reservation.emailArrivalDateTime') }} {{ $arrivalAt ?: '—' }}
|
{{ __('hotel::modules.reservation.emailDepartureDateTime') }} {{ $departureAt ?: '—' }}
|
{{ __('hotel::modules.reservation.emailNights') }} {{ $nights }} {{ $nights === 1 ? __('hotel::modules.reservation.emailNightSingular') : __('hotel::modules.reservation.emailNightPlural') }}
|
{{ __('hotel::modules.reservation.emailCheckInActual') }} {{ $actualCheckInStr }}
|
{{ __('hotel::modules.reservation.status') }} {{ $statusLabel }}
|
|
{{-- Customer --}}
|
{{ __('hotel::modules.reservation.emailCustomerSection') }}
| {{ __('hotel::modules.reservation.emailCustomerName') }} |
{{ $guest?->full_name ?? '—' }} |
| {{ __('hotel::modules.reservation.emailCustomerAddress') }} |
{{ $guest?->address ? $guest->address : '—' }} |
| {{ __('hotel::modules.reservation.emailMobile') }} |
{{ $guest?->phone ?? '—' }} |
|
{{-- Rooms --}}
|
{{ __('hotel::modules.reservation.emailRoomsSection') }}
|
| {{ __('hotel::modules.reservation.emailAccommodationType') }} |
{{ __('hotel::modules.reservation.emailRoomNumber') }} |
{{ __('hotel::modules.reservation.emailNoOfAdults') }} |
{{ __('hotel::modules.reservation.emailNoOfChildren') }} |
{{ __('hotel::modules.reservation.emailPricePerNight') }} |
{{ __('hotel::modules.reservation.total') }} |
@forelse($reservation->reservationRooms as $rr)
| {{ $rr->roomType?->name ?? '—' }} |
{{ $rr->room?->room_number ?? '—' }} |
{{ $reservation->adults ?? 0 }} |
{{ $reservation->children ?? 0 }} |
{{ currency_format($rr->rate ?? 0) }} |
{{ currency_format($rr->total_amount ?? 0) }} |
@empty
| {{ __('hotel::modules.reservation.noRoomsSelected') }} |
@endforelse
|
{{-- Extras --}}
|
{{ __('hotel::modules.reservation.emailExtrasSection') }}
|
@forelse($reservation->reservationExtras as $re)
|
{{ $re->extraService?->name ?? '—' }}
@if(($re->quantity ?? 0) > 1)
/ {{ __('hotel::modules.reservation.quantityShort') }} {{ $re->quantity }}
@endif
/ {{ currency_format($re->total_amount ?? 0) }}
@if($re->unit_price)
— {{ __('hotel::modules.reservation.unitPrice') }} {{ currency_format($re->unit_price) }}
@endif
|
@empty
| — |
@endforelse
|
{{-- Financial summary --}}
{{ __('hotel::modules.reservation.roomsPrice') }} {{ currency_format($roomsTotal) }}
|
{{ __('hotel::modules.reservation.extrasPrice') }} {{ currency_format($extrasTotal) }}
|
{{ __('hotel::modules.reservation.discount') }} {{ currency_format($discountAmount) }}
|
|
@php $invoiceTaxLines = $reservation->invoiceTaxes(); @endphp
@forelse($invoiceTaxLines as $line)
{{ $line['tax']->name ?? __('hotel::modules.reservation.bookingTax') }}
@if($line['tax']->rate !== null && (float) $line['tax']->rate != 0)
({{ $line['tax']->rate }}%)
@endif
{{ currency_format($line['amount']) }}
@empty
{{ __('hotel::modules.reservation.bookingTax') }} {{ currency_format($reservation->tax_amount ?? 0) }}
@endforelse
|
{{ __('hotel::modules.reservation.total') }} {{ currency_format($reservation->total_amount ?? 0) }}
|
{{ __('hotel::modules.reservation.emailTotalPaid') }} {{ currency_format($totalPaid) }}
|
{{ __('hotel::modules.reservation.emailDue') }} {{ currency_format($balanceDue) }}
|
|
{{-- Payments --}}
|
{{ __('hotel::modules.reservation.emailPaymentInfo') }}
|
| # |
{{ __('hotel::modules.reservation.date') }} |
{{ __('hotel::modules.reservation.emailReferenceNo') }} |
{{ __('hotel::modules.reservation.amount') }} |
{{ __('hotel::modules.reservation.emailPaymentMode') }} |
{{ __('hotel::modules.reservation.emailPaymentNote') }} |
@php $payIndex = 0; @endphp
@forelse($folioPayments->sortBy('created_at')->values() as $payment)
@php $payIndex++; @endphp
| {{ $payIndex }} |
{{ optional($payment->created_at)->format($df) ?? '—' }} |
{{ $payment->transaction_reference ?? '—' }} |
{{ currency_format($payment->amount ?? 0) }} |
{{ ucfirst((string) ($payment->payment_method ?? '—')) }} |
{{ $payment->notes ? $payment->notes : '—' }} |
@empty
@if($advancePaid > 0 && !$advanceAlreadyApplied)
@php $payIndex = 1; @endphp
| 1 |
{{ optional($reservation->created_at)->format($df) ?? '—' }} |
— |
{{ currency_format($advancePaid) }} |
{{ __('hotel::modules.reservation.advance') }} |
— |
@else
| {{ __('hotel::modules.reservation.noPaymentsRecorded') }} |
@endif
@endforelse
|
{{-- Footer terms --}}
|
{{ __('hotel::modules.reservation.emailTermsFooter') }}
|
|
{{ __('hotel::modules.reservation.reservationCreatedEmailFooter') }}
|