@php $options = []; if (isset($answer)) { $options = json_decode($answer->pivot->answer); if (!is_array($options)) { $options = array($options); } } @endphp
@if ($question->order_visible != 0) {{$question->order}}. @endif {{$question->description}}
@foreach ($question->options as $option) @php if ($question->options->count() <= 3){ $cols= 'col-lg-4 col-md-4 col-xs-4 col-sm-4'; } else{ $cols = 'col-xs-4 col-sm-3 col-md-2'; } @endphp
@if ($option->file_url != null) @else id, $options) ? "checked" : ""}} /> @endif
@endforeach