{{$poll->question}}

@php $options = $poll->options()->get(); @endphp @foreach($options as $okey => $o) @php if($poll->total_votes && $o['votes']): $percent = $o['votes']/$poll->total_votes; $rating = $percent * 100; else: $rating = 0; endif; @endphp
@endforeach

{{$poll->total_votes ? General::compactPriceFromat($poll->total_votes) : 0 }} Votes

@include('user.partials.flash_messages')
@csrf
@php $options = $poll->options()->get(); @endphp @if(isset($options) && $options) @foreach($options as $key => $o)
@if(count($options) > 2) @endif
@endforeach @else
@endif
@if(count($options) <= 5) + Add options @endif