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

@@ -13,10 +13,13 @@ use Illuminate\Database\Eloquent\Builder;
class RecentReportsWidget extends TableWidget
{
protected static ?string $heading = 'Recent Disciplinary Reports';
protected int | string | array $columnSpan = 'full';
public function getHeading(): ?string
{
return __('hr.widgets.recent_disciplinary_reports');
}
public function table(Table $table): Table
{
return $table
@@ -28,7 +31,7 @@ class RecentReportsWidget extends TableWidget
)
->columns([
TextColumn::make('employee.full_name')
->label('Employee'),
->label(__('hr.fields.employee')),
TextColumn::make('report_date')
->date(),
TextColumn::make('title')
@@ -38,7 +41,7 @@ class RecentReportsWidget extends TableWidget
->color(fn (DisciplinarySeverity $state): string => $state->color())
->formatStateUsing(fn (DisciplinarySeverity $state): string => $state->label()),
TextColumn::make('creator.name')
->label('Created By'),
->label(__('hr.fields.created_by')),
])
->paginated(false);
}