{{--
{{ $room_and_bed->where('type', 1)->count() }}
--}}
{{__('obs.rooms')}}
{{-- {{ $room_and_bed->where('type', 2)->count() }}
--}}
{{__('obs.beds')}}
{{--
{{ $checkin_room->where('allotment_id', 0)->where('bed_id', 0)->where('check_in_status', 1)->where('check_in_time', '<', date('Y-m-d'))->count() }}
--}}
{{__('obs.rooms')}}
{{--
{{ $checkin_room->where('allotment_id', 0)->where('bed_id', '!=', 0)->where('check_in_status', 1)->where('check_in_time', '<', date('Y-m-d'))->count() }}
--}}
{{__('obs.beds')}}
{{--
{{ $room_and_bed->where('type', 1)->where('room_clean_status', 1)->count() }}
--}}
{{__('obs.rooms')}}
{{--
{{ $room_and_bed->where('type', 2)->where('room_clean_status', 1)->count() }}
--}}
{{__('obs.beds')}}
{{--
{{ $room_and_bed->where('type', 1)->where('room_clean_status', 3)->count() }}
--}}
{{__('obs.dirty')}}
{{--
{{ $room_and_bed->where('type', 1)->where('room_clean_status', 4)->count() }}
--}}
{{__('obs.out_of_order')}}
@php
$today_last_second = date('Y-m-d') . ' 23:59:59';
$today_first_second = date('Y-m-d') . ' 00:00:00';
@endphp
{{--
{{ $checkin_room->where('allotment_id', 0)->where('bed_id', 0)->where('check_in_status', 1)->whereBetween('check_in_time', [$today_first_second, $today_last_second])->count() }}
--}}
{{__('obs.room')}}
{{--
{{ $checkin_room->where('allotment_id', 0)->where('bed_id', '!=', 0)->where('check_in_status', 1)->whereBetween('check_in_time', [$today_first_second, $today_last_second])->count() }}
--}}
{{__('obs.bed')}}
{{--
{{ $booking_room->where('get_booking_info.type', 1)->count() }}
--}}
{{__('obs.room')}}
{{--
{{ $booking_room->where('get_booking_info.type', 2)->count() }}
--}}
{{__('obs.bed')}}
{{--
{{__('obs.total')}}
--}}
{{__('obs.check_in')}}
{{__('obs.vacant')}}
{{--
{{ $checkin_room->where('allotment_id', 0)->where('bed_id', 0)->where('check_in_status', 1)->where('end_date_time', '<', today())->count() }}
--}}
{{__('obs.room')}}
{{--
{{ $checkin_room->where('allotment_id', 0)->where('bed_id', '!=', 0)->where('check_in_status', 1)->where('end_date_time', '<', today())->count() }}
--}}
{{__('obs.bed')}}
@if(checkAuthPermission('frontdesk.fr_dashboard.get_balance') && false)
@endif
{{-- ZATCA --}}
@php
$zatca_connected_warehouses = session('zatca_connected_warehouses');
$is_zatca_connected = in_array(current_store(), is_array($zatca_connected_warehouses) ? $zatca_connected_warehouses : []);
$zatca_count_array = [
['title' => __('obs.checkout'), 'children' => [['title' => __('obs.today'), 'id' => 'summary_zatca_checkout_today'],['title' => __('obs.total'), 'id' => 'summary_zatca_checkout_total']]],
['title' => __('obs.reported'), 'children' => [['title' => __('obs.today'), 'id' => 'summary_zatca_reported_today'],['title' => __('obs.total'), 'id' => 'summary_zatca_reported_total']]],
['title' => __('obs.not_reported'), 'children' => [['title' => __('obs.today'), 'id' => 'summary_zatca_not_reported_today'],['title' => __('obs.total'), 'id' => 'summary_zatca_not_reported_total']]],
['title' => __('obs.warning'), 'children' => [['title' => __('obs.today'), 'id' => 'summary_zatca_warning_today'],['title' => __('obs.total'), 'id' => 'summary_zatca_warning_total']]]
];
@endphp
@if($is_zatca_connected)
@foreach ($zatca_count_array as $z_arr)
{{ $z_arr['children'][0]['title'] }}
{{ $z_arr['children'][1]['title'] }}
@endforeach
@endif