translate base
This commit is contained in:
@@ -6,12 +6,16 @@ namespace App\Filament\Widgets;
|
||||
|
||||
use App\Models\Employee;
|
||||
use Filament\Widgets\ChartWidget;
|
||||
|
||||
class MonthlyHiringChart extends ChartWidget
|
||||
{
|
||||
protected ?string $heading = 'Monthly Hiring (Last 12 Months)';
|
||||
|
||||
protected int | string | array $columnSpan = 1;
|
||||
|
||||
public function getHeading(): ?string
|
||||
{
|
||||
return __('hr.widgets.monthly_hiring');
|
||||
}
|
||||
|
||||
protected function getType(): string
|
||||
{
|
||||
return 'bar';
|
||||
@@ -35,7 +39,7 @@ class MonthlyHiringChart extends ChartWidget
|
||||
return [
|
||||
'datasets' => [
|
||||
[
|
||||
'label' => 'New Hires',
|
||||
'label' => __('hr.widgets.new_hires'),
|
||||
'data' => $data,
|
||||
'backgroundColor' => '#3b82f6',
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user