{{ $pesquisa->titulo }}
{{ $pesquisa->descricao }}
@csrf
Seus Dados
Nome
Email
Telefone
Perguntas
@foreach($pesquisa->perguntas as $pergunta)
{{ $pergunta->pergunta }}
@if($pergunta->tipo === 'texto')
@elseif($pergunta->tipo === 'objetiva') @foreach(json_decode($pergunta->opcoes, true) as $opcao)
{{ $opcao }}
@endforeach @elseif($pergunta->tipo === 'escala')
@foreach(json_decode($pergunta->opcoes, true) as $opcao)
{{ $opcao }}
@endforeach
@endif
@endforeach
Enviar Resposta