@php $restaurant = $reservation->restaurant ?? (function_exists('restaurant') ? restaurant() : null); $branch = $reservation->branch ?? (function_exists('branch') ? branch() : null); $statusLabel = optional($reservation->status)->label() ?? (string) ($reservation->status->value ?? $reservation->status); $restaurantLogoUrl = null; if ($restaurant && !empty($restaurant->logo)) { $localLogoPath = public_path('user-uploads/logo/' . $restaurant->logo); $restaurantLogoUrl = file_exists($localLogoPath) ? ('file://' . $localLogoPath) : ($restaurant->logo_url ?? $restaurant->logoUrl ?? null); } @endphp
@if($restaurantLogoUrl) @endif
{{ $restaurant?->name ?? 'Hotel' }}
@if($branch?->name) {{ $branch->name }} @endif
{{ __('hotel::modules.reservation.reservationLabel') }}: {{ $reservation->reservation_number }}
{{ __('hotel::modules.reservation.statusLabel') }}: {{ $statusLabel }}
{{ __('hotel::modules.reservation.date') }}
{{ optional($reservation->check_in_date)->format('d M Y') }}
{{ __('hotel::moduleas.reservation.guest') }}
{{ $reservation->primaryGuest?->full_name ?? '' }}
{{ __('hotel::modules.reservation.stay') }}
{{ __('hotel::modules.reservation.checkIn') }}: {{ optional($reservation->check_in_date)->format('D, M d, Y') }} @if($reservation->check_in_time) · {{ \Carbon\Carbon::parse($reservation->check_in_time)->format('H:i') }} @endif
{{ __('hotel::modules.reservation.checkOut') }}: {{ optional($reservation->check_out_date)->format('D, M d, Y') }} @if($reservation->check_out_time) · {{ \Carbon\Carbon::parse($reservation->check_out_time)->format('H:i') }} @endif
{{ __('hotel::modules.reservation.rooms') }}
@foreach($reservation->reservationRooms as $rr) @endforeach @if($reservation->reservationRooms->isEmpty()) @endif
{{ __('hotel::modules.reservation.roomType') }} {{ __('hotel::modules.reservation.quantityShort') }} {{ __('hotel::modules.reservation.rate') }} {{ __('hotel::modules.reservation.total') }}
{{ $rr->roomType?->name ?? '-' }} {{ $rr->quantity ?? 0 }} {{ currency_format($rr->rate ?? 0) }} {{ currency_format($rr->total_amount ?? 0) }}
{{ __('hotel::modules.reservation.noRoomsSelected') }}
@if($reservation->reservationExtras->count())
{{ __('hotel::modules.reservation.extras') }}
@foreach($reservation->reservationExtras as $re) @endforeach
{{ __('hotel::modules.reservation.extras') }} {{ __('hotel::modules.reservation.quantityShort') }} {{ __('hotel::modules.reservation.unitPrice') }} {{ __('hotel::modules.reservation.total') }}
{{ $re->extraService?->name ?? '-' }} {{ $re->quantity ?? 0 }} {{ currency_format($re->unit_price ?? 0) }} {{ currency_format($re->total_amount ?? 0) }}
@endif
{{ __('hotel::modules.reservation.summaryLabel') }}
@php $receiptTaxLines = $reservation->invoiceTaxes(); @endphp @forelse($receiptTaxLines as $line) @empty @endforelse
{{ __('hotel::modules.reservation.roomsAndExtras') }} {{ currency_format($grossSubtotal) }}
{{ __('hotel::modules.reservation.discount') }} @if(!empty($reservation->discount_type) && ($reservation->discount_value ?? 0) > 0) ({{ $reservation->discount_type }}: {{ $reservation->discount_value }}) @endif - {{ currency_format($discountAmount) }}
{{ __('hotel::modules.reservation.amountAfterDiscountBeforeTax') }} {{ currency_format($netAfterDiscount) }}
{{ $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']) }}
{{ __('hotel::modules.reservation.bookingTax') }} {{ currency_format($reservation->tax_amount ?? 0) }}
{{ __('hotel::modules.reservation.total') }} {{ currency_format($reservation->total_amount ?? 0) }}
{{ __('hotel::modules.reservation.advancePaid') }} {{ currency_format($advancePaid ?? 0) }}
{{ __('hotel::modules.reservation.securityDeposit') }} {{ currency_format($securityDepositPaid ?? 0) }}
{{ __('hotel::modules.reservation.balanceDue') }} {{ currency_format($balanceDue) }}
{{ __('hotel::modules.reservation.generatedOn', ['datetime' => now()->format('d M Y H:i')]) }}