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,10 +16,12 @@ class EmployeeDocumentForm
->components([
HrForm::employeeSelect(),
Select::make('document_type')
->label(__('hr.fields.document_type'))
->options(DocumentType::class)
->required()
->native(false),
TextInput::make('title')
->label(__('hr.fields.title'))
->required()
->maxLength(255),
HrForm::fileUpload('file_path')

View File

@@ -15,18 +15,25 @@ class EmployeeDocumentInfolist
TextEntry::make('employee.id')
->label(__('hr.fields.employee')),
TextEntry::make('document_type')
->label(__('hr.fields.document_type'))
->badge(),
TextEntry::make('title'),
TextEntry::make('file_path'),
TextEntry::make('title')
->label(__('hr.fields.title')),
TextEntry::make('file_path')
->label(__('hr.fields.file_path')),
TextEntry::make('uploaded_at')
->label(__('hr.fields.uploaded_at'))
->dateTime(),
TextEntry::make('created_at')
->label(__('hr.fields.created_at'))
->dateTime()
->placeholder('-'),
TextEntry::make('updated_at')
->label(__('hr.fields.updated_at'))
->dateTime()
->placeholder('-'),
TextEntry::make('deleted_at')
->label(__('hr.fields.deleted_at'))
->dateTime()
->visible(fn (EmployeeDocument $record): bool => $record->trashed()),
]);