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

@@ -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([