@extends('admin.layouts.app') @section('title', translate('Dashboard')) @section('container', 'container-max-xxl') @section('content') @if (!@$settings->cronjob->last_execution)

{{ translate('Cron Job Not Working') }}

{{ translate("It seems that your Cron Job isn't set up correctly, which might be causing it not to work as expected. Please double-check and ensure that your Cron Job is properly configured.") }}

{{ translate('Cron Job is required by multiple things to be run (Emails, Badges, Discounts, Cache, Sitemap, etc...)') }}

{{ translate('Setup Cron Job') }}
@endif @if (!@$settings->smtp->status)

{{ translate('SMTP Is Not Enabled') }}

{{ translate('SMTP is not enabled, set it now to be able to recover the password and use all the features that needs to send an email.') }}

{{ translate('Setup SMTP') }}
@endif

{{ translate('Total Sales (:count)', ['count' => number_format($counters['total_sales'])]) }}

{{ getAmount($counters['total_sales_amount']) }}

{{ translate('Support Sales (:count)', ['count' => number_format($counters['support_sales'])]) }}

{{ getAmount($counters['support_sales_amount']) }}

{{ translate('Total Items') }}

{{ number_format($counters['total_items']) }}

{{ translate('Total Sales') }}

{{ number_format($counters['total_sales']) }}

{{ translate('Total Refunds') }}

{{ number_format($counters['total_refunds']) }}

{{ translate('Total Users') }}

{{ number_format($counters['total_users']) }}

{{ translate('Total Transactions') }}

{{ number_format($counters['total_transactions']) }}

{{ translate('Total Tickets') }}

{{ number_format($counters['total_tickets']) }}

@if (licenseType(2) && @$settings->premium->status)

{{ translate('Free Subscriptions') }}

{{ number_format($counters['premium_free_subscriptions']) }}

{{ translate('Paid Subscriptions') }}

{{ number_format($counters['premium_paid_subscriptions']) }}

{{ translate('Premium Earnings') }}

{{ getAmount($counters['premium_total_earnings']) }}

@endif

{{ translate('Users Statistics For This Month') }}

{{ translate('Recently registered') }}

@forelse ($users as $user)
{{ $user->getName() }}

{{ $user->created_at->diffforhumans() }}

@empty @include('admin.partials.empty') @endforelse

{{ translate('Top Selling Items') }}

@forelse ($topSellingItems as $topSellingItem) @php $item = $topSellingItem->item; @endphp
{{ shorterText($item->name, 50) }}

{{ translate('Sales (:count)', ['count' => numberFormat($topSellingItem->total_sales)]) }}

@empty @include('admin.partials.empty') @endforelse

{{ translate('Sales Statistics For This Month') }}

{{ translate('Purchasing Countries') }}

{{ translate('Top Purchasing Countries') }}

@forelse ($topPurchasingCountries as $topPurchasingCountry)
{{ countries($topPurchasingCountry->country) }}
{{ countries($topPurchasingCountry->country) }}
{{ getAmount($topPurchasingCountry->total_spend) }}
@empty @include('admin.partials.empty') @endforelse
@push('top_scripts') @php $chartsConfig = [ 'users' => $charts['users'], 'sales' => $charts['sales'], 'geo' => [ 'data' => [], ], ]; $chartsConfig['geo']['data'][] = ['Country', translate('Sales')]; if (!$geoCountries->isEmpty()) { foreach ($geoCountries as $geoCountry) { $chartsConfig['geo']['data'][] = [$geoCountry->country, (int) $geoCountry->total_sales]; } } @endphp @endpush @push('scripts_libs') @endpush @endsection