@if ($info->resv_code)
{{ __('obs.reservation_code') }}:{{ $info->resv_code }}
@endif @if ($info->checkin_code)
{{ __('obs.checkin_code') }}:{{ $info->checkin_code }}
@if ($info->allotment_id != 0)
{{ __('obs.allotment_code') }}:{{ $info->get_allotment_info->code }}
@endif @endif
{{ __('obs.company_name') }}: @if (isset($info->get_company_name)) {{ $info->get_company_name->name }} @endif
{{ __('obs.number_of_adult') }}: @if ($info->adult) {{ $info->adult }} @endif
{{ __('obs.number_of_child') }}: @if ($info->children) {{ $info->children }} @endif
{{ __('obs.old_checkin_no') }}: {{ $info->remarks }}
{{ __('obs.agent_name') }}: @if (isset($info->get_agent_info)) {{ $info->get_agent_info->name_eng }} @endif
{{ __('obs.status') }}: {{ booking_status($info->booking_status) }}
{{ __('obs.booked_by') }}:{{ user_name($info->posted_by) }}
@if (!$info->checkin_code)
{{ __('obs.confirmation') }}: {{ __('obs.confirmed') }} @endif
@if ($info->confirm_date)
{{ __('obs.confirmation_time') }}:{{ $info->confirm_date ? date('d-m-Y', strtotime($info->confirm_date)) : '' }}
@endif
{{ __('obs.reservation_date') }}: @if ($info->created_at) {{ date('d-m-Y h:i:s A', strtotime($info->created_at)) }} @endif
@if ($info->check_in_date)
{{ __('obs.check_in_date') }}: {{ date('d-m-Y h:i:s A', strtotime($info->check_in_date)) }}
@endif @if ($info->check_out_date)
{{ __('obs.check_out_date') }}: {{ date('d-m-Y h:i:s A', strtotime($info->check_out_date)) }}
@endif @if ($info->booking_status == 4)

{{ __('obs.cancelled_capital') }}

@endif
@if ($info->checkin_code) {{ __('obs.check_in_information') }} @else {{ __('obs.reservation_information') }} @endif
@if ($info->checkin_code) @endif @if (!request()->without_bill) @endif @php $total_amount = 0; $total_vat = 0; $sub_total = 0; $total_room_bed = 0; $total_night = 0; $sl = 0; $booking_room_details = collect($info->checkin_code ? $info->get_checkin_info : $info->get_booking_details); @endphp @if($info->is_other_hotel_checkin == 1 && $info->checkin_code) {{-- Other Hotel Checkin --}} @php $amount = 0; @endphp @foreach ($booking_room_details->groupBy('purchase_info.oh_id') as $infos) @foreach ($infos as $i) @php ++$total_room_bed; $total_night += $i->qty; @endphp @if (!request()->without_bill) @php $amount = $info->tax_type == 2 ? $i->rent * $i->qty * 1 : ($i->rent + $i->vat) * $i->qty * 1; @endphp @endif @php $total_amount += $amount; $total_vat += $i->vat * $i->qty; @endphp @endforeach @endforeach @else @php $current_hotel = null; @endphp @forelse ($booking_room_details->sortBy($info->checkin_code ? 'id' : 'oh_id') as $key=>$brd) @php $amount = 0; @endphp @if ($info->checkin_code) {{-- Checkin --}} @if (!request()->without_bill) @php $amount = $info->tax_type == 2 ? $brd->rent * $brd->qty * 1 : ($brd->rent + $brd->vat) * $brd->qty * 1; @endphp @endif @php $total_amount += $amount; $total_vat += $brd->vat * $brd->qty; @endphp @else {{-- Booking --}} @if($info->is_other_hotel_checkin) @if($current_hotel != $brd->oh_id) @php $current_hotel = $brd->oh_id; @endphp @endif @endif @if($info->is_other_hotel_checkin == 1) @else @endif @if (!request()->without_bill) @php $amount = $brd->rent*$brd->qty*$brd->total_night @endphp @php $vat = calculate_tax($amount, $info->tax_percent, $info->tax_type,$info->tax_percent) @endphp @endif @if (!request()->without_bill) @php $total_amount += $amount; $total_vat += $vat; @endphp @endif @endif @empty @endforelse @endif @if (request()->without_bill) @endif @if (!request()->without_bill) @endif @if (!request()->without_bill) @if ($info->checkin_code) @endif @if ($info->checkin_code) @endif @if ($info->checkin_code) @endif @endif
{{ __('obs.sl') }} {{ __('obs.room_or_bed') }} {{ __('obs.room_type') }} {{ __('obs.room_bed_number') }} {{ __('obs.qty') }} {{ __('obs.from') }} {{ __('obs.night') }} {{ __('obs.to') }}{{ __('obs.status') }}{{ __('obs.rent') }} {{ __('obs.amount') }} {{ __('obs.tax') }} {{ __('obs.total') }}
{{ __('obs.hotel_name') }}: {{ $infos->first()->purchase_info->get_hotel->name ?? '' }}
{{ ++$sl }} {{ __('obs.room') }} {{ $i->purchase_info->get_room_type->name ?? "" }} {{ $i->purchase_info->room_no ?? "" }} 1 {{ date('d-m-Y', strtotime($i->start_date_time)) }} {{ $i->qty }} {{ date('d-m-Y', strtotime($i->end_date_time.'+1 day')) }} {{ $i->check_in_status == 1 ? __('obs.checkin') : __('obs.checkout') }} @if ($info->tax_type == 2) {{ number_format($i->rent, 2) }} @else {{ number_format($i->rent + $i->vat, 2) }} @endif @if ($info->tax_type == 2) {{ number_format($i->rent * $i->qty * 1, 2) }} @else {{ number_format(($i->rent + $i->vat) * $i->qty * 1, 2) }} @endif {{ number_format($i->vat * $i->qty, 2) }} @if ($info->tax_type == 2) {{ number_format($amount + $i->vat * $i->qty, 2) }} @php $sub_total+=($amount+($i->vat*$i->qty)) @endphp @else {{ number_format($amount - $i->vat * $i->qty, 2) }} @php $sub_total+=($amount-($i->vat*$i->qty)) @endphp @endif
{{ $key + 1 }} @if ($info->type == 1) {{ __('obs.room') }} @else {{ __('obs.bed') }} @endif {{ $brd->get_room_type->name ?? "" }} {{ $brd->bed_id == 0 ? ($brd->get_room_info->room_number ?? "") : ($brd->get_bed_info->room_number ?? "") . ' [' . ($brd->get_room_info->room_number ?? "") . ']' }} 1 @php $total_room_bed+=1 @endphp {{ date('d-m-Y', strtotime($brd->start_date_time)) }} {{ $brd->qty }} @php $total_night+=$brd->qty @endphp {{ date('d-m-Y', strtotime($brd->end_date_time . '+1 day')) }} {{-- @if($brd->checkoutRequest->count() > 0) Check Out Request Pending @else {!! chk_room_status($brd->check_in_status) !!} @endif --}} @if ($info->tax_type == 2) {{ number_format($brd->rent, 2) }} @else {{ number_format($brd->rent + $brd->vat, 2) }} @endif @if ($info->tax_type == 2) {{ number_format($brd->rent * $brd->qty * 1, 2) }} @else {{ number_format(($brd->rent + $brd->vat) * $brd->qty * 1, 2) }} @endif {{ number_format($brd->vat * $brd->qty, 2) }} @if ($info->tax_type == 2) {{ number_format($amount + $brd->vat * $brd->qty, 2) }} @php $sub_total+=($amount+($brd->vat*$brd->qty)) @endphp @else {{ number_format($amount - $brd->vat * $brd->qty, 2) }} @php $sub_total+=($amount-($brd->vat*$brd->qty)) @endphp @endif
{{ $brd->get_hotel->name }}
{{ $key + 1 }} @if ($info->type == 1) {{ __('obs.room') }} @else {{ __('obs.bed') }} @endif {{ $brd->get_room_type_oh->name ?? '-' }} {{ $brd->purchase_info->room_no ?? '-' }}{{ $brd->get_room_type->name ?? '-' }} {{ $brd->room->room_number ?? '-' }} {{ $brd->qty }} @php $total_room_bed+=$brd->qty @endphp {{ date('d-m-Y', strtotime($brd->start_date)) }} {{-- {{ number_format($brd->total_night, 2) }} --}} {{ $brd->total_night }} @php $total_night+=$brd->total_night @endphp {{ date('d-m-Y', strtotime($brd->end_date)) }} {{ number_format($brd->rent, 2) }} {{ number_format($brd->rent * $brd->qty * $brd->total_night, 2) }} {{ number_format($vat, 2) }} @if ($info->tax_type == 2) {{ number_format($amount + $vat, 2) }} @php $sub_total+=($amount+$vat) @endphp @else {{ number_format($amount - $vat, 2) }} @php $sub_total+=($amount-$vat) @endphp @endif
{{ __('obs.no_room_record_found') }}
{{ __('obs.total') }} {{ $total_room_bed }} {{ __('obs.total_night') }} {{ $total_night }} {{ __('obs.total_amount') }} @if ($info->tax_type == 1) ({{ __('obs.including') }}) @endif {{ number_format($total_amount, 2) }} {{ number_format($total_vat, 2) }} {{ number_format($sub_total, 2) }}
{{ __('obs.sub_total') }} @if ($info->tax_type == 2) {{ number_format($total_amount, 2) }} @else{{ number_format($sub_total, 2) }} @endif
{{ __('obs.tax') }} {{ number_format($total_vat, 2) }} @php $qr_vat = round($total_vat, 2) @endphp
{{ __('obs.grand_total') }} @if ($info->tax_type == 2) {{ number_format($total_amount + $total_vat, 2) }} @php $qr_amount = round($total_amount + $total_vat) @endphp @else {{ number_format($sub_total + $total_vat, 2) }} @php $qr_amount = round($sub_total + $total_vat) @endphp @endif