@extends('layouts.admin.app') @section('title',\App\Models\BusinessSetting::where(['key'=>'business_name'])->first()->value??'Dashboard') @push('css_or_js') @endpush @section('content')
@if(auth('admin')->user()->role_id == 1) @if($zones->first()?->name == 'Demo Zone' && $zones->count() <= 1)

{{translate('All Data From demo Zone')}}

{{translate('In this page you see all the demo zone data. To show actual data setup your Zones, Business Setting & complete orders')}}

{{translate('Create Zone')}}
@endif
@include('admin-views.partials._order-statics',['data'=>$data])
@include('admin-views.partials._dashboard-order-stats',['data'=>$data])
@include('admin-views.partials._monthly-earning-graph',['total_sell'=>$total_sell,'total_subs' =>$total_subs,'commission'=>$commission])
dashboard {{translate('user_statistics')}}
@include('admin-views.partials._zone-change',['data'=>$data])
@include('admin-views.partials._user-overview-chart',['data'=>$data])
@include('admin-views.partials._top-deliveryman',['top_deliveryman'=>$data['top_deliveryman']])
@include('admin-views.partials._top-restaurants',['top_restaurants'=>$data['top_restaurants']])
@include('admin-views.partials._top-rated-foods',['top_rated_foods'=>$data['top_rated_foods']])
@include('admin-views.partials._top-selling-foods',['top_sell'=>$data['top_sell']])
@else @endif
@endsection @push('script') @endpush @push('script_2') @endpush