Add dashboard and widgets: Implemented a new Dashboard page with various widgets including Content Overview, Recent Activities, System Stats, Translation Progress, and User Activity. Added localization support for dashboard elements in English and Turkish.

This commit is contained in:
Ümit Tunç
2025-10-24 16:16:27 -03:00
parent 64a662d22a
commit 1da81a1874
9 changed files with 604 additions and 1 deletions
+107
View File
@@ -0,0 +1,107 @@
<?php
return [
'title' => 'Dashboard',
'navigation_label' => 'Dashboard',
// Widgets
'widgets' => [
'system_stats' => [
'title' => 'System Statistics',
'description' => 'Platform overview',
],
'recent_activities' => [
'title' => 'Recent Activities',
'description' => 'Latest created content',
],
'translation_progress' => [
'title' => 'Translation Status',
'description' => 'Translation progress by language',
],
'user_activity' => [
'title' => 'User Activity',
'description' => 'Active users and roles',
],
'content_overview' => [
'title' => 'Content Overview',
'description' => 'Pages and translation status',
],
],
// Stats labels
'stats' => [
'total_users' => 'Total Users',
'total_pages' => 'Total Pages',
'total_translations' => 'Total Translations',
'active_languages' => 'Active Languages',
'published_pages' => 'Published Pages',
'draft_translations' => 'Draft Translations',
'pending_translations' => 'Pending Translations',
'published_translations' => 'Published Translations',
],
// Activity labels
'activities' => [
'recent_pages' => 'Recent Pages',
'recent_translations' => 'Recent Translations',
'recent_users' => 'Recent Users',
'no_activity' => 'No activity yet',
'view_all' => 'View All',
'creator' => 'Creator',
],
// Translation progress
'translation_progress' => [
'language' => 'Language',
'native_name' => 'Native Name',
'total_fields' => 'Total Fields',
'translated_fields' => 'Translated Fields',
'progress_percentage' => 'Progress',
'status' => 'Status',
'last_updated' => 'Last Updated',
'active' => 'Active',
'default' => 'Default',
],
// User activity
'user_activity' => [
'active_users' => 'Active Users',
'user_roles' => 'User Roles',
'last_login' => 'Last Login',
'created_at' => 'Created At',
'role' => 'Role',
'permissions' => 'Permissions',
'username' => 'Username',
'email' => 'Email',
'email_verified' => 'Email Verified',
'unverified' => 'Unverified',
],
// Content overview
'content_overview' => [
'pages_by_status' => 'Pages by Status',
'translations_by_status' => 'Translations by Status',
'published' => 'Published',
'draft' => 'Draft',
'review' => 'Review',
'approved' => 'Approved',
],
// Messages
'messages' => [
'welcome' => 'Welcome to Citrus Platform!',
'system_healthy' => 'System is running healthy',
'no_data' => 'No data available yet',
'loading' => 'Loading...',
],
// Actions
'actions' => [
'create_page' => 'New Page',
'create_translation' => 'New Translation',
'manage_users' => 'User Management',
'manage_languages' => 'Language Management',
'view_reports' => 'View Reports',
],
];
+107
View File
@@ -0,0 +1,107 @@
<?php
return [
'title' => 'Dashboard',
'navigation_label' => 'Dashboard',
// Widgets
'widgets' => [
'system_stats' => [
'title' => 'Sistem İstatistikleri',
'description' => 'Platform genel durumu',
],
'recent_activities' => [
'title' => 'Son Aktiviteler',
'description' => 'Son oluşturulan içerikler',
],
'translation_progress' => [
'title' => 'Çeviri Durumu',
'description' => 'Dil bazında çeviri ilerlemesi',
],
'user_activity' => [
'title' => 'Kullanıcı Aktivitesi',
'description' => 'Aktif kullanıcılar ve roller',
],
'content_overview' => [
'title' => 'İçerik Özeti',
'description' => 'Sayfa ve çeviri durumu',
],
],
// Stats labels
'stats' => [
'total_users' => 'Toplam Kullanıcı',
'total_pages' => 'Toplam Sayfa',
'total_translations' => 'Toplam Çeviri',
'active_languages' => 'Aktif Dil',
'published_pages' => 'Yayınlanan Sayfa',
'draft_translations' => 'Taslak Çeviri',
'pending_translations' => 'Bekleyen Çeviri',
'published_translations' => 'Yayınlanan Çeviri',
],
// Activity labels
'activities' => [
'recent_pages' => 'Son Sayfalar',
'recent_translations' => 'Son Çeviriler',
'recent_users' => 'Son Kullanıcılar',
'no_activity' => 'Henüz aktivite yok',
'view_all' => 'Tümünü Görüntüle',
'creator' => 'Oluşturan',
],
// Translation progress
'translation_progress' => [
'language' => 'Dil',
'native_name' => 'Yerel Ad',
'total_fields' => 'Toplam Alan',
'translated_fields' => 'Çevrilen Alan',
'progress_percentage' => 'İlerleme',
'status' => 'Durum',
'last_updated' => 'Son Güncelleme',
'active' => 'Aktif',
'default' => 'Varsayılan',
],
// User activity
'user_activity' => [
'active_users' => 'Aktif Kullanıcılar',
'user_roles' => 'Kullanıcı Rolleri',
'last_login' => 'Son Giriş',
'created_at' => 'Oluşturulma',
'role' => 'Rol',
'permissions' => 'Yetkiler',
'username' => 'Kullanıcı Adı',
'email' => 'E-posta',
'email_verified' => 'E-posta Doğrulandı',
'unverified' => 'Doğrulanmamış',
],
// Content overview
'content_overview' => [
'pages_by_status' => 'Sayfa Durumları',
'translations_by_status' => 'Çeviri Durumları',
'published' => 'Yayınlanan',
'draft' => 'Taslak',
'review' => 'İnceleme',
'approved' => 'Onaylanan',
],
// Messages
'messages' => [
'welcome' => 'Citrus Platform\'a hoş geldiniz!',
'system_healthy' => 'Sistem sağlıklı çalışıyor',
'no_data' => 'Henüz veri bulunmuyor',
'loading' => 'Yükleniyor...',
],
// Actions
'actions' => [
'create_page' => 'Yeni Sayfa',
'create_translation' => 'Yeni Çeviri',
'manage_users' => 'Kullanıcı Yönetimi',
'manage_languages' => 'Dil Yönetimi',
'view_reports' => 'Raporları Görüntüle',
],
];