diff --git a/app/components/dashboard/AdminDashboard.vue b/app/components/dashboard/AdminDashboard.vue index 2d27790..f1e07b3 100644 --- a/app/components/dashboard/AdminDashboard.vue +++ b/app/components/dashboard/AdminDashboard.vue @@ -12,28 +12,59 @@ const { data: statsRes, pending } = useAsyncData('admin-stats', () => getOvervie
+
-

{{ statsRes.total_users || 0 }}

-

Utenti Registrati

+

+ {{ statsRes.reports_by_status?.reduce((sum, item) => sum + Number(item.total), 0) || 0 }} +

+

Totale Segnalazioni

+ +
+
+
+
+

+ {{ statsRes.reports_by_status?.find(s => s.status === 'OPEN')?.total ?? 0 }} +

+

Aperte (Da Gestire)

+
+
+
+
+

- {{ statsRes.open_reports ?? statsRes.reports_by_status?.find(s => s.status === 'OPEN')?.total ?? 0 }} + {{ statsRes.reports_by_status?.find(s => s.status === 'ASSIGNED')?.total ?? 0 }}

-

Segn. Aperte

+

In Carico (Assegnate)

+ +
+
+
+
+

+ {{ statsRes.reports_by_status?.find(s => s.status === 'CLOSED')?.total ?? 0 }} +

+

Risolte (Chiuse)

+
+
+
+
+

Gestione Sistema