@if(\Illuminate\Support\Facades\Auth::check()) @php $auth_user = \Illuminate\Support\Facades\Auth::user(); @endphp @endif
@if(\Illuminate\Support\Facades\Auth::check()) {{$auth_user->name}} @else guest @endif