@extends('admin.layout.master') @section('title', __('admin.dashboard')) @section('styles') @endsection @section('scripts') // order chart @endsection @section('content')
{{ __('admin.statistics') }}
{{ $providerByMainCategory->count() }}
{{ __('admin.total_main_category') }}
{{ $orderAnalysis['total'] }}
{{ __('admin.total_order') }}
{{ $reservationAnalysis['total'] }}
{{ __('admin.total_reservation') }}
{{ $userCount['allUser'] }}
{{ __('admin.total_user') }}
{{ $userCount['allProvider'] }}
{{ __('admin.total_provider') }}
{{ $userCount['AllDriver'] }}
{{ __('admin.total_driver') }}
{{ __('admin.filter') }}
{{ __('admin.report') }}

{{ __('admin.from') . ' ' . date('d-m-Y', strtotime($startDate)) . ' ' . __('admin.to') . ' ' . date('d-m-Y', strtotime($endDate)) }}

{{ __('admin.user statistics') }}
  • {{ __('admin.users') }}
    {{ __('admin.new') . ':' . $userCount['user'] }} {{ __('admin.all') . ':' . $userCount['allUser'] }}
    {{ $userCount['allUser'] == 0 ? 0 : round(($userCount['user'] / $userCount['allUser']) * 100) }}%
  • {{ __('admin.provider') }}
    {{ __('admin.new') . ':' . $userCount['provider'] }} {{ __('admin.all') . ':' . $userCount['allProvider'] }}
    {{ $userCount['allProvider'] == 0 ? 0 : round(($userCount['provider'] / $userCount['allProvider']) * 100) }}%
  • {{ __('admin.users') }}
    {{ __('admin.new') . ':' . $userCount['driver'] }} {{ __('admin.all') . ':' . $userCount['AllDriver'] }}
    {{ $userCount['AllDriver'] == 0 ? 0 : round(($userCount['driver'] / $userCount['AllDriver']) * 100) }}%
{{ __('admin.main_category') }}

{{ __('admin.count_provider_in_category') }}

    @foreach ($providerByMainCategory as $category)
  • {{ $category->name }}

    {{ $category->providers_count }}

  • @endforeach
{{ __('admin.main_category') }}

{{ __('admin.new_count_provider_in_category') . ' ' . __('admin.from') . ' ' . date('d-m-Y', strtotime($startDate)) . ' ' . __('admin.to') . ' ' . date('d-m-Y', strtotime($endDate)) }}

    @foreach ($providerByMainCategoryWithDate as $category)
  • {{--
    --}}
    {{ $category->name }}

    {{ $category->providers_count }}

  • @endforeach
{{ __('admin.Most_product_sales') }}
    @foreach ($productWithMostOrder as $product)
  • {{ $product->name }}
    {{ __('admin.price') . ':' . $product->price . ' ' . __('admin.currency') }}

    {{ $product->orders_count }}

  • @endforeach
{{ __('admin.most_product_not_order') }}
    @foreach ($productNotPutInCart as $product)
  • {{ $product->name }}
    {{ __('admin.price') . ':' . $product->price . ' ' . __('admin.currency') }}
  • @endforeach
{{ __('admin.most_provider_order') }}
    @foreach ($mostOrderProvider as $provider)
  • {{ $provider->name }}

    {{ $provider->orders_count }}

  • @endforeach
{{ __('admin.most_provider_reservation') }}
    @foreach ($mostReservationProvider as $provider)
  • {{--
    --}}
    {{ $provider->name }}

    {{ $provider->reservations_count }}

  • @endforeach
{{ __('admin.most_driver') }}
    @foreach ($mostDriver as $driver)
  • {{ $driver->name }}

    {{ $driver->orders_count }}

  • @endforeach
{{ __('admin.order') }}
{{ __('admin.reservation') }}
@endsection