@php $userWithPhoto = true; $userNameForThubnail = null; $user = session('user'); if(empty($user->foto)){ $userWithPhoto = false; $userNameForThubnail = substr($user->nome, 0, 1); } $thumbnail = custom_system('API_URL') . '/' . $user->foto; @endphp @if($userWithPhoto) @endif @if(!$userWithPhoto)
{{ $userNameForThubnail }}
@endif