@extends('layouts.master_backend') @section('content') @php $i = $j = 0; $totalAmount = 0; @endphp
@if($list=='check_outs')

{{lang_trans('heading_filter_checkouts')}}

{{ Form::open($search_data,array('url'=>route('search-checkouts'),'id'=>"search-checkouts", 'class'=>"form-horizontal form-label-left")) }}
{{Form::text('customer_id',null,['class'=>"form-", "id"=>"customers", "placeholder"=>lang_trans('ph_select')])}}
{{Form::select('room_type_id',$roomtypes_list,null,['class'=>"form-control",'placeholder'=>lang_trans('ph_select')])}}
{{Form::select('payment_status',config('constants.PAYMENT_STATUS'),null,['class'=>"form-control",'placeholder'=>lang_trans('ph_select')])}}
{{Form::text('date_from',null,['class'=>"form-control datepicker", 'placeholder'=>lang_trans('ph_date_from')])}}
{{Form::text('date_to',null,['class'=>"form-control datepicker", 'placeholder'=>lang_trans('ph_date_to')])}}

{{ Form::close() }}
@endif @if($list=='check_ins')

{{lang_trans('heading_checkin_list')}}


@foreach($datalist as $k=>$val) @if($val->is_checkout==0) @php $dateDiff = dateDiff($val->check_in, date('Y-m-d'), 'daysWIthSymbol'); $calc = calcFinalAmount($val); $totalAmount = $totalAmount+$calc['finalRoomAmount']+$calc['finalOrderAmount']+$calc['additionalAmount']; $i++; @endphp @endif @endforeach
{{lang_trans('txt_sno')}} {{lang_trans('txt_guest_name')}} {{lang_trans('txt_mobile_num')}} {{lang_trans('txt_email')}} {{lang_trans('txt_room')}} {{lang_trans('txt_checkin')}} {{lang_trans('txt_checkout')}} {{lang_trans('txt_total_amount')}} {{lang_trans('txt_action')}}
{{$i}} {{($val->customer) ? $val->customer->name : 'NA'}} {{($val->customer) ? $val->customer->mobile : 'NA'}} {{($val->customer) ? $val->customer->email : 'NA'}} @include('backend/model/booked_rooms_modal',['val'=>$val]) {{dateConvert($val->check_in,'d-m-Y H:i')}} {{dateConvert($val->check_out,'d-m-Y H:i')}} {{getCurrencySymbol()}} {{numberFormat($calc['finalRoomAmount']+$calc['finalOrderAmount']+$calc['additionalAmount'])}} {{lang_trans('btn_advance_slip')}} {{lang_trans('btn_food_order')}} {{lang_trans('btn_view')}} {{lang_trans('btn_checkout')}} @if($dateDiff >= 0) {{lang_trans('btn_swap_room')}} @endif @include('backend/model/advance_pay_modal',['val'=>$val])
{{lang_trans('txt_grand_total')}} {{getCurrencySymbol()}} {{numberFormat($totalAmount)}}
@elseif($list=='check_outs')

{{lang_trans('heading_checkout_list')}}


@foreach($datalist as $k=>$val) @if($val->is_checkout == 1) @php $calc = calcFinalAmount($val); $totalAmount = $totalAmount+$calc['finalRoomAmount']+$calc['finalOrderAmount']+$calc['additionalAmount']; $j++; @endphp @endif @endforeach
{{lang_trans('txt_sno')}} {{lang_trans('txt_guest_name')}} {{lang_trans('txt_mobile_num')}} {{lang_trans('txt_email')}} {{lang_trans('txt_room')}} {{lang_trans('txt_payment_status')}} {{lang_trans('txt_checkin')}} {{lang_trans('txt_checkout')}} {{lang_trans('txt_total_amount')}} {{lang_trans('txt_action')}}
{{$j}} {{($val->customer) ? $val->customer->name : 'NA'}} {{($val->customer) ? $val->customer->mobile : 'NA'}} {{($val->customer) ? $val->customer->email : 'NA'}} @include('backend/model/booked_rooms_modal',['val'=>$val]) {{config('constants.PAYMENT_STATUS')[$val->payment_status]}} @if($val->payment_status == 0) @endif {{dateConvert($val->check_in,'d-m-Y H:i')}} {{dateConvert($val->check_out,'d-m-Y H:i')}} {{getCurrencySymbol()}} {{numberFormat($calc['finalRoomAmount']+$calc['finalOrderAmount']+$calc['additionalAmount'])}} {{lang_trans('btn_view')}} {{lang_trans('btn_invoice_room_org')}} {{lang_trans('btn_invoice_room_dup')}} {{lang_trans('btn_invoice_food')}}
{{lang_trans('txt_grand_total')}} {{getCurrencySymbol()}} {{numberFormat($totalAmount)}}
@endif
@endsection