@if ($polls->isNotEmpty()) @foreach($polls as $poll) @if($editingPollId === $poll->id) @else @endif @endforeach @else @endif
Question Status Start Date End Date Options Actions
Question Status Start Date End Date
Poll Options
@foreach($editOptions as $idx => $option)
@if(count($editOptions) > 2) Remove @endif
@endforeach Add Option
Save Cancel
{{ $poll->question }} {{ ucfirst($poll->status) }} {{ $poll->start_date }} {{ $poll->end_date }}
@foreach($poll->options as $option) {{ Str::limit($option->option_text, 10) }} @endforeach
No polls found.
{{ $polls->links() }}