Add labels for various fields across HR resources to improve localization and user experience.
This commit is contained in:
1 parent
8147f23750
commit
e3ec83686c
52 files changed
+363
-26
No files matched your search
@@ -29,9 +29,11 @@ public static function configure(Table $table): Table
|
||||
->dateTime()
|
||||
->sortable(),
|
||||
TextColumn::make('description')
|
||||
->label(__('hr.fields.description'))
|
||||
->searchable()
|
||||
->limit(50),
|
||||
TextColumn::make('event')
|
||||
->label(__('hr.fields.event'))
|
||||
->badge()
|
||||
->searchable()
|
||||
->sortable(),
|
||||
@@ -48,6 +50,7 @@ public static function configure(Table $table): Table
|
||||
->searchable()
|
||||
->sortable(),
|
||||
TextColumn::make('log_name')
|
||||
->label(__('hr.fields.log_name'))
|
||||
->toggleable(isToggledHiddenByDefault: true),
|
||||
])
|
||||
->defaultSort('created_at', 'desc')
|
||||
@@ -63,6 +66,7 @@ public static function configure(Table $table): Table
|
||||
User::class => __('hr.audit.user'),
|
||||
]),
|
||||
SelectFilter::make('event')
|
||||
->label(__('hr.fields.event'))
|
||||
->options(fn (): array => \Spatie\Activitylog\Models\Activity::query()
|
||||
->whereNotNull('event')
|
||||
->distinct()
|
||||
@@ -74,6 +78,7 @@ public static function configure(Table $table): Table
|
||||
->searchable()
|
||||
->preload(),
|
||||
Filter::make('created_at')
|
||||
->label(__('hr.fields.date'))
|
||||
->schema([
|
||||
DatePicker::make('from')
|
||||
->label(__('hr.fields.from')),
|
||||
|
||||
Reference in new issue
Block a user