@props(['project', 'currentPleb', 'section' => 'all']) @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(); $shouldDisplay = match($section) { 'all' => true, 'new' => $approveCount < 3, 'supported' => $project->sats_paid > 0, 'rejected' => $disapproveCount >= 3, 'approved' => ($approveCount === 3 || $disapproveCount !== 3), default => true, }; @endphp @if($shouldDisplay)
@if(!$project->sats_paid) Meetup 01 @else
Meetup 01
@endif
Eingereicht von: {{ $project->einundzwanzigPleb->profile->name }}

{{ $project->name }}

{!! strip_tags($project->description) !!}
{{ number_format($project->support_in_sats, 0, ',', '.') }} Sats
@if($project->votes->where('value', true)->count() > 0) @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)
Wurde mit {{ number_format($project->sats_paid, 0, ',', '.') }} Sats unterstützt
@endif
@endif