@php $currentIndex++; $autoMargin = 0; @endphp
@if($index !=0) @endif
@if($question->input != 'ranking')
@if($question->questionResponse) @php $responses = json_decode($question->questionResponse->response); @endphp @foreach($responses as $response) {{$response}}   @endforeach @else @if($question->input == 'text') Input   @elseif($question->input == "rating") Poor   Satisfactory   Good   Above Average   Excellent   @else True   False   @endif @endif
@endif
@if($question->input == 'ranking') @if($question->questionResponse) @php $responses = json_decode($question->questionResponse->response); @endphp @endif @foreach($responses as $responseIndex => $response)
{{$responseIndex + 1}}
@endforeach @endif
if answer is then
@if(!$question->children->isEmpty()) @foreach($question->children as $childIndex => $childQuestion) @include('poll.components.polling-child-question', ['parentIndex' => $index]) @endforeach @endif