feat: add i18n support for Vietnamese and English
This commit is contained in:
@@ -35,29 +35,29 @@ class AvgProcessingTimeWidget extends BaseWidget
|
||||
|
||||
$avgDisplay = $avgMinutes ? round($avgMinutes) . ' min' : 'N/A';
|
||||
$avgDescription = $avgMinutes
|
||||
? 'Avg time from creation to resolution'
|
||||
: 'No resolved tickets yet';
|
||||
? __('app.widget_avg_time_desc')
|
||||
: __('app.widget_no_resolved_tickets');
|
||||
|
||||
return [
|
||||
Stat::make('Resolved Tickets', (string) $totalResolved)
|
||||
->description('Total resolved/closed tickets')
|
||||
Stat::make(__('app.widget_resolved_tickets'), (string) $totalResolved)
|
||||
->description(__('app.widget_total_resolved_closed'))
|
||||
->descriptionIcon('heroicon-m-check-circle')
|
||||
->color('success')
|
||||
->chart([7, 3, 4, 5, 6, 8, $totalResolved]),
|
||||
|
||||
Stat::make('Avg Processing Time', $avgDisplay)
|
||||
Stat::make(__('app.widget_avg_processing_time'), $avgDisplay)
|
||||
->description($avgDescription)
|
||||
->descriptionIcon('heroicon-m-clock')
|
||||
->color('info'),
|
||||
|
||||
Stat::make('Pending Tickets', (string) $totalPending)
|
||||
->description('Still in progress')
|
||||
Stat::make(__('app.widget_pending_tickets'), (string) $totalPending)
|
||||
->description(__('app.widget_still_in_progress'))
|
||||
->descriptionIcon('heroicon-m-arrow-path')
|
||||
->color('warning')
|
||||
->chart([3, 5, 4, 6, 5, 4, $totalPending]),
|
||||
|
||||
Stat::make('Escalated', (string) $escalatedCount)
|
||||
->description('Tickets marked as escalated')
|
||||
Stat::make(__('app.widget_escalated'), (string) $escalatedCount)
|
||||
->description(__('app.widget_escalated_desc'))
|
||||
->descriptionIcon('heroicon-m-exclamation-triangle')
|
||||
->color('danger'),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user