Refactor SickLeaveForm and SickLeaveInfolist to enhance layout and organization. Introduce new sections in SickLeaveInfolist for better information categorization, update date picker functionality, and improve localization for medical institution labels across multiple languages.
This commit is contained in:
@@ -12,14 +12,21 @@ class SickLeaveForm
|
||||
public static function configure(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->columns(3)
|
||||
->components([
|
||||
HrForm::employeeSelect(),
|
||||
HrForm::leaveDatePicker('start_date', __('hr.fields.start_date')),
|
||||
HrForm::leaveDatePicker('end_date', __('hr.fields.end_date')),
|
||||
HrForm::leaveDaysDisplay(),
|
||||
HrForm::leaveDatePicker('start_date', __('hr.fields.start_date'))
|
||||
->native(false),
|
||||
HrForm::leaveDatePicker('end_date', __('hr.fields.end_date'))
|
||||
->native(false),
|
||||
|
||||
TextInput::make('medical_institution')
|
||||
->label(__('hr.fields.institution'))
|
||||
->maxLength(255),
|
||||
->maxLength(255)
|
||||
->columnSpan(2),
|
||||
|
||||
HrForm::leaveDaysDisplay(),
|
||||
|
||||
Textarea::make('reason')
|
||||
->label(__('hr.fields.reason'))
|
||||
->rows(3)
|
||||
|
||||
Reference in New Issue
Block a user