@foreach($data['answers'] as $index=>$answr)
@php
$ii++;
@endphp
@else
@foreach($data['units'] as $unit)
{{ $ii }}.
{!! nl2br(e($answr)) !!}
@endforeach
{{ $unit->name }}
@php
$i =0;
@endphp
@foreach($unit->answerList as $index=>$answr)
@if(count($unit->answerList)>0)
@php
$i++;
@endphp
@endforeach
@endif
{{ $i }}.
{!! nl2br(e($answr)) !!}
@endif
@endforeach