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