components([ HrForm::employeeSelect(), DatePicker::make('report_date') ->required() ->default(now()), TextInput::make('title') ->required() ->maxLength(255), Textarea::make('description') ->required() ->rows(4) ->columnSpanFull(), Select::make('severity') ->options(DisciplinarySeverity::class) ->required() ->native(false), HrForm::fileUpload('attachment_path') ->label(__('hr.fields.attachment')) ->acceptedFileTypes(['application/pdf', 'image/*']) ->maxSize(10240), ]); } }