{{-- Ported from the design's user-menu.php. Commented-out rows in the design
     were pages that do not exist here, so they are left out rather than linked
     to nothing. --}}
<div class="mb-pop mb-menu d-none" id="pop-user" role="menu">
    <div class="mb-menu-email">{{ auth()->user()?->email }}</div>
    <label class="mb-menu-item" role="menuitem"><i class="bi bi-moon"></i>Dark mode
        <span class="mb-end form-check form-switch m-0">
            <input class="form-check-input" type="checkbox" data-action="theme-switch" aria-label="Toggle dark mode">
        </span>
    </label>
    <form method="POST" action="{{ route('logout') }}">
        @csrf
        <button type="submit" class="mb-menu-item danger" role="menuitem">
            <i class="bi bi-box-arrow-right"></i>Log out
        </button>
    </form>
</div>
