{{-- HEADER --}}

{{ __('Voting') }} : {{ $projectProposal->name }}

{{ __('Back') }}

{{ __('Submitted by') }}

{{ $projectProposal->user->name }} {{ $projectProposal->user->name }}
{{ $projectProposal->user->name }}
{{ __('This project requires') }} {{ number_format($projectProposal->support_in_sats, 0, ',', '.') }} {{ __('sats') }}

{{ __('Description') }}

{!! $projectProposal->description !!}
Yes, support it! No, don't support it!
{{ __('Your vote') }}: @php $myVote = $projectProposal->votes->where('user_id', auth()->id())->first(); @endphp @if($myVote && $myVote->value) {{ __('Yes') }} @endif @if($myVote && !$myVote->value) {{ __('No') }} @endif @if(!$myVote) {{ __('not voted yet') }} @endif

{{ __('Entitled voters') }}

    @foreach($entitledVoters as $voter) @php $vote = $voter->votes->first(); if (!$voter->votes->first()) { $text = __('not voted yet'); } elseif (!$vote->value) { $text = __('Reason') . ': ' . $voter->votes->first()?->reason; } @endphp
  • {{ $voter->name }} @if($voter->votes->first()?->value) {{ __('Yes') }} @endif @if($voter->votes->first() && !$voter->votes->first()?->value) {{ __('No') }} @endif

    {{ $text ?? '' }}

  • @endforeach

{{ __('Other voters') }}

    @foreach($otherVoters as $voter) @php $vote = $voter->votes->first(); if (!$voter->votes->first()) { $text = __('not voted yet'); } elseif (!$vote->value) { $text = __('Reason') . ': ' . $voter->votes->first()?->reason; } @endphp
  • {{ $voter->name }} @if($voter->votes->first()?->value) {{ __('Yes') }} @endif @if($voter->votes->first() && !$voter->votes->first()?->value) {{ __('No') }} @endif

    {{ $text ?? '' }}

  • @endforeach