components([ HrForm::employeeSelect(), DatePicker::make('explanation_date') ->required() ->default(now()), TextInput::make('reason') ->required() ->maxLength(255), Textarea::make('description') ->required() ->rows(4) ->columnSpanFull(), HrForm::fileUpload('attachment_path') ->label(__('hr.fields.attachment')) ->acceptedFileTypes(['application/pdf', 'image/*']) ->maxSize(10240), ]); } }