diff --git a/app/Filament/Organizations/Resources/InterventionServiceResource/Pages/EditCounselingSheet.php b/app/Filament/Organizations/Resources/InterventionServiceResource/Pages/EditCounselingSheet.php index 74ccd408..8f84f977 100644 --- a/app/Filament/Organizations/Resources/InterventionServiceResource/Pages/EditCounselingSheet.php +++ b/app/Filament/Organizations/Resources/InterventionServiceResource/Pages/EditCounselingSheet.php @@ -32,6 +32,7 @@ use Filament\Forms\Components\Group; use Filament\Forms\Components\Placeholder; use Filament\Forms\Components\Radio; +use Filament\Forms\Components\RichEditor; use Filament\Forms\Components\Section; use Filament\Forms\Components\Textarea; use Filament\Forms\Components\TextInput; @@ -181,7 +182,7 @@ public static function getLegalAssistanceForm(): array Section::make(__('intervention_plan.headings.final_observations')) ->maxWidth('3xl') ->schema([ - Textarea::make('data.observations') + RichEditor::make('data.observations') ->label(__('intervention_plan.labels.final_observation')) ->maxLength(2500) ->columnSpanFull(), @@ -383,7 +384,7 @@ public static function getSchemaForPsychologicalAssistance(): array Section::make(__('intervention_plan.headings.psychological_evaluation')) ->maxWidth('3xl') ->schema([ - Textarea::make('data.first_meeting_psychological_evaluation') + RichEditor::make('data.first_meeting_psychological_evaluation') ->label(__('intervention_plan.labels.first_meeting_psychological_evaluation')) ->maxLength(5000), ]), diff --git a/app/Filament/Organizations/Resources/InterventionServiceResource/Widgets/CounselingSheetWidget.php b/app/Filament/Organizations/Resources/InterventionServiceResource/Widgets/CounselingSheetWidget.php index 3875bcdf..a1156b97 100644 --- a/app/Filament/Organizations/Resources/InterventionServiceResource/Widgets/CounselingSheetWidget.php +++ b/app/Filament/Organizations/Resources/InterventionServiceResource/Widgets/CounselingSheetWidget.php @@ -153,7 +153,8 @@ private function getSchemaForLegalAssistance(): array ->schema([ TextEntry::make('data.observations') ->label(__('intervention_plan.labels.final_observation')) - ->columnSpanFull(), + ->columnSpanFull() + ->html(), ]), ]; @@ -269,7 +270,8 @@ private function getSchemaForPsychologicalAssistance(): array Section::make(__('intervention_plan.headings.psychological_evaluation')) ->schema([ TextEntry::make('data.first_meeting_psychological_evaluation') - ->label(__('intervention_plan.labels.first_meeting_psychological_evaluation')), + ->label(__('intervention_plan.labels.first_meeting_psychological_evaluation')) + ->html(), ]), ]; }