@extends('layouts.master_backend') @section('content')
@section('rightColContent')
{{$counts[0]->today_check_ins}}

{{lang_trans('txt_today_checkin')}}

 

{{$counts[0]->today_check_outs}}

{{lang_trans('txt_today_checkout')}}

 

{{$counts[0]->today_orders}}

{{lang_trans('txt_today_orders')}}

 

{{number_format($totalTodayAmout,2) ?? 0}} Ksh

Total Amount Booked Today

 

@endsection
@foreach($orders as $k=>$val) @php $totalAmount = 0.00; @endphp @if($val->order_history) @foreach($val->order_history as $key_OH=>$val_OH) @if($val_OH->orders_items) @foreach($val_OH->orders_items as $key_OI=>$val_OI) @php $price = $val_OI->item_price*$val_OI->item_qty; $totalAmount = $totalAmount+$price; $totalAmmountsArr[$val->id] = $totalAmount; @endphp @endforeach @endif @endforeach @endif @endforeach @foreach($orders as $k=>$val) @endforeach
{{lang_trans('txt_sno')}} {{lang_trans('txt_customer_name')}} {{lang_trans('txt_table_num')}} {{lang_trans('txt_order_amount')}} {{lang_trans('txt_action')}}
{{$k+1}} {{$val->name}} {{$val->table_num}} {{getCurrencySymbol()}} {{@$totalAmmountsArr[$val->id]}} {{lang_trans('btn_repeat_order')}} {{lang_trans('btn_pay')}}

{{lang_trans('txt_room')}}

@foreach($room_types as $key=>$val) @endforeach
{{lang_trans('txt_sno')}} {{lang_trans('txt_title')}} {{lang_trans('txt_capacity')}} {{lang_trans('txt_base_price')}} {{lang_trans('txt_room')}}
{{$key+1}} {{$val->title}} {{lang_trans('txt_adults')}}: {{$val->adult_capacity}}   {{lang_trans('txt_kids')}}: {{$val->kids_capacity}} {{getCurrencySymbol()}} {{$val->base_price}} @if($val->rooms->count()) @foreach($val->rooms as $k=>$v) @endforeach
{{lang_trans('txt_sno')}} {{lang_trans('txt_room_num')}} {{lang_trans('txt_floor')}}
{{$k+1}} {{$v->room_no}} {{getDynamicDropdownById($v->floor, 'dropdown_value')}}
@else {{lang_trans('txt_no_rooms')}} {{lang_trans('txt_add_new_rooms')}} @endif

{{lang_trans('txt_product_stocks')}}

@foreach($products as $k=>$val) @endforeach
{{lang_trans('txt_sno')}} {{lang_trans('txt_product')}} {{lang_trans('txt_current_stocks')}} {{lang_trans('txt_unit')}}
{{$k+1}} {{$val->name}} {{$val->stock_qty}} {{getDynamicDropdownById($val->measurement, 'dropdown_value')}}
{{-- require set var in js var --}} @endsection