Refactor UnpaidLeaveForm and UnpaidLeaveInfolist to improve layout and organization. Introduce sections in UnpaidLeaveInfolist for better categorization of information, enhance date picker functionality, and improve localization for various fields.

This commit is contained in:
Mekan1206
2026-08-02 21:51:50 +05:00
parent 986ca397c0
commit a9f7dc1076
2 changed files with 63 additions and 40 deletions

View File

@@ -13,8 +13,10 @@ class UnpaidLeaveForm
return $schema
->components([
HrForm::employeeSelect(),
HrForm::leaveDatePicker('start_date', __('hr.fields.start_date')),
HrForm::leaveDatePicker('end_date', __('hr.fields.end_date')),
HrForm::leaveDatePicker('start_date', __('hr.fields.start_date'))
->native(false),
HrForm::leaveDatePicker('end_date', __('hr.fields.end_date'))
->native(false),
HrForm::leaveDaysDisplay(),
Textarea::make('reason')
->label(__('hr.fields.reason'))