@php $route ??= 'invoices.generate'; @endphp @if ($booking) {{ $booking->booking_number }} {{ $booking->created_at }} {{ $booking->address->last_name }} {{ $booking->address->email }} @if ($booking->address->phone) {{ $booking->address->phone }} @endif @if ($booking->address->full_address) {{ $booking->address->full_address }} @endif @if ($booking->room->room->exists && ($room = $booking->room->room)) {{ $room->name }} @else {{ $booking->room->room_name }} @endif {{ $booking->room->start_date }} {{ $booking->room->end_date }} @if ($booking->arrival_time) {{ $booking->arrival_time }} @endif @if ($booking->requests) {{ $booking->requests }} @endif @if ($booking->number_of_guests) {{ $booking->number_of_guests }} @endif @if ($booking->number_of_children) {{ $booking->number_of_children }} @endif

{{ __('Room') }}

{{ __('Image') }} {{ __('Name') }} {{ __('Checkin Date') }} {{ __('Checkout Date') }} {{ __('Number of rooms') }} {{ __('Price') }} {{ __('Tax') }} @if ($booking->room->room->exists && ($room = $booking->room->room)) {{ $booking->room->room_name }} {{ $booking->room->room->name }} @else {{ $booking->room->room_name }} {{ $booking->room->room_name }} @endif {{ $booking->room->start_date }} {{ $booking->room->end_date }} {{ $booking->room->number_of_rooms }} {{ format_price($booking->room->price) }} {{ format_price($booking->tax_amount) }}
@if ($booking->services->count())

{{ __('Services') }}

{{ __('Name') }} {{ __('Price') }} {{ __('Total') }} @foreach ($booking->services->unique() as $service) {{ $service->name }} {{ format_price($service->price) }} x {{ $booking->room->number_of_rooms }} {{ format_price($service->price * $booking->room->number_of_rooms) }} @endforeach
@endif {{ format_price($booking->sub_total) }} {{ format_price($booking->coupon_amount) }} {{ format_price($booking->tax_amount) }} {{ format_price($booking->amount) }} {!! $booking->status->toHtml() !!} @if (is_plugin_active('payment') && $booking->payment->id) @auth {{ $booking->payment->charge_id }} @endauth {{ $booking->payment->payment_channel->label() }} {!! $booking->payment->status->toHtml() !!} @if ($booking->payment->payment_channel == \Botble\Payment\Enums\PaymentMethodEnum::BANK_TRANSFER && $booking->payment->status == \Botble\Payment\Enums\PaymentStatusEnum::PENDING ) {!! BaseHelper::clean(get_payment_setting('description', $booking->payment->payment_channel)) !!} @endif @if ($displayBookingStatus ?? false) {!! $booking->status->toHtml() !!} @endif @endif @if ((auth()->check() || $booking->customer_id) && ($invoiceId = $booking->invoice->id) && $route)
{{ __('View Invoice') }} {{ __('Download Invoice') }}
@endif @endif