@if (Route::has('login'))
@auth
Logout
@csrf
@else
Login
@if (Route::has('register'))
Register
@endif @endauth
@endif
Laravel