@extends('layouts.app') @section('title', $poll->question) @php $type = $poll->allow_multiple_answers ? "checkbox" : "radio"; @endphp @section('content') @if ($new)
Your poll has been created!

@if ($poll->admin_password != null)
Admin URL: {{ action('PollController@admin', ['poll' => $poll, 'password' => $poll->admin_password]) }}

@endif
@if ($poll->duplicate_vote_checking == 'codes') Voting URLs: @else Poll URL: {{ action('PollController@view', ['poll' => $poll]) }} @endif
@endif
@if ($hasVoted) @if (!$new || $poll->duplicate_vote_checking != 'codes')

You have already voted on this poll or need a code to vote.
@if ($poll->results_visible)
Results
@endif @endif @else

@if ($code != null)
@else @endif @csrf @foreach ($poll->options as $option)
@endforeach
@endif
@endsection