<!-- Sub navigation -->
<nav id="sidebar" class="sidebar">
    <div class="sidebar-content js-simplebar">
        <a class="sidebar-brand" href="index.html">
            <span class="align-middle">
                <i class="fas fa-robot"></i> Trader
            </span>
        </a>

        <ul class="sidebar-nav">
            {{#rootNav}}
            <li class="sidebar-header">
                {{.getName()}}
            </li>
            {{#.getSubNavs()}}
            <li class="sidebar-item {{#.isActive()}}active{{/.isActive()}}">
                {{^.getSubNavs().length}}
                    <a class="sidebar-link {{#.isActive()}}active{{/.isActive()}}" href="{{.getURL()}}">
                        <span class="align-middle">{{.getName()}}</span>
                    </a>
                {{/.getSubNavs().length}}
                {{#.getSubNavs().length}}
                <a class="sidebar-link" data-bs-target="#dashboards" data-bs-toggle="collapse">
                    <i class="align-middle"></i>
                    <span class="align-middle">{{.getName()}}</span>
                </a>
                <ul class="sidebar-dropdown list-unstyled collapse show" data-bs-parent="#sidebar">
                    {{#.getSubNavs()}}
                    <li class="sidebar-item {{#.isActive()}}active{{/.isActive()}}">
                        <a class="sidebar-link" href="{{.getURL()}}">{{.getName()}}</a>
                    </li>
                    {{/.getSubNavs()}}
                </ul>
                {{/.getSubNavs().length}}
            </li>
            {{/.getSubNavs()}}
            {{/rootNav}}
        </ul>

        <!--
        <div class="sidebar-cta">
            <div class="sidebar-cta-content">
                <strong class="d-inline-block mb-2">Weekly Sales Report</strong>
                <div class="mb-3 text-sm">
                    Your weekly sales report is ready for download!
                </div>

                <div class="d-grid">
                    <a href="https://adminkit.io/" class="btn btn-outline-primary" target="_blank">Download</a>
                </div>
            </div>
        </div>
        -->
    </div>
</nav>
