From b68b1f88c9df53559ed59ec47b47436e3e30304a Mon Sep 17 00:00:00 2001 From: Limber Mamani Date: Thu, 19 Dec 2024 09:31:27 -0400 Subject: [PATCH] [TM-1562] add new fields to resources --- .../V2/ProjectReports/ProjectReportResource.php | 10 ++++++++++ .../Resources/V2/SiteReports/SiteReportResource.php | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/app/Http/Resources/V2/ProjectReports/ProjectReportResource.php b/app/Http/Resources/V2/ProjectReports/ProjectReportResource.php index c39000056..2dd10fb54 100644 --- a/app/Http/Resources/V2/ProjectReports/ProjectReportResource.php +++ b/app/Http/Resources/V2/ProjectReports/ProjectReportResource.php @@ -122,6 +122,16 @@ public function toArray($request) 'workdays_convergence_total' => $this->workdays_convergence_total, 'non_tree_total' => $this->non_tree_total, 'total_community_partners' => $this->total_community_partners, + 'business_milestones' => $this->business_milestones, + 'ft_other' => $this->ft_other, + 'pt_other' => $this->pt_other, + 'volunteer_other' => $this->volunteer_other, + 'beneficiaries_other' => $this->beneficiaries_other, + 'beneficiaries_training_women' => $this->beneficiaries_training_women, + 'beneficiaries_training_men' => $this->beneficiaries_training_men, + 'beneficiaries_training_other' => $this->beneficiaries_training_other, + 'beneficiaries_training_youth' => $this->beneficiaries_training_youth, + 'beneficiaries_training_non_youth' => $this->beneficiaries_training_non_youth, ]; return $this->appendFilesToResource($data); diff --git a/app/Http/Resources/V2/SiteReports/SiteReportResource.php b/app/Http/Resources/V2/SiteReports/SiteReportResource.php index e79590041..aa28b7c53 100644 --- a/app/Http/Resources/V2/SiteReports/SiteReportResource.php +++ b/app/Http/Resources/V2/SiteReports/SiteReportResource.php @@ -65,6 +65,11 @@ public function toArray($request) 'created_by' => $this->handleCreatedBy(), 'regeneration_description' => $this->regeneration_description, 'total_non_tree_species_planted_count' => $this->total_non_tree_species_planted_count, + + 'pct_survival_to_date' => $this->pct_survival_to_date, + 'survival_calculation' => $this->survival_calculation, + 'survival_description' => $this->survival_description, + 'maintenance_activities' => $this->maintenance_activities, ]; return $this->appendFilesToResource($data);