@extends('admin.layouts.app') @section('title', admin_trans('dashboard')) @section('page-title', admin_trans('dashboard')) @section('content')

{{ admin_trans('total_users') }}

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

@php $growth = $stats['users_growth']; $variant = $growth >= 0 ? 'success' : 'danger'; $icon = $growth >= 0 ? 'trending-up' : 'trending-down'; @endphp {{ abs($growth) }}% {{ admin_trans('vs_last_month') }}

{{ admin_trans('total_stores') }}

{{ number_format($stats['total_stores']) }}

@php $growth = $stats['stores_growth']; $variant = $growth >= 0 ? 'success' : 'danger'; $icon = $growth >= 0 ? 'trending-up' : 'trending-down'; @endphp {{ abs($growth) }}% {{ admin_trans('vs_last_month') }}

{{ admin_trans('total_offers') }}

{{ number_format($stats['total_offers']) }}

@php $growth = $stats['offers_growth']; $variant = $growth >= 0 ? 'success' : 'danger'; $icon = $growth >= 0 ? 'trending-up' : 'trending-down'; @endphp {{ abs($growth) }}% {{ admin_trans('vs_last_month') }}

{{ admin_trans('active_offers') }}

{{ number_format($stats['active_offers']) }}

@php $growth = $stats['active_offers_growth']; $variant = $growth >= 0 ? 'success' : 'danger'; $icon = $growth >= 0 ? 'trending-up' : 'trending-down'; @endphp {{ abs($growth) }}% {{ admin_trans('vs_last_month') }}
@if(!empty($quickActions))

{{ admin_trans('quick_actions') }}

@endif

{{ admin_trans('users_chart_title') }}

{{ number_format($chartsData['users']['total']) }}

{{ admin_trans('offers_chart_title') }}

{{ number_format($chartsData['offers']['total']) }}

{{ admin_trans('categories_chart_title') }}

{{ admin_trans('activity_chart_title') }}

{{ admin_trans('recent_activity') }}

{{ admin_trans('view_all') }}
@forelse($recentActivities as $activity)

{{ $activity['title'] }}

{{ $activity['description'] }}

{{ $activity['time'] }}

@empty @endforelse

{{ admin_trans('top_stores') }}

@forelse($topPerformers['stores'] as $index => $store) @php $storeName = $store->translations->first()->name ?? admin_trans('store'); $rankColors = ['🥇', '🥈', '🥉', '4️⃣', '5️⃣']; @endphp
{{ $rankColors[$index] ?? ($index + 1) }}

{{ $storeName }}

{{ $store->offers_count }} {{ admin_trans('offers') }}

{{ $store->offers_count }}
@empty

{{ admin_trans('no_data') }}

@endforelse

{{ number_format($stats['total_subscriptions']) }}

{{ admin_trans('total_subscriptions') }}

{{ number_format($stats['expiring_soon_offers']) }}

{{ admin_trans('expiring_soon_offers') }}

@endsection @push('scripts') @endpush