@php if(isset(Auth::user()->avatar)){ $avatar = Auth::user()->avatar; } else{ $avatar = "avatar_g.png"; } @endphp