@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
{{ $question->name }}

@if($question->id == 246) @foreach($question->useranswer as $answer) @if($answer->answer !== 'Un-disputed') {{ $answer->answer ?? '' }} {{ $answer->answer ?? '' }} @else {{ $answer->answer ?? '' }} @endif @endforeach @elseif($question->id == 247) @foreach($question->useranswer as $answer) @if($answer->answer == 'No Evidence Available') {{ $answer->answer ?? '' }} {{ $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

@if($show_button_mne==true) @if($comment) @else @endif @else @if($show_button==true) @if($decisionresult) @else @endif @endif @endif @if($show_button_hru_main==true && $question->id == 247) @if($comment_missing_document) @else @endif @endif @if($comment_missing_document) @endif @if($comment) @endif @if($decisionresult) @endif
@endif