@php ($total = $poll->votes->count())
@foreach ($poll->options->sortByDesc(function($option) use($poll) { return $poll->votes->where('poll_option_id', $option->id)->count(); }) as $option)
@php ($votes = $poll->votes->where('poll_option_id', $option->id)->count())
{{ $option->text }}
{{ $votes }} votes
@endforeach
Total votes: {{ $total }}