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

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

View File

@@ -16,6 +16,7 @@ class UserForm
return $schema
->components([
TextInput::make('name')
->label(__('hr.fields.name'))
->required()
->maxLength(255),
TextInput::make('email')
@@ -25,6 +26,7 @@ class UserForm
->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 @@ class UserForm
->required()
->default(config('hr.default_locale')),
Select::make('roles')
->label(__('hr.fields.roles'))
->relationship('roles', 'name')
->multiple()
->preload()

View File

@@ -11,16 +11,20 @@ class UserInfolist
{
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')