@php
$lims_warehouse_list = App\Models\Warehouse::where('is_active', true)->get();
@endphp
@if(!config('database.connections.saleprosaas_landlord') && \Auth::user()->role_id <= 2)
@if(isset($versionUpgradeData['alert_version_upgrade_enable']) && $versionUpgradeData['alert_version_upgrade_enable']==true)
{{__('db.welcome')}} {{Auth::user()->name}}
@if(in_array('restaurant',explode(',',cache()->get('general_setting')->modules)))
@if(Auth::user()->role_id > 2 && isset(Auth::user()->service_staff))
@php
$cooked = DB::table('sales')->where('waiter_id', Auth::user()->id)->where('sale_status', 5)->orWhere('sale_status', 6)->where('sales.created_at', '>=', now()->subDay())->count();
@endphp
@elseif(Auth::user()->role_id <= 2)
@php
$cooked = DB::table('sales')->where('sale_status', 6)->where('sales.created_at', '>=', now()->subDay())->count();
@endphp
@endif
@endif
@if(in_array('restaurant',explode(',',cache()->get('general_setting')->modules)))
{{$cooked}} {{__('db.Orders to serve')}}
@endif
@php
$revenue_profit_summary = $role_has_permissions_list->where('name', 'revenue_profit_summary')->first();
@endphp
@if($revenue_profit_summary)
@if (\Auth::user()->role_id <= 2)
@endif
@endif