@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