<?php
if ($user) {
    _view("nav_logged_in", ["user" => $user]);
} else {
    _view("nav_guest");
}