@foreach ($questions as $key => $question)
{{-- @php dd($question->description); @endphp --}}
{{ $question->name }} ({{ $question->description }})
@foreach ($question->SurveyAnswers as $key => $answer)
@if (isset($record_type) && isset($record_id))
@if ($answer->record_type == $record_type && $answer->record_id == $record_id)
ans: {{ $answer->answer }}
@endif
@else
ans: {{ $answer->answer }}
@endif
@endforeach
@endforeach