@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(); @endphp
{{ $question->name }}

@foreach($question->useranswer as $answer) {!! $answer->answer ?? 'Not Available' !!} {{-- is_array($answer->answer) ? 'Not Available' : ($answer->answer ?? 'Not Available') --}} @endforeach

@if($show_button_mne==true) @if($comment) @else @endif @else @if($show_button==true) @if($decisionresult) @else @endif @endif @endif @if($comment) @endif @if($decisionresult) @endif
@endif