@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
{{ __('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') }}
| {{ __('hotel::modules.reservation.roomType') }} |
{{ __('hotel::modules.reservation.quantityShort') }} |
{{ __('hotel::modules.reservation.rate') }} |
{{ __('hotel::modules.reservation.total') }} |
@foreach($reservation->reservationRooms as $rr)
| {{ $rr->roomType?->name ?? '-' }} |
{{ $rr->quantity ?? 0 }} |
{{ currency_format($rr->rate ?? 0) }} |
{{ currency_format($rr->total_amount ?? 0) }} |
@endforeach
@if($reservation->reservationRooms->isEmpty())
| {{ __('hotel::modules.reservation.noRoomsSelected') }} |
@endif
@if($reservation->reservationExtras->count())
{{ __('hotel::modules.reservation.extras') }}
| {{ __('hotel::modules.reservation.extras') }} |
{{ __('hotel::modules.reservation.quantityShort') }} |
{{ __('hotel::modules.reservation.unitPrice') }} |
{{ __('hotel::modules.reservation.total') }} |
@foreach($reservation->reservationExtras as $re)
| {{ $re->extraService?->name ?? '-' }} |
{{ $re->quantity ?? 0 }} |
{{ currency_format($re->unit_price ?? 0) }} |
{{ currency_format($re->total_amount ?? 0) }} |
@endforeach
@endif
{{ __('hotel::modules.reservation.summaryLabel') }}
| {{ __('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) }} |
@php $receiptTaxLines = $reservation->invoiceTaxes(); @endphp
@forelse($receiptTaxLines 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.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')]) }}