@extends('layouts.admin.app') @section('title',\App\Models\BusinessSetting::where(['key'=>'business_name'])->first()->value??'Dashboard') @section('content')
@if(auth('admin')->user()->role_id == 1)
@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') --}} @php($params = session('dash_params')) @if ($params['zone_id'] != 'all') @php($zone_name = \App\Models\Zone::where('id', $params['zone_id'])->first()->name) @else @php($zone_name=translate('All')) @endif
{{translate('messages.total_users')}}

{{ $data['customer'] + $data['restaurants'] + $data['delivery_man'] }}

{{translate('messages.customer')}}
{{translate('messages.restaurant')}}
{{ translate('messages.delivery_man')}}
@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