@php if (isset($approved) and $approved == true) { $comments = $model->approvedComments; } else { $comments = $model->comments; } @endphp