@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