diff --git a/app/Http/Resources/Project/ShowProjectResource.php b/app/Http/Resources/Project/ShowProjectResource.php index 31bdc6b4..4e01e79b 100644 --- a/app/Http/Resources/Project/ShowProjectResource.php +++ b/app/Http/Resources/Project/ShowProjectResource.php @@ -18,7 +18,7 @@ public function toArray(Request $request): array 'name' => $this->name, 'slug' => $this->slug, 'counties' => $this->counties->pluck('name')->join(', '), - 'status' =>$this->visible_status, + 'status' => $this->visible_status, 'image' => $this->getFirstMediaUrl('preview'), 'target_budget' => $this->target_budget, 'gallery' => $this->getMedia('gallery')->map(function ($media) { @@ -41,6 +41,7 @@ public function toArray(Request $request): array 'accepting_volunteers' => \boolval($this->accepting_volunteers), 'accepting_comments' => \boolval($this->accepting_comments), 'videos' => '', + 'is_active' => $this->is_active, 'external_links' => $this->external_links, 'categories' => $this->categories->pluck('name')->join(', '), 'donations' => [ diff --git a/resources/js/Pages/Public/Projects/Show.vue b/resources/js/Pages/Public/Projects/Show.vue index 138817a7..675f29b6 100644 --- a/resources/js/Pages/Public/Projects/Show.vue +++ b/resources/js/Pages/Public/Projects/Show.vue @@ -38,6 +38,9 @@