@php $singleSuccess = session('success'); $singleError = session('error'); @endphp @if(is_string($singleSuccess) && trim($singleSuccess) !== '')