@foreach($questions as $child) @php $answerObj = $child->answer ?? null; $btnStatus = $answerObj->btn_status ?? 'yes'; $uniqueName = "yesno_" . $child->id; @endphp
{{ $child->question }}
@if($child->notes)
{!! $child->notes !!}
@endif
@if($child->children->isNotEmpty()) @endif @endforeach