@php $answers = json_decode($question->answers, true); $i = 0; $q = 1; $sub_id = 1; @endphp @if (is_array($answers) && count($answers) > 0)
@foreach($answers as $answer) @endforeach
@endif