Add labels for various fields across HR resources to improve localization and user experience.

This commit is contained in:
Mekan1206 committed 2026-08-02 20:10:48 +05:00
1 parent 8147f23750
commit e3ec83686c
52 files changed
+363 -26

No files matched your search

@@ -20,9 +20,11 @@ public static function configure(Table $table): Table
return $table
->columns([
TextColumn::make('name')
->label(__('hr.fields.name'))
->searchable()
->sortable(),
TextColumn::make('code')
->label(__('hr.fields.code'))
->searchable()
->sortable(),
TextColumn::make('starts_at')
@@ -34,6 +36,7 @@ public static function configure(Table $table): Table
->time()
->sortable(),
TextColumn::make('description')
->label(__('hr.fields.description'))
->limit(50)
->toggleable(),
TextColumn::make('is_active')
@@ -43,14 +46,17 @@ public static function configure(Table $table): Table
->color(fn (bool $state): string => $state ? 'success' : 'danger')
->sortable(),
TextColumn::make('created_at')
->label(__('hr.fields.created_at'))
->dateTime()
->sortable()
->toggleable(isToggledHiddenByDefault: true),
TextColumn::make('updated_at')
->label(__('hr.fields.updated_at'))
->dateTime()
->sortable()
->toggleable(isToggledHiddenByDefault: true),
TextColumn::make('deleted_at')
->label(__('hr.fields.deleted_at'))
->dateTime()
->sortable()
->toggleable(isToggledHiddenByDefault: true),