@if(count($question->useranswer) > 0) @php $show_button = hideRejectSecond(); $show_button_mne = monitoring_evaluation(); $comment123 = is_monitoring_evaluation($question->useranswer[0]->survey_form_id, $question->id); $comment = $question->mnecomment()->where('survey_id',$question->useranswer[0]->survey_form_id)->select('created_role','comment')->first(); $decisionresult = $question->decision()->where('survey_id',$question->useranswer[0]->survey_form_id)->select('created_role','comment')->first(); $show_button_hru_main = is_hru_main(); $comment_missing_document = $question->comment_missing_document()->where('survey_id',$question->useranswer[0]->survey_form_id)->select('id','created_role','comment')->first(); @endphp
@if($question->id == 246)
@foreach($question->useranswer as $answer)
@if($answer->answer !== 'Un-disputed')
{{ $answer->answer ?? '' }}
@else
{{ $answer->answer ?? '' }}
@endif
@endforeach
@elseif($question->id == 247)
@foreach($question->useranswer as $answer)
@if($answer->answer == 'No Evidence Available')
{{ $answer->answer ?? '' }}
@else
{{ $answer->answer ?? '' }}
@endif
@endforeach
@else
@foreach($question->useranswer as $answer)
{!! $answer->answer ?? 'Not Available' !!}
{{-- is_array($answer->answer) ? 'Not Available' : ($answer->answer ?? 'Not Available') --}}
@endforeach
@endif