Yes, support it!
No, don't support it!
{{ __('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