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

@@ -16,6 +16,7 @@ public static function configure(Schema $schema): Schema
return $schema
->components([
TextInput::make('name')
->label(__('hr.fields.name'))
->required()
->maxLength(255),
TextInput::make('email')
@@ -25,6 +26,7 @@ public static function configure(Schema $schema): Schema
->maxLength(255)
->unique(ignoreRecord: true),
TextInput::make('password')
->label(__('hr.fields.password'))
->password()
->dehydrateStateUsing(fn (?string $state): ?string => filled($state) ? Hash::make($state) : null)
->dehydrated(fn (?string $state): bool => filled($state))
@@ -43,6 +45,7 @@ public static function configure(Schema $schema): Schema
->required()
->default(config('hr.default_locale')),
Select::make('roles')
->label(__('hr.fields.roles'))
->relationship('roles', 'name')
->multiple()
->preload()
@@ -11,16 +11,20 @@ public static function configure(Schema $schema): Schema
{
return $schema
->components([
TextEntry::make('name'),
TextEntry::make('name')
->label(__('hr.fields.name')),
TextEntry::make('email')
->label(__('hr.fields.email_address')),
TextEntry::make('email_verified_at')
->label(__('hr.fields.email_verified_at'))
->dateTime()
->placeholder('-'),
TextEntry::make('created_at')
->label(__('hr.fields.created_at'))
->dateTime()
->placeholder('-'),
TextEntry::make('updated_at')
->label(__('hr.fields.updated_at'))
->dateTime()
->placeholder('-'),
TextEntry::make('department.name')
@@ -16,22 +16,27 @@ public static function configure(Table $table): Table
return $table
->columns([
TextColumn::make('name')
->label(__('hr.fields.name'))
->searchable(),
TextColumn::make('email')
->label(__('hr.fields.email_address'))
->searchable(),
TextColumn::make('email_verified_at')
->label(__('hr.fields.email_verified_at'))
->dateTime()
->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('department.name')
->label(__('hr.fields.department'))
->searchable(),
])
->filters([