@extends('layouts.admin.app') @section('title', translate('Dashboard')) @push('css_or_js') @endpush @section('content')

{{translate('welcome')}}, {{auth('admin')->user()->f_name}}.

{{translate('Monitor_your_business_analytics_and_statistics')}}

Business Analytics {{translate('Business_Analytics')}}

@include('admin-views.partials._dashboard-order-stats',['data'=>$data])

{{translate('order_statistics')}}

{{translate('order_status_statistics')}}

{{$donut['pending'] + $donut['ongoing'] + $donut['delivered']+ $donut['canceled']+ $donut['returned']+ $donut['failed']}}

{{ translate('orders') }}
{{ translate('pending') }} ({{$donut['pending']}})
{{ translate('ongoing') }} ({{$donut['ongoing']}})
{{ translate('delivered') }} ({{$donut['delivered']}})
{{ translate('canceled') }} ({{$donut['canceled']}})
{{ translate('returned') }} ({{$donut['returned']}})
{{ translate('failed_to_deliver') }} ({{$donut['failed']}})

{{translate('earning_statistics')}}

{{translate('recent_Orders')}}
{{translate('View_All')}}
    @foreach($data['recent_orders'] as $recent)
  • {{translate('Order')}}# {{$recent->id}}

    {{\Illuminate\Support\Carbon::parse($recent->created_at)->format('d-m-y, h:m A')}}

    @if($recent['order_status'] == 'pending') {{translate($recent['order_status'])}} @elseif($recent['order_status'] == 'delivered') {{translate($recent['order_status'])}} @elseif($recent['order_status'] == 'confirmed' || $recent['order_status'] == 'processing' || $recent['order_status'] == 'out_for_delivery') {{translate($recent['order_status'])}} @elseif($recent['order_status'] == 'canceled' || $recent['order_status'] == 'failed') @if($recent['order_status'] == 'failed') {{translate('failed_to_deliver')}} @else {{translate($recent['order_status'])}} @endif @elseif($recent['order_status'] == 'cooking') {{translate($recent['order_status'])}} @elseif($recent['order_status'] == 'completed') {{translate($recent['order_status'])}} @else {{translate($recent['order_status'])}} @endif
  • @endforeach
@include('admin-views.partials._vehicle-with-orders',['all_vehicle'=>$data['all_vehicle']])
{{--
@include('admin-views.partials._most-rated-products',['most_rated_products'=>$data['most_rated_products']])
--}}
@include('admin-views.partials._top-customer',['top_customer'=>$data['top_customer']])
@endsection @push('script') @endpush @push('script_2') {{-- Order Statistics Line Chart --}} {{-- Order Statistics Donut Chart --}} {{-- Earning Statistics Line Chart --}} @endpush