<div class="contentSidebar membersSidebar js_contentSidebar">

    <div class="headerTop js_mobileMembersMenu">
        <h3>Member's Menu</h3>
    </div>

    <nav>
        <ul>

            {% if member.exists %}
                <li>
                    <a href="{{ route('members-dashboard', [], false) }}" title="Members Area" class="{% if current_uri() == route('members-dashboard', [], false) %}active{% endif %}">
                        <span class="menuTitle">Dashboard</span>
                        <span class="menuSubtitle">Get an overview of your account.</span>
                    </a>
                </li>
                <li>
                    <a
                            href="{{ route('members-orders', [], false) }}"
                            title="View Previous Orders"
                            class="
                                    {% if current_uri(true) == route('members-orders', [], false) or current_uri(true) == '/members/view_order.php' %}
                                        active
                                    {% endif %}
                            "
                    >
                        <span class="menuTitle">Orders</span>
                        <span class="menuSubtitle">Order History, reorder, current orders, patient orders.</span>
                    </a>
                </li>

                {% if config('subscription.enabled') %}
                <li>
                    <a
                            href="{{ route('members-orders-subscriptions', [], false) }}"
                            title="View Subscription"
                            class="
                                    {% if current_uri(true) == route('members-orders-subscriptions', [], false) or current_uri(true) == '/member/orders/subscriptions' %}
                                        active
                                    {% endif %}
                            "
                    >
                        <span class="menuTitle">Subscriptions</span>
                        <span class="menuSubtitle">Manage your subscriptions</span>
                    </a>
                </li>
                {% endif %}
                {% if config('wisebee.enabled') %}
                    <li>
                        <a
                                href="{{ route('members-consultations', [], false) }}"
                                title="View Consultations"
                                class="
                                        {% if current_uri(true) == route('members-consultations', [], false) %}
                                            active
                                        {% endif %}
                                "
                        >
                            <span class="menuTitle">
                                Consultations
                            </span>
                            <span class="menuSubtitle">
                                Consultations, start a consultation
                            </span>
                        </a>
                    </li>
                {% endif %}
                <li>
                    <a href="{{ route('members-account', [], false) }}" title="Edit Details" class="{% if current_uri() == route('members-account', [], false) %}active{% endif %}">
                        <span class="menuTitle">Account details</span>
                        <span class="menuSubtitle">Manage your account details.</span>
                    </a>
                </li>
                <li>
                    <a href="{{ route('members-health-profile', [], false) }}" title="Health Profile" class="{% if current_uri() == '/members/health_profile.php' %}active{% endif %}">
                        <span class="menuTitle">My health profile</span>
                        <span class="menuSubtitle">Medications, allergies, conditions and GP details.</span>
                    </a>
                </li>

                {#
                <li>
                    <a href="#" title="NHS Prescriptions">
                        <span class="menuTitle">NHS Prescriptions</span>
                        <span class="menuSubtitle">Manage NHS prescriptions</span>
                    </a>
                </li>
                #}

                {#
                {% if member.nhs_member %}
                    {% include 'NHS/nhs_member_menu.twig' %}
                {% endif %}
                #}

                {% if not member.requiresAccountVerification() %}
                <li>
                    <a
                            href="/members/messages/"
                            title="Messages"
                            class="{% if current_uri() == '/members/messages/' or current_uri(true) == '/members/messages/new.php' or current_uri(true) == '/members/messages/view_thread.php' %}active{% endif %}"
                    >
                        <span class="menuTitle">Messages {{ member_new_messages() }}</span>
                        <span class="menuSubtitle">Chat online with our healthcare professionals.</span>
                    </a>
                </li>
                {% endif %}

                <li>
                    <a href="{{ route('members-logout', [], false) }}" title="Logout" class="{% if current_uri() == '/members/logout.php' %}active{% endif %}">
                        <span class="menuTitle">Logout</span>
                        <span class="menuSubtitle">We hope to see you back here soon.</span>
                    </a>
                </li>
            {% else %}
                <li>
                    <a href="{{ route('members-login') }}">
                        <span class="menuTitle">Login</span>
                        <span class="menuSubtitle">Please login to view your account.</span>
                    </a>
                </li>
            {% endif %}

        </ul> <!-- .contentSidebar -->
    </nav>

</div> <!-- .contentSidebarWrap -->
