@extends('admin.layouts.container') @section('css')@endsection @push('stack_styles') @endpush @section('content') {{--
{{__('dashboard.my_profits')}}
--}}

{{__("dashboard.total_orders")}}

{{ $totalOrders }}

{{__("dashboard.my_profits")}}

{{ $memberProfits ?? 0 }} {{$defaultCurrencyCode}}

{{-- @foreach(getOrderStatusIds() as $statusId)

{{ getOrderStatusName($statusId) }}

{{ $totalOrdersStatus[$statusId] ?? 0 }}

@endforeach --}} {{--

{{ __('dashboard.ratings') }}

{{ $totalRatings ?? 0 }}

--}} {{--

{{__("dashboard.sources_number")}}

{{ $sourcesCount ?? 0 }}

--}} {{--

{{ __('dashboard.daily_orders_number') }}

{{ $dailyOrdersNumber }}

{{ __('dashboard.monthly_orders_number') }}

{{ $monthlyOrdersNumber }}

--}}
{{--

{{ __('dashboard.most_ordered_customers') }}

@foreach($mostOrderedCustomers as $value) @endforeach
{{ getUserRoleName('user') }} {{ __('dashboard.orders_number') }}
{{ $value->user->name ?? "" }} {{ $value->count_orders }}
@if(isset($mostOrderedProducts))

{{ __('dashboard.most_ordered_products') }}

@foreach($mostOrderedProducts as $value) @endforeach
{{ __('products::products.name') }} {{ __('dashboard.subcategory') }} {{ __('dashboard.purchases_number') }} {{ __('users::users.status') }} {{ __('dashboard.processes') }}
{{ $value->productCurrentDescription->title ?? "" }} {{ $value->productUser->name ?? "" }} {{ $value->product->subcategory->currentDescription->name ?? "" }} {{ $value->quantity_sold }} {{ __("general.".$value->status) }} {{ __('dashboard.edit') }}
@endif
--}}
@endsection @section('inner_js') @endsection