@extends('admin.layouts.container') @section('css')@endsection @push('stack_styles') @endpush @section('content')
{{--
{{__('dashboard.members')}}
--}} {{--
{{__('dashboard.visits2')}}
--}}
{{__('dashboard.visits2')}}
{{--
{{__('dashboard.reservations')}}
--}} {{--
{{__('dashboard.app_profits')}}
--}}
{{-- @foreach($totalDownloads as $td)

{{__("dashboard.$td")}}

{{ $settings[$td] ?? 0 }}

@endforeach --}} {{--

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

{{ $totalRatings }}

--}} {{--

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

{{ $dailyOrdersNumber }}

--}} {{--

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

{{ $monthlyOrdersNumber }}

--}} {{--

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

{{$onlineVisits}}

--}}

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

{{$todayVisitors}}

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

{{ $weekVisitors ?? 0 }}

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

{{ $monthVisitors }}

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

{{ $yearVisitors ?? 0 }}

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

{{ $totalVisitors }}

{{--

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

{{ $totalReservations }}

--}} @foreach(getUsersRoles() as $role)

{{ getUserRoleName($role) }}

{{ $totalUsers[$role] ?? 0 }}

@endforeach {{--

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

{{ $productsCount ?? 0 }}

--}} {{--

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

{{ $systemProfits ?? 0 }} {{$defaultCurrencyCode}}

--}} {{--

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

{{ $totalAmountsPaid ?? 0 }} {{$defaultCurrencyCode}}

--}}

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

{{ $totalCourses ?? 0 }}

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

{{ $courseRevenues ?? 0 }} {{$defaultCurrencyCode}}

{{--

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

{{ $totalOrders }}

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

{{ getOrderStatusName($statusId) }}

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

@endforeach --}} {{--

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

{{ $subscriptionsAmounts ?? 0 }} {{$defaultCurrencyCode}}

--}} {{--

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

{{ $subscriptionsCount }}

--}} {{--

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

{{ $totalPlans ?? 0 }}

--}} {{-- @foreach(getPlanStatusIds() as $statusId)

{{ getPlanStatusName($statusId) }}

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

@endforeach --}} {{--

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

{{ $totalSubscriptions ?? 0 }}

--}} {{--

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

{{ ($plansTotal ?? 0). " " }} {{$defaultCurrencyCode}}

--}} {{--

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

{{ ($plansSystemCommissionTotal ?? 0). " " }} {{$defaultCurrencyCode}}

--}} {{--

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

{{ ($plansDriverCommissionTotal ?? 0). " " }} {{$defaultCurrencyCode}}

--}} {{--

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

{{ ($pickupDriversCommissionTotal ?? 0). " " }} {{$defaultCurrencyCode}}

--}} {{--

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

{{ ($reservationsPrice ?? 0). " " .getCurrencyName() }}

--}} {{--

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

{{ ($reservationsServicesPrice ?? 0). " " .getCurrencyName() }}

--}}
{{--

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

@foreach($mostReservedAnnouncements as $value) @endforeach
{{ __('dashboard.ad_name') }} {{ __('dashboard.number_booking_times') }}
{{ $value->announcement->currentDescription->title ?? "" }} {{ $value->announcement_count }}

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

@foreach($mostBookedCustomers as $value) @endforeach
{{ __('dashboard.user_name') }} {{ __('dashboard.number_booking_times') }}
{{ $value->user->name ?? $value->user->username ?? "" }} {{ $value->count_items }}
--}} {{--

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

@foreach($mostOrderedProviders as $value) @endforeach
{{ getUserRoleName('provider') }} {{ __('dashboard.orders_number') }} {{ __('users::users.status') }} {{ __('dashboard.processes') }}
{{ $value->provider->name ?? "" }} {{ $value->count_orders }} {{ isset($value->provider->status) ? __("general.".$value->provider->status) : "" }} provider->id ?? 0) }}" class="icon" title="{{ __('dashboard.edit') }}"> {{ __('dashboard.edit') }}

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

@foreach($mostDeliveredReps as $value) @endforeach
{{ getUserRoleName('rep') }} {{ __('dashboard.deliveries_number') }} {{ __('users::users.status') }} {{ __('dashboard.processes') }}
{{ $value->rep->name ?? "" }} {{ $value->count_orders }} {{ $value->rep->status ? __("general.".$value->rep->status) : "" }} rep->id ?? 0) }}" class="icon" title="{{ __('dashboard.edit') }}"> {{ __('dashboard.edit') }}

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

@foreach($mostOrderedCustomers as $value) @endforeach
{{ getUserRoleName('user') }} {{ __('dashboard.orders_number') }} {{ __('users::users.status') }} {{ __('dashboard.processes') }}
{{ $value->user->name ?? "" }} {{ $value->count_orders }} {{ $value->user->status ? __("general.".$value->user->status) : "" }} user->id ?? 0) }}" class="icon" title="{{ __('dashboard.edit') }}"> {{ __('dashboard.edit') }}

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

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