diff --git a/resources/views/pages/association/project-support/form/[ProjectProposal:slug].blade.php b/resources/views/pages/association/project-support/form/[ProjectProposal:slug].blade.php index bcaa26d..cc4b0a6 100644 --- a/resources/views/pages/association/project-support/form/[ProjectProposal:slug].blade.php +++ b/resources/views/pages/association/project-support/form/[ProjectProposal:slug].blade.php @@ -52,9 +52,9 @@ on([ $save = function () { $this->form->validate(); - if ($this->image) { + if ($this->image && method_exists($this->image, 'temporaryUrl')) { $this->validate([ - 'image' => 'image|max:1024', + 'image' => 'nullable|image|max:1024', ]); $this->projectProposal ->addMedia($this->image->getRealPath()) diff --git a/resources/views/pages/association/project-support/index.blade.php b/resources/views/pages/association/project-support/index.blade.php index eefd86c..2ca8c93 100644 --- a/resources/views/pages/association/project-support/index.blade.php +++ b/resources/views/pages/association/project-support/index.blade.php @@ -138,28 +138,42 @@ $delete = function ($id) { wire:key="project_{{ $project->id }}" class="flex bg-white dark:bg-gray-800 shadow-sm rounded-xl overflow-hidden"> - - Meetup 01 - - + @if(!$project->sats_paid) + + Meetup 01 + + + @else +
+ Meetup 01 + +
+ @endif
Eingereicht von: {{ $project->einundzwanzigPleb->profile->name }}
- +

{{ $project->name }}

-
-
+
+
{!! strip_tags($project->description) !!}
@@ -203,12 +217,20 @@ $delete = function ($id) { :href="route('association.projectSupport.edit', ['projectProposal' => $project])" label="Editieren"/> @endif - @if($currentPleb && $currentPleb->association_status->value > 2) + @if($currentPleb && $currentPleb->association_status->value > 2 && !$project->sats_paid) + @elseif($currentPleb && $currentPleb->association_status->value > 2 && $project->sats_paid) +
+
+ Wurde mit {{ number_format($project->sats_paid, 0, ',', '.') }} Sats + unterstützt +
+
@endif