translate base
This commit is contained in:
@@ -26,20 +26,20 @@ class ShiftsTable
|
||||
->searchable()
|
||||
->sortable(),
|
||||
TextColumn::make('starts_at')
|
||||
->label('Starts')
|
||||
->label(__('hr.fields.starts'))
|
||||
->time()
|
||||
->sortable(),
|
||||
TextColumn::make('ends_at')
|
||||
->label('Ends')
|
||||
->label(__('hr.fields.ends'))
|
||||
->time()
|
||||
->sortable(),
|
||||
TextColumn::make('description')
|
||||
->limit(50)
|
||||
->toggleable(),
|
||||
TextColumn::make('is_active')
|
||||
->label('Status')
|
||||
->label(__('hr.fields.status'))
|
||||
->badge()
|
||||
->formatStateUsing(fn (bool $state): string => $state ? 'Active' : 'Inactive')
|
||||
->formatStateUsing(fn (bool $state): string => $state ? __('enums.employment_status.active') : __('enums.employment_status.inactive'))
|
||||
->color(fn (bool $state): string => $state ? 'success' : 'danger')
|
||||
->sortable(),
|
||||
TextColumn::make('created_at')
|
||||
@@ -57,10 +57,10 @@ class ShiftsTable
|
||||
])
|
||||
->filters([
|
||||
TernaryFilter::make('is_active')
|
||||
->label('Status')
|
||||
->placeholder('All shifts')
|
||||
->trueLabel('Active')
|
||||
->falseLabel('Inactive'),
|
||||
->label(__('hr.fields.status'))
|
||||
->placeholder(__('hr.filters.all_shifts'))
|
||||
->trueLabel(__('enums.employment_status.active'))
|
||||
->falseLabel(__('enums.employment_status.inactive')),
|
||||
TrashedFilter::make(),
|
||||
])
|
||||
->recordActions([
|
||||
|
||||
Reference in New Issue
Block a user