@extends('layouts.master_backend') @section('content') @php $calculatedAmount = calcFinalAmount($data_row, 0); $totalRoomAmount = $calculatedAmount['subtotalRoomAmount']; $advancePayment = $calculatedAmount['advancePayment']; $roomAmountDiscount = $calculatedAmount['totalRoomAmountDiscount']; $roomAmountGst = $calculatedAmount['totalRoomAmountGst']; $roomAmountCGst = $calculatedAmount['totalRoomAmountCGst']; $finalRoomAmount = $calculatedAmount['finalRoomAmount']; $totalOrderAmountGst = $calculatedAmount['totalOrderAmountGst']; $totalOrderAmountCGst = $calculatedAmount['totalOrderAmountCGst']; $totalOrderAmountDiscount = $calculatedAmount['totalOrderAmountDiscount']; $orderGst = $calculatedAmount['totalOrderGstPerc']; $orderCGst = $calculatedAmount['totalOrderCGstPerc']; $totalOrdersAmount = $calculatedAmount['subtotalOrderAmount']; $finalOrderAmount = $calculatedAmount['finalOrderAmount']; $additionalAmount = $calculatedAmount['additionalAmount']; $additionalAmountReason = $data_row->additional_amount_reason; @endphp

{{lang_trans('heading_guest_info')}}

{{-- --}} {{-- --}}
{{lang_trans('txt_fullname')}} {{$data_row->customer->name}} {{lang_trans('txt_address')}} {{$data_row->customer->address}}, {{$data_row->customer->city}}, {{$data_row->customer->state}}, {{$data_row->customer->country}}{{lang_trans('txt_father_name')}} {{$data_row->customer->father_name}}
{{lang_trans('txt_email')}} {{$data_row->customer->email}} {{lang_trans('txt_mobile_num')}} {{$data_row->customer->mobile}}
{{lang_trans('txt_gender')}} {{$data_row->customer->gender}} {{lang_trans('txt_age')}} {{$data_row->customer->age}} {{lang_trans('txt_years')}}
{{lang_trans('txt_address')}} {{$data_row->customer->address}}, {{$data_row->customer->city}}, {{$data_row->customer->state}}, {{$data_row->customer->country}}

{{lang_trans('heading_checkInOut_info')}}

{{-- --}} {{-- --}}
{{lang_trans('btn_checkin')}} {{dateConvert($data_row->check_in,'d-m-Y H:i')}} {{lang_trans('btn_checkout')}} {{ dateConvert($data_row->check_out,'d-m-Y H:i')}}
{{lang_trans('txt_checkin_from_date')}} {{ ($data_row->created_at_checkin!=null) ? dateConvert($data_row->created_at_checkin,'d-m-Y H:i') : 'NA'}} {{lang_trans('txt_checkout_from_date')}} {{ ($data_row->created_at_checkout!=null) ? dateConvert($data_row->created_at_checkout,'d-m-Y H:i') : 'NA'}}
{{lang_trans('txt_duration_of_stay')}} {{$data_row->duration_of_stay}} {{lang_trans('txt_persons')}} {{lang_trans('txt_adults')}}: {{$data_row->adult}} {{lang_trans('txt_kids')}}: {{$data_row->kids}}
{{lang_trans('txt_idcard_type')}} {{@getDynamicDropdownById($data_row->idcard_type, 'dropdown_value')}} {{lang_trans('txt_idcard_num')}} {{$data_row->idcard_no}}
{{lang_trans('txt_inv_applicable')}} {{($data_row->invoice_num!='') ? 'Yes' : 'No'}} {{lang_trans('txt_company_gst_num')}} {{$data_row->company_gst_num}}
{{lang_trans('txt_booked_by')}} {{$data_row->booked_by}} {{lang_trans('txt_vehicle_number')}} {{$data_row->vehicle_number}}
{{lang_trans('txt_referred_by')}} {{$data_row->referred_by}} {{lang_trans('txt_referred_by_name')}} {{$data_row->referred_by_name}}
{{lang_trans('txt_payment_mode')}} {{ @config('constants.PAYMENT_MODES')[$data_row->payment_mode]}} {{lang_trans('txt_room_plan')}} {{$data_row->room_plan}}
{{lang_trans('txt_reason_of_visit')}} {{$data_row->reason_visit_stay}}
{{lang_trans('txt_remark_amount')}} {{$data_row->remark_amount}}
{{lang_trans('txt_remark')}} {{$data_row->remark}}

{{lang_trans('heading_payment_info')}}

{{--
{{lang_trans('txt_payment_mode')}} {{ ($data_row->payment_mode>0) ? config('constants.PAYMENT_MODES')[$data_row->payment_mode] : 'NA' }}
--}}
@if($data_row->booked_rooms) @foreach($data_row->booked_rooms as $key=>$roomInfo) @php $checkIn = dateConvert($roomInfo->check_in, 'Y-m-d'); $checkOut = dateConvert($roomInfo->check_out, 'Y-m-d'); $durOfStayPerRoom = dateDiff($checkIn, $checkOut, 'days'); $amountPerRoom = ($durOfStayPerRoom * $roomInfo->room_price); //$totalRoomAmount = $totalRoomAmount+$amountPerRoom; @endphp @endforeach @endif
{{lang_trans('txt_sno')}}. {{lang_trans('txt_room')}} {{lang_trans('txt_duration_of_stay')}} {{lang_trans('txt_base_price')}} {{lang_trans('txt_total_amount')}}
{{$key+1}} {{ ($roomInfo->room_type) ? $roomInfo->room_type->title : ""}}
({{lang_trans('txt_room_num')}} : {{$roomInfo->room->room_no}})
{{$durOfStayPerRoom}} {{getCurrencySymbol()}} {{$roomInfo->room_price}} {{getCurrencySymbol()}} {{ $amountPerRoom }}
{{-- --}} {{-- --}}
{{lang_trans('txt_subtotal')}} {{getCurrencySymbol()}} {{ numberFormat($totalRoomAmount) }}
{{lang_trans('txt_sgst')}} ({{$data_row->gst_perc}}%) {{getCurrencySymbol()}} {{ numberFormat($roomAmountGst) }}
{{lang_trans('txt_cgst')}} ({{$data_row->cgst_perc}}%) {{getCurrencySymbol()}} {{ numberFormat($roomAmountCGst) }}
{{lang_trans('txt_advance_amount')}} {{getCurrencySymbol()}} {{ numberFormat($advancePayment) }}
{{lang_trans('txt_discount')}} {{getCurrencySymbol()}} {{ numberFormat($roomAmountDiscount) }}
{{lang_trans('txt_final_amount')}} {{getCurrencySymbol()}} {{ numberFormat($finalRoomAmount) }}

{{lang_trans('txt_food_orders')}}

@forelse($data_row->orders_items as $k=>$val) @empty @endforelse
{{lang_trans('txt_sno')}}. {{lang_trans('txt_item_details')}} {{lang_trans('txt_date')}} {{lang_trans('txt_item_qty')}} {{lang_trans('txt_item_price')}} {{lang_trans('txt_total_amount')}}
{{$k+1}} {{$val->item_name}} {{dateConvert($val->created_at,'d-m-Y')}} {{$val->item_qty}} {{getCurrencySymbol()}} {{$val->item_price}} {{getCurrencySymbol()}} {{$val->item_qty*$val->item_price}}
{{lang_trans('txt_no_orders')}}
{{-- --}}
{{lang_trans('txt_subtotal')}} {{getCurrencySymbol()}} {{ numberFormat($totalOrdersAmount) }}
{{lang_trans('txt_sgst')}} ({{$orderGst}}%) {{getCurrencySymbol()}} {{ numberFormat($totalOrderAmountGst) }}
{{lang_trans('txt_cgst')}} ({{$orderCGst}}%) {{getCurrencySymbol()}} {{ numberFormat($totalOrderAmountCGst) }}
{{lang_trans('txt_discount')}} {{getCurrencySymbol()}} {{ numberFormat($totalOrderAmountDiscount)}}
{{lang_trans('txt_final_amount')}} {{getCurrencySymbol()}} {{ numberFormat($finalOrderAmount) }}
{{ ($additionalAmountReason) ? $additionalAmountReason : lang_trans('txt_additional_amount_reason') }} {{getCurrencySymbol()}} {{ numberFormat($additionalAmount) }}
{{lang_trans('txt_grand_total')}} {{getCurrencySymbol()}} {{ numberFormat($finalRoomAmount+$finalOrderAmount+$additionalAmount) }}
@endsection