@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 @foreach($question->useranswer as $answer) @if($answer->answer)
{{ $answer->answer }}
@if($show_button_mne==true) @if($comment) @else @endif @else @if($show_button==true) @if($decisionresult) @else @endif @endif @endif @if($comment)