translate base
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user