<div class="page-sidebar navbar-collapse collapse">
    <ul class="page-sidebar-menu  page-header-fixed " data-keep-expanded="false" data-auto-scroll="true"
        data-slide-speed="200" style="padding-top: 20px">

        <li class="sidebar-toggler-wrapper hide">
            <div class="sidebar-toggler">
                <span></span>
            </div>
        </li>

        <li class="nav-item start {{ (Request::is('inicio') ? 'active' : '') }} ">
            <a href="{{ route('home') }}" class="nav-link nav-toggle  ">
                <i class="icon-home"></i>
                <span class="title">Inicio</span>
            </a>
        </li>

        @if(Auth::user()->hasRole('Administrador') || Auth::user()->hasRole('Bibliotecario'))
            <li class="nav-item start {{ (Request::is('bibliografia') ? 'active' : '') }} ">
                <a href="{{ url('bibliografia') }}" class="nav-link nav-toggle ">
                    <i class="icon-plus"></i>
                    <span class="title">Gesti&oacute;n de registro de bibliograf&iacute;a</span>
                </a>
            </li>
        @endif

        @if(Auth::user()->hasRole('Administrador') || Auth::user()->hasRole('Bibliotecario'))
            <li class="nav-item start {{ (Request::is('autor') ? 'active' : '') }} ">
                <a href="{{ url('autor') }}" class="nav-link nav-toggle ">
                    <i class="fa fa-pencil"></i>
                    <span class="title">Autores</span>
                </a>
            </li>
        @endif

        <li class="nav-item start  {{ (Request::is('reservar') ? 'active' : '') }} ">
            <a href="{{ url('reservar') }}" class="nav-link nav-toggle">
                <i class="icon-magnifier"></i>
                <span class="title">Consulta de bibliograf&iacute;as</span>
            </a>
        </li>

        @if(Auth::user()->hasRole('Administrador'))
            <li class="nav-item start {{ (Request::is('prestamos/configuracion') ? 'active' : '') }}">
                <a href="{{ url('prestamos/configuracion') }}" class="nav-link nav-toggle">
                    <i class="icon-settings"></i>
                    <span class="title">Configuraci&oacute;n de pr&eacute;stamos</span>
                </a>
            </li>
        @endif

        <li class="nav-item start {{ (Request::is('historialprestamos') ? 'active' : '') }}">
            <a href="{{ url('historialprestamos') }}" class="nav-link nav-toggle">
                <i class="icon-doc"></i>
                <span class="title">Consultar historial de pr&eacute;stamos</span>
            </a>
        </li>


        <li class="nav-item start {{ (Request::is('prestamos/estado') ? 'active' : '') }}">
            <a href="{{ url('prestamos/estado') }}"
               class="nav-link nav-toggle {{ (Request::is('prestamos/estado') ? 'active' : '') }}">
                <i class="icon-eyeglasses"></i>
                <span class="title">Estado  de pr&eacute;stamos</span>
            </a>
        </li>

        @if(Auth::user()->hasRole('Administrador') || Auth::user()->hasRole('Bibliotecario'))
            <li class="nav-item start {{ (Request::is('prestamos/estados') ? 'active' : '') }}">
                <a href="{{ url('prestamos/estados') }}" class="nav-link nav-toggle {{ (Request::is('prestamos/estados') ? 'active' : '') }}">
                    <i class="icon-eyeglasses"></i>
                    <span class="title">Estados de pr&eacute;stamos de usuarios</span>
                </a>
            </li>
        @endif

        @if(Auth::user()->hasRole('Bibliotecario'))
            <li class="nav-item start  {{ (Request::is('prestamos/devolucion') ? 'active' : '') }}">
                <a href="{{ url('prestamos/devolucion') }}" class="nav-link nav-toggle ">
                    <i class="icon-note"></i>
                    <span class="title">Devoluci&oacute;n  de pr&eacute;stamos</span>
                </a>
            </li>
        @endif

        @if(Auth::user()->hasRole('Bibliotecario'))
            <li class="nav-item start {{ (Request::is('prestamos/validarbusquedaprestamo') ? 'active' : '') }}">
                <a href="{{ url('prestamos/validarbusquedaprestamo') }}" class="nav-link nav-toggle ">
                    <i class="glyphicon glyphicon-plus"></i>
                    <span class="title"> Registro de pr&eacute;stamos</span>
                </a>
            </li>
        @endif

        @if(Auth::user()->hasRole('Administrador') || Auth::user()->hasRole('Bibliotecario'))
            <li class="nav-item start {{ (Request::is('perdidas') ? 'active' : '') }}">
                <a href="{{ url('perdidas') }}" class="nav-link nav-toggle ">
                    <i class="glyphicon glyphicon-header"></i>
                    <span class="title"> Libros Perdidos </span>
                </a>
            </li>
        @endif

        @if(Auth::user()->hasRole('Administrador') || Auth::user()->hasRole('Bibliotecario'))
            <li class="nav-item start {{ (Request::is('campoinvestigacion') ? 'active' : '') }}">
                <a href="{{ url('campoinvestigacion') }}" class="nav-link nav-toggle ">
                    <i class="glyphicon glyphicon-book"></i>
                    <span class="title"> Campos de Investigaci&oacute;n </span>
                </a>
            </li>
        @endif

        @if(Auth::user()->hasRole('Administrador') || Auth::user()->hasRole('Bibliotecario'))
            <li class="nav-item start {{ (Request::is('investigaciones') ? 'active' : '') }}">
                <a href="{{ url('investigaciones') }}" class="nav-link nav-toggle">
                    <i class="glyphicon glyphicon-cloud"></i>
                    <span class="title"> Investigaciones </span>
                </a>
            </li>
        @endif

        @if(Auth::user()->hasRole('Administrador') || Auth::user()->hasRole('Bibliotecario'))
            <li class="nav-item start {{ (Request::is('reporte/prestamos') || Request::is('reporte/estadisticas') ? 'open' : '') }}">
                <a href="javascript:;" class="nav-link nav-toggle">
                    <i class="icon-graph"></i>
                    <span class="title">Reportes</span>
                    <span class="arrow"></span>
                </a>
                <ul class="sub-menu"
                    style="{{ (Request::is('reporte/prestamos') || Request::is('reporte/estadisticas') ? 'display: block' : 'display: none') }}">
                    <li class="nav-item start">
                        <a href="{{ url('reporte/prestamos') }}"
                           class="nav-link {{ (Request::is('prestamos') ? 'active' : '') }}">
                            <span class="title">Reporte prestamos</span>
                        </a>
                    </li>
                    <li class="nav-item start">
                        <a href="{{ url('reporte/estadisticas') }}"
                           class="nav-link {{ (Request::is('estadisticas') ? 'active' : '') }}">
                            <span class="title">Estadisticas</span>
                        </a>
                    </li>
                </ul>
            </li>
        @endif
    </ul>
</div>