@if($startDate || $endDate) @endif
{{ __('admin.analytics.stats.total_users') }}
{{ number_format($usersStats['total'], 0, ',', ' ') }}
{{ $usersStats['growth'] >= 0 ? '+' : '' }}{{ $usersStats['growth'] }}% {{ __('admin.analytics.stats.vs_period') }}
{{ __('admin.analytics.stats.total_quizzes') }}
{{ number_format($quizzesStats['total'], 0, ',', ' ') }}
{{ $quizzesStats['growth'] >= 0 ? '+' : '' }}{{ $quizzesStats['growth'] }}% {{ __('admin.analytics.stats.vs_period') }}
{{ __('admin.analytics.stats.active_subscriptions') }}
{{ number_format($subscriptionsStats['total'], 0, ',', ' ') }}
{{ $subscriptionsStats['growth'] >= 0 ? '+' : '' }}{{ $subscriptionsStats['growth'] }}% {{ __('admin.analytics.stats.vs_period') }}
{{ __('admin.analytics.popular_subjects.title') }}
@forelse($popularSubjects as $subject)
{{ $subject->name }} {{ number_format($subject->quiz_count, 0, ',', ' ') }} {{ __('admin.analytics.popular_subjects.quizzes') }}
@php $maxQuizzes = $popularSubjects->max('quiz_count'); $percentage = $maxQuizzes > 0 ? ($subject->quiz_count / $maxQuizzes) * 100 : 0; @endphp
@empty

{{ __('admin.analytics.popular_subjects.no_data') }}

@endforelse
{{ __('admin.analytics.geographic.title') }}
@forelse($geographicDistribution as $location)
{{ $location->country_flag }} {{ $location->country_name }} {{ number_format($location->user_count, 0, ',', ' ') }}
{{ $location->percentage }}% {{ __('admin.analytics.geographic.of_total') }}
@empty

{{ __('admin.analytics.geographic.no_data') }}

@endforelse