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

@@ -24,11 +24,11 @@ class EmployeeDocumentsTable
return $table
->columns([
TextColumn::make('employee.full_name')
->label('Employee')
->label(__('hr.fields.employee'))
->searchable()
->sortable(),
TextColumn::make('document_type')
->label('Type')
->label(__('hr.fields.type'))
->badge()
->color(fn (DocumentType $state): string => $state->color())
->formatStateUsing(fn (DocumentType $state): string => $state->label())
@@ -56,13 +56,13 @@ class EmployeeDocumentsTable
])
->filters([
SelectFilter::make('document_type')
->label('Type')
->label(__('hr.fields.type'))
->options(DocumentType::class),
TrashedFilter::make(),
])
->recordActions([
Action::make('download')
->label('Download')
->label(__('hr.actions.download'))
->icon('heroicon-o-arrow-down-tray')
->visible(fn (EmployeeDocument $record): bool => filled($record->file_path))
->action(function (EmployeeDocument $record) {