diff --git a/resources/lang/de/translations.php b/resources/lang/de/translations.php new file mode 100644 index 0000000..26713de --- /dev/null +++ b/resources/lang/de/translations.php @@ -0,0 +1,20 @@ + 'Queue Job Monitor', + 'title' => 'Queued Jobs', + 'navigation_label' => 'Jobs', + 'navigation_group' => 'System', + 'total_jobs' => 'Ausgeführte Jobs', + 'pending_jobs' => 'Wartende Jobs', + 'execution_time' => 'Gesamtlaufzeit', + 'average_time' => 'Durchschnittliche Laufzeit', + 'succeeded' => 'Erfolgreich', + 'failed' => 'Fehlgeschlagen', + 'running' => 'Läuft', + 'status' => 'Status', + 'name' => 'Name', + 'queue' => 'Queue', + 'progress' => 'Fortschritt', + 'started_at' => 'Gestartet am', +]; diff --git a/resources/lang/en/translations.php b/resources/lang/en/translations.php index 119a188..0638e1e 100644 --- a/resources/lang/en/translations.php +++ b/resources/lang/en/translations.php @@ -6,6 +6,7 @@ 'navigation_label' => 'Jobs', 'navigation_group' => 'System', 'total_jobs' => 'Total Jobs Executed', + 'pending_jobs' => 'Pending Jobs', 'execution_time' => 'Total Execution Time', 'average_time' => 'Average Execution Time', 'succeeded' => 'Succeeded', diff --git a/resources/lang/es/translations.php b/resources/lang/es/translations.php index b53ee5a..8be430f 100644 --- a/resources/lang/es/translations.php +++ b/resources/lang/es/translations.php @@ -6,6 +6,7 @@ 'navigation_label' => 'Trabajos', 'navigation_group' => 'Sistema', 'total_jobs' => 'Total Trabajos Ejecutados', + 'pending_jobs' => 'Trabajos Pendientes', 'execution_time' => 'Tiempo Total de Ejecución', 'average_time' => 'Tiempo Promedio de Ejecución', 'succeeded' => 'Exitoso', diff --git a/resources/lang/fr/translations.php b/resources/lang/fr/translations.php index 18b1ea8..e7fde6a 100644 --- a/resources/lang/fr/translations.php +++ b/resources/lang/fr/translations.php @@ -6,6 +6,7 @@ 'navigation_label' => 'Jobs', 'navigation_group' => 'Système', 'total_jobs' => 'Total Jobs Executé(s)', + 'pending_jobs' => 'Jobs en attente', 'execution_time' => "Temps Total d'Execution", 'average_time' => "Temps moyen d'Execution", 'succeeded' => 'Succes', diff --git a/src/Resources/QueueMonitorResource/Widgets/QueueStatsOverview.php b/src/Resources/QueueMonitorResource/Widgets/QueueStatsOverview.php index e70146b..a6dd5b8 100644 --- a/src/Resources/QueueMonitorResource/Widgets/QueueStatsOverview.php +++ b/src/Resources/QueueMonitorResource/Widgets/QueueStatsOverview.php @@ -6,6 +6,7 @@ use Filament\Widgets\StatsOverviewWidget as BaseWidget; use Filament\Widgets\StatsOverviewWidget\Card; use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Queue; class QueueStatsOverview extends BaseWidget { @@ -23,6 +24,7 @@ protected function getCards(): array return [ Card::make(__('filament-jobs-monitor::translations.total_jobs'), $aggregatedInfo->count ?? 0), + Card::make(__('filament-jobs-monitor::translations.pending_jobs'), Queue::size()), Card::make(__('filament-jobs-monitor::translations.execution_time'), ($aggregatedInfo->total_time_elapsed ?? 0).'s'), Card::make(__('filament-jobs-monitor::translations.average_time'), ceil((float) $aggregatedInfo->average_time_elapsed).'s' ?? 0), ];