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

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

{{ $totalOrders }}

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

{{ $memberProfits ? $memberProfits. " " .getCurrencyName() : "" }}

@foreach(getOrderStatusIds() as $statusId)

{{ getOrderStatusName($statusId) }}

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

@endforeach

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

{{ $totalRatings }}

{{ __('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 }}

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

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