@foreach($perguntas as $key => $pergunta)
{{$key+1}} - {{$pergunta->enunciado}}
@if(count($pergunta->alterantivas)!=0) @foreach($pergunta->alterantivas as $key => $alterantivas) @endforeach
Alternativa Nº de respostas Porcentagem
{{$alterantivas->alternativa}} {{$alterantivas->registro->count()}} @if($alt_reg_count!=0) {{ round((($alterantivas->registro->count())/$alt_reg_count)*100) }}% @else 0% @endif
@endif @if(count($pergunta->alterantivas)==0) Resposta Escrita @if($pergunta->obrigatorio==0)
@else
@endif @endif @endforeach