...
@if (Route::has('login')) @auth Dashboard @else Log in @if (Route::has('register')) Register @endif @endauth @endif