<ul class="navbar-nav sidebar sidebar-light accordion" id="accordionSidebar">
    <a class="sidebar-brand d-flex align-items-center justify-content-center" href="#">
        <div class="sidebar-brand-icon">
            <img src="<?php echo base_url('public/assets/restricted/img/logo/logo.png'); ?>" width="63px">
        </div>
        <div class="sidebar-brand-text mx-3 fw-lighter">DocNex Publicações</div>
    </a>

    <li class="nav-item">
        <a class="nav-link" href="<?php echo base_url('restricted/admin/home'); ?>">
            <i class="fas fa-fw fa-tachometer-alt"></i>
            Home
        </a>
    </li>

    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseBooks" aria-expanded="true" aria-controls="collapseTable">
            <i class="fas fa-fw fa-book"></i>
            Livros
        </a>
        <div id="collapseBooks" class="collapse" aria-labelledby="headingTable" data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <h6 class="collapse-header">Livros</h6>
                <a class="collapse-item" href="<?php echo base_url('restricted/admin/books/core'); ?>">Adicionar novo</a>
                <a class="collapse-item" href="<?php echo base_url('restricted/admin/books/books_progress'); ?>">Progresso da revisões</a>
                <a class="collapse-item" href="<?php echo base_url('restricted/admin/books/index'); ?>">Ver todos</a>
            </div>
        </div>
    </li>

    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseChapters" aria-expanded="true" aria-controls="collapseTable">
            <i class="fas fa-fw fa-book"></i>
            Capítulos
        </a>
        <div id="collapseChapters" class="collapse" aria-labelledby="headingTable" data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <h6 class="collapse-header">Capítulos</h6>
                <a class="collapse-item" href="<?php echo base_url('restricted/admin/chapters'); ?>">Todos</a>
                <a class="collapse-item" href="<?php echo base_url('restricted/admin/chapters/chapters_approved'); ?>">Aprovados</a>
                <a class="collapse-item" href="<?php echo base_url('restricted/admin/chapters/chapters_recused'); ?>">Recusados</a>
                <a class="collapse-item" href="<?php echo base_url('restricted/admin/chapters/chapters_in_review'); ?>">Em revisão</a>
                <a class="collapse-item" href="<?php echo base_url('restricted/admin/chapters/chapters_waiting_review'); ?>">Aguardando revisão</a>
            </div>
        </div>
    </li>


    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseUsers" aria-expanded="true" aria-controls="collapseTable">
            <i class="fas fa-fw fa-users"></i>
            Usuários
        </a>
        <div id="collapseUsers" class="collapse" aria-labelledby="headingTable" data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <h6 class="collapse-header">Usuários</h6>
                <a class="collapse-item" href="<?php echo base_url('restricted/admin/users/assign_user_view'); ?>">Designar cargo</a>
                <a class="collapse-item" href="<?php echo base_url('restricted/admin/users/core'); ?>">Adicionar novo</a>
                <a class="collapse-item" href="<?php echo base_url('restricted/admin/users/index'); ?>">Ver todos</a>
            </div>
        </div>
    </li>

    <!-- <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseNotifications" aria-expanded="true" aria-controls="collapseTable">
            <i class="fas fa-fw fa-bell"></i>
            Notificações
        </a>
        <div id="collapseNotifications" class="collapse" aria-labelledby="headingTable" data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <h6 class="collapse-header">Enivar notificações</h6>
                <a class="collapse-item" href="<?php echo base_url('restricted/email'); ?>">Email</a>
                <a class="collapse-item" href="<?php echo base_url('restricted/admin/users/index'); ?>">Whatsapp</a>
            </div>  
        </div>
    </li> -->

    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseEmail" aria-expanded="true" aria-controls="collapseTable">
            <i class="fas fa-fw fa-envelope-open-text"></i>
            Email
        </a>
        <div id="collapseEmail" class="collapse" aria-labelledby="headingTable" data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <a class="collapse-item" href="<?php echo base_url('restricted/admin/email/send_email_view'); ?>">Enviar email</a>
            </div>
        </div>
    </li>

    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseConfig" aria-expanded="true" aria-controls="collapseTable">
            <i class="fas fa-fw fa-tools"></i>
            Configurações
        </a>
        <div id="collapseConfig" class="collapse" aria-labelledby="headingTable" data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <a class="collapse-item" href="<?php echo base_url('restricted/admin/email/email_configuration'); ?>">Configurações de email</a>
            </div>
        </div>
    </li>

</ul>