-
-
-
-
- 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)
+
+
+
+
+ @else
+
+ @endif
@endforeach
- {{ 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]) }}">
+
+
-
- Webseite
-
-
- @if($project->votes->where('value', true)->count() > 0)
-
-
-
- Anzahl der Unterstützer:
- +{{ $project->votes->where('value', true)->count() }}
-
+ @endif
+
+
+
-
+
-
+ Eingereicht von: {{ $project->einundzwanzigPleb->profile->name }}
- @endif
-
- @if(
- ($currentPleb && $currentPleb->id === $project->einundzwanzig_pleb_id)
- || ($currentPleb && in_array($currentPleb->npub, config('einundzwanzig.config.current_board'), true))
- )
-
-
- @endif
- @if(($currentPleb && $currentPleb->association_status->value > 2) || $project->accepted)
-
- @endif
-
-
- @if($project->sats_paid)
+
+
+
+
+ + {{ $project->name }} +
+
+ {!! strip_tags($project->description) !!}
+
+
+
+
- Wurde mit {{ number_format($project->sats_paid, 0, ',', '.') }} Sats
- unterstützt
+ class="text-xs inline-flex items-center font-bold border border-gray-200 dark:border-gray-700/60 text-gray-600 dark:text-gray-200 rounded-full text-center px-2.5 py-1">
+ {{ number_format($project->support_in_sats, 0, ',', '.') }} Sats
- @endif
+
+ Webseite
+
+
+ @if($project->votes->where('value', true)->count() > 0)
+
+
+ @endif
+
+ Anzahl der Unterstützer:
+ +{{ $project->votes->where('value', true)->count() }}
+
+
+ @if(
+ ($currentPleb && $currentPleb->id === $project->einundzwanzig_pleb_id)
+ || ($currentPleb && in_array($currentPleb->npub, config('einundzwanzig.config.current_board'), true))
+ )
+
+
+ @endif
+ @if(($currentPleb && $currentPleb->association_status->value > 2) || $project->accepted)
+
+ @endif
+
+
+ @if($project->sats_paid)
+
+ Wurde mit {{ number_format($project->sats_paid, 0, ',', '.') }} Sats
+ unterstützt
+
+ @endif
+