@php $questionsol=App\Sectionalquestions::where('topic_id', $topics->id)->get(); $i="0"; $k="0"; @endphp
@foreach($questionsol as $solutions)
{!!$solutions->direction!!}

Que.{{++$k}}{!!$solutions->question!!}

a)
{!!$solutions->a!!}
b)
{!!$solutions->b!!}
c)
{!!$solutions->c!!}
d)
{!!$solutions->d!!}
@php $useranswer=App\SectionalQuizAnswer::where('question_id', $solutions->id)->where('user_id', Auth::user()->id)->first(); @endphp @if($useranswer->user_answer=="E") @else @endif

@endforeach