Rendering content conditional on the authentication state of the user
One way you could handle this, because it's server side rendering, is perform whatever checks you wish to perform in the controller, and then route to a ViewModel that has the relevant included pages. That results in having more code to maintain, however, it enables you to have partial view rendering as well.

Edit:

I thought I would expound on this idea some. It appears to be what you are doing with the AuthenticatedUserPanel and UnauthenticatedUserPanel.

I don't see a problem with this approach. At the end of the day, you have to put this logic somewhere. Some purists may so no logic in the view. That's fine. My approach, in this situation, is to create all the necessary components, and render a different view (or ViewModel) based on some user context. The benefit to this approach is that the user can only see UI elements for actions they are able to perform, or only view data they have permission to view. It also enables you to (easily) customize the action links for subsequent navigation. The challenge I usually have with this approach is designing a view that is relevant for each type of user.

In closing, I don't see any problem with putting some of this logic in the view, but I also tend to build smaller sites. This is largely a matter of taste, and it's important to do it the same way across the project. In trying to design the way that you will handle this sort of scenario, I would consult other areas of the project that are doing it today. If there are none, then it's usually a good time to discuss with other members of the team how you will handle this case, because you will undoubtedly encounter it again.

I hope my post was helpful, and wish you the best with the project :)