translate base

This commit is contained in:
Mekan1206
2026-07-31 18:08:08 +05:00
parent a794dacd39
commit 581cb8241c
413 changed files with 9087 additions and 428 deletions

View File

@@ -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',