diff --git a/src/views/AdminDashboardView.vue b/src/views/AdminDashboardView.vue index dedd20b..5a86889 100644 --- a/src/views/AdminDashboardView.vue +++ b/src/views/AdminDashboardView.vue @@ -1,27 +1,74 @@ @@ -123,7 +288,7 @@ function getPlanBadge(plan: string) {
🛡️

- SeCu Admin Panel + SeCu Super-Admin Panel

@@ -145,115 +310,279 @@ function getPlanBadge(plan: string) {
- -
-
-
{{ stats.org_count }}
-
Organisationen
-
-
-
{{ stats.user_count }}
-
Benutzer
-
-
-
{{ stats.order_count }}
-
Aufträge
-
-
-
{{ stats.timesheet_count }}
-
Stundenzettel
-
-
- - -
-

- 📢 Broadcast an alle Kunden -

-
- - - -
-
- - -
-

+ +
+ +

- -
- - - - - - - - - - - - - - - - - - - - - - - -
OrganisationSlugPlanUsersAufträgeErstellt
- {{ org.name }} - {{ org.slug }} - - {{ org.settings?.plan || 'free' }} - - {{ org.user_count }}{{ org.order_count }}{{ formatDate(org.created_at) }} - -
+ + +
+ + +
+ +
+
+
{{ stats.org_count }}
+
Organisationen
+
+
+
{{ stats.user_count }}
+
Benutzer
+
+
+
{{ stats.order_count }}
+
Aufträge
+
+
+
{{ stats.timesheet_count }}
+
Stundenzettel
+
+
+ + +
+

Subscription Status

+
+
+
+ {{ organizations.filter(o => o.subscription_status === 'free').length }} +
+
Freigestellt
+
+
+
+ {{ organizations.filter(o => o.subscription_status === 'active').length }} +
+
Aktiv
+
+
+
+ {{ organizations.filter(o => o.subscription_status === 'trial').length }} +
+
Trial
+
+
+
+ {{ organizations.filter(o => o.subscription_status === 'paused').length }} +
+
Pausiert
+
+
+
+ {{ organizations.filter(o => o.subscription_status === 'expired' || (!o.subscription_status)).length }} +
+
Abgelaufen
+
+
+
+
+ + +
+ +
+
+
+ +
+ +
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + +
OrganisationStatusPlanLäuft abUsersAktionen
+
{{ org.name }}
+
{{ org.slug }}
+
+ + {{ getStatusLabel(org.subscription_status) }} + + + + {{ org.subscription_plan || 'starter' }} + + + + + + + + {{ org.user_count }} + +
+ + + +
+
+
+
+
+ + +
+
+

🧩 Standard-Module & Preise

+

+ Diese Module können pro Organisation aktiviert/deaktiviert werden. Premium-Module kosten extra. +

+ +
+
+
+
+ {{ mod.icon }} +

{{ mod.name }}

+

{{ mod.description }}

+
+
+
+ Inklusive +
+
+ +{{ mod.price }}€/Mo +
+
+
+
+
- +
-
+
+
-

- {{ selectedOrg?.name }} -

-
- -
- -
+ + +
+ + + +
+ + +
+ {{ actionMessage }} +
+ + +
+
{{ orgDetails.users?.length || 0 }}
Benutzer
@@ -263,42 +592,180 @@ function getPlanBadge(plan: string) {
Aufträge
-
{{ orgDetails.stats?.timesheet_count || 0 }}
-
Stundenzettel
+
{{ orgDetails.stats?.enabled_modules || 0 }}
+
Module
- - -
-

Benutzer

-
-
-
-
- {{ user.first_name }} {{ user.last_name }} - (inaktiv) -
-
{{ user.email }} • {{ user.role }}
-
- + +

Benutzer

+
+
+
+
{{ user.first_name }} {{ user.last_name }}
+
{{ user.email }} • {{ user.role }}
+ +
+ +
-
- Lädt... + + +
+
+
+
+ Status: + + {{ getStatusLabel(selectedOrg.subscription_status) }} + +
+
+ Plan: + {{ selectedOrg.subscription_plan || 'starter' }} +
+
+ Trial endet: + {{ formatDate(selectedOrg.trial_ends_at) }} +
+
+ Abo endet: + {{ formatDate(selectedOrg.subscription_ends_at) }} +
+
+
+ +

Aktionen

+ +
+ + + + + + + + + + + + + + + + + +
+
+ + +
+
+
+
+ {{ mod.icon }} +
+
{{ mod.name }}
+
{{ mod.description }}
+
+
+
+ + +{{ mod.price }}€ + + + Inklusive + + +
+
+
+ +