components([ HrForm::employeeSelect(), Select::make('document_type') ->options(DocumentType::class) ->required() ->native(false), TextInput::make('title') ->required() ->maxLength(255), HrForm::fileUpload('file_path') ->label(__('hr.fields.document')) ->required() ->acceptedFileTypes(['application/pdf', 'image/*', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document']) ->maxSize(15360), ]); } }