translate base
This commit is contained in:
@@ -9,10 +9,13 @@ use Filament\Widgets\ChartWidget;
|
||||
|
||||
class DepartmentDistributionChart extends ChartWidget
|
||||
{
|
||||
protected ?string $heading = 'Employees by Department';
|
||||
|
||||
protected int | string | array $columnSpan = 1;
|
||||
|
||||
public function getHeading(): ?string
|
||||
{
|
||||
return __('hr.widgets.employees_by_department');
|
||||
}
|
||||
|
||||
protected function getType(): string
|
||||
{
|
||||
return 'doughnut';
|
||||
@@ -28,7 +31,7 @@ class DepartmentDistributionChart extends ChartWidget
|
||||
return [
|
||||
'datasets' => [
|
||||
[
|
||||
'label' => 'Employees',
|
||||
'label' => __('hr.widgets.employees'),
|
||||
'data' => $departments->pluck('employees_count')->all(),
|
||||
'backgroundColor' => [
|
||||
'#3b82f6',
|
||||
|
||||
Reference in New Issue
Block a user