<header>
    <nav class="menu">
        <div class="menu-top">
            @if(session()->has('features') && in_array('SCRIBE', session()->get('features')))
                <a href="/scribe" class="menu__item {{ request()->is('scribe') ? 'menu__item--active' : '' }} scribe" title="SCRIBE" id="home">
                    <i class="material-icons-outlined">record_voice_over</i>
                </a>
            @endif
            @if(session()->has('features') && in_array('ADDPATIENT', session()->get('features')))
                <a href="javascript:void(0)" class="menu__item" title="ADD PATIENT" id="add-patient">
                    <i class="material-icons-outlined">add</i>
                </a>
            @endif
            @if(session()->has('features') && in_array('ELIGIBILITY', session()->get('features')))
                <a href="{{env('APP_URL')}}/check-eligibility" title="ELIGIBILITY" class="menu__item {{ request()->is('check-eligibility') ? 'menu__item--active' : '' }} check-eligibility">
                    <i class="material-icons-outlined">fact_check</i>
                </a>
            @endif
            @if(session()->has('features') && in_array('PREAUTH', session()->get('features')))
                <a href="{{env('APP_URL')}}/pre-auth" title="PRIOR AUTH" class="menu__item {{ request()->is('pre-auth') ? 'menu__item--active' : '' }} pre-auth">
                    <i class="material-icons-outlined">security</i>
                </a>
            @endif
            @if(session()->has('features') && in_array('EXPLANATIONOFBENEFIT', session()->get('features')))
                <a href="{{env('APP_URL')}}/eob" title="EXPLANATION OF BENEFIT" class="menu__item {{ request()->is('eob') ? 'menu__item--active' : '' }}">
                    <i class="material-icons-outlined">shield</i>
                </a>
            @endif
            @if(session()->has('features') && in_array('BENEFITEXPLAINER', session()->get('features')))
                <a href="javascript:void(0)" title="BENEFIT EXPLAINER" id="chatbot-icon" class="menu__item">
                    <i class="material-icons-outlined">chat</i>
                </a>
            @endif
        </div>
        <div class="menu-bottom">
            <a href="javascript:void(0)" title="HELP" id="get-help" class="menu__item">
                <i class="material-icons">help_outline</i>
            </a>
            <a href="javascript:void(0)" title="SETTINGS" class="menu__item">
                <i class="material-icons-outlined">settings</i>
            </a>
            <a href="javascript:void(0)" title="LOGOUT" id="logoutButton" class="menu__item">
                <i class="material-icons">exit_to_app</i>
            </a>
        </div>
    </nav>
</header>