From 11031c92e391e614e5ebe73973c451b6766fe7fe Mon Sep 17 00:00:00 2001 From: Alex Popa Date: Tue, 10 Dec 2024 16:01:11 +0200 Subject: [PATCH] Eliminate start date from intervention plan service --- .../InterventionPlanResource/Widgets/ServicesWidget.php | 3 --- .../Widgets/ServiceDescriptionWidget.php | 5 +++-- app/Models/BeneficiaryIntervention.php | 1 - app/Models/InterventionService.php | 1 - 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/app/Filament/Organizations/Resources/InterventionPlanResource/Widgets/ServicesWidget.php b/app/Filament/Organizations/Resources/InterventionPlanResource/Widgets/ServicesWidget.php index 466206d4..2e634620 100644 --- a/app/Filament/Organizations/Resources/InterventionPlanResource/Widgets/ServicesWidget.php +++ b/app/Filament/Organizations/Resources/InterventionPlanResource/Widgets/ServicesWidget.php @@ -118,9 +118,6 @@ public static function getServiceSchema(?InterventionPlan $interventionPlan = nu ]) ->pluck('name', 'id'); }), - - DatePicker::make('start_date') - ->label(__('intervention_plan.labels.start_date')) ]), ]), diff --git a/app/Filament/Organizations/Resources/InterventionServiceResource/Widgets/ServiceDescriptionWidget.php b/app/Filament/Organizations/Resources/InterventionServiceResource/Widgets/ServiceDescriptionWidget.php index 79c8bc44..2f89bbb5 100644 --- a/app/Filament/Organizations/Resources/InterventionServiceResource/Widgets/ServiceDescriptionWidget.php +++ b/app/Filament/Organizations/Resources/InterventionServiceResource/Widgets/ServiceDescriptionWidget.php @@ -40,12 +40,13 @@ protected function getInfolistSchema(): array ->schema([ TextEntry::make('institution') ->label(__('intervention_plan.labels.responsible_institution')), + TextEntry::make('specialist.name_role') ->label(__('intervention_plan.labels.responsible_specialist')), - TextEntry::make('start_date') - ->label(__('intervention_plan.labels.start_date')), + TextEntry::make('interval') ->label(__('intervention_plan.labels.interval')), + TextEntry::make('objections') ->label(__('intervention_plan.labels.objections')) ->columnSpanFull() diff --git a/app/Models/BeneficiaryIntervention.php b/app/Models/BeneficiaryIntervention.php index 42d46bcb..6a9a06f0 100644 --- a/app/Models/BeneficiaryIntervention.php +++ b/app/Models/BeneficiaryIntervention.php @@ -23,7 +23,6 @@ class BeneficiaryIntervention extends Model 'organization_service_intervention_id', 'intervention_service_id', 'specialist_id', - 'start_date', 'objections', 'expected_results', 'procedure', diff --git a/app/Models/InterventionService.php b/app/Models/InterventionService.php index 09c75f3d..ac5945d6 100644 --- a/app/Models/InterventionService.php +++ b/app/Models/InterventionService.php @@ -25,7 +25,6 @@ class InterventionService extends Model 'organization_service_id', 'specialist_id', 'institution', - 'start_date', 'objections', ];