@php $title = admin_trans('user_growth_chart'); $description = 'Track user registration growth over the last 12 months'; $icon = 'trending-up'; $stats = [ [ 'label' => 'Total Users', 'value' => number_format(array_sum(array_column($monthlyData, 'count'))), 'icon' => 'users', 'color' => 'primary' ], [ 'label' => 'This Month', 'value' => number_format(end($monthlyData)['count']), 'icon' => 'user-plus', 'color' => 'success' ], [ 'label' => 'Average/Month', 'value' => number_format(array_sum(array_column($monthlyData, 'count')) / count($monthlyData)), 'icon' => 'activity', 'color' => 'secondary' ], [ 'label' => 'Peak Month', 'value' => max(array_column($monthlyData, 'count')), 'icon' => 'zap', 'color' => 'warning' ], ]; @endphp @extends('admin.analytics.base') @section('analytics-content')