@foreach($question->useranswer as $answer) {!! $answer->answer ?? 'Not Available' !!} {{-- is_array($answer->answer) ? 'Not Available' : ($answer->answer ?? 'Not Available') --}} @endforeach @php $show_button=hideRejectSecond(); @endphp
@if(count($question->decision) == 0 && $show_button==true) @elseif(count($question->decision) > 0 && $show_button==true) @endif @elseNot Available
@endif {{--Go somewhere--}}