@extends('layouts.app') @section('head') @endsection @section('content')
{{$title}}

{{$poll->name}}

{{$poll->text}}

@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @foreach ($poll->questions as $question)

{{$question->text}}

@if($question->type == 0) @elseif($question->type == 1) Si
No
@else 1
2
3
4
5
@endif @if ($errors->has($question->id)) {{ $errors->first($question->id) }} @endif
@endforeach
@endsection