diff --git a/resources/views/pages/association/project-support/index.blade.php b/resources/views/pages/association/project-support/index.blade.php index 74022d1..dcf0bd3 100644 --- a/resources/views/pages/association/project-support/index.blade.php +++ b/resources/views/pages/association/project-support/index.blade.php @@ -135,108 +135,117 @@ $delete = function ($id) {
@foreach($projects as $project) -
- - @if(!$project->sats_paid) - - Meetup 01 - - - @else -
- Meetup 01 - -
- @endif - -
-
-
- Eingereicht von: {{ $project->einundzwanzigPleb->profile->name }} -
-
-

- {{ $project->name }} -

-
-
- {!! strip_tags($project->description) !!} -
-
- -
- + @php + $boardVotes = $project->votes->filter(function ($vote) { + return in_array($vote->einundzwanzigPleb->npub, config('einundzwanzig.config.current_board')); + }); + $approveCount = $boardVotes->where('value', 1)->count(); + $disapproveCount = $boardVotes->where('value', 0)->count(); + @endphp + @if($approveCount === 3 || $disapproveCount !== 3) +
+ + @if(!$project->sats_paid) + + Meetup 01 + + + @else
- {{ number_format($project->support_in_sats, 0, ',', '.') }} Sats + class="relative block w-24 sm:w-56 xl:sidebar-expanded:w-40 2xl:sidebar-expanded:w-56 shrink-0" + href="{{ route('association.projectSupport.item', ['projectProposal' => $project]) }}"> + Meetup 01 +
-
- Webseite -
- - @if($project->votes->where('value', true)->count() > 0) - -
+
+ @endif @endforeach