@if($item && $item->type === 'question') {{ $counter->value++ }} {!! $item->question !!} @if($respondentType === 'supervisor' || $bothView === 'true') @if($item->supervisor && $item->supervisor->grade !== null) supervisor->grade]}}"> {{ $grades[$item->supervisor->grade] }} @else @endif {{ $item->supervisor->comment ?? null }} @endif @if($respondentType === 'teacher' || $bothView === 'true') @if($item->lector && $item->lector->grade !== null) lector->grade]}}"> {{ $grades[$item->lector->grade] }} @else @endif {{ $item->lector->comment ?? null }} @endif @else {!! $item->name !!} @if(count($item->children) > 0) @foreach ($item->children as $child) @include('pdf.standard.question', [ 'item' => $child, 'shouldDisplayLSComment' => false, 'counter' => $counter ]) @endforeach @endif @endif