Skip to content

Commit

Permalink
wip on show project page
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Oct 16, 2023
1 parent 2c57246 commit 5d3a7bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Resources/Project/ShowProjectResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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' => [
Expand Down
3 changes: 3 additions & 0 deletions resources/js/Pages/Public/Projects/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
</div>

<h1 v-if="project.name" class="py-12 text-6xl font-extrabold text-gray-900">{{ project.name }}</h1>
<h2 v-if="project.organization.name" class="mb-8 text-3xl font-bold text-cyan-900">
{{ project.organization.name }}
</h2>

<div class="flex flex-col w-full gap-4 sm:flex-row">
<!-- Donate modal -->
Expand Down

0 comments on commit 5d3a7bf

Please sign in to comment.