  <!-- Main navbar -->
  <div class="navbar navbar-expand-md navbar-light navbar-static">
    <!--div class="navbar-brand">
      <a href="{{ url('/')}}" class="d-inline-block">
      </a>
    </div-->
    <!-- Header with logos -->
    <div class="navbar-header navbar-dark d-none d-md-flex align-items-md-center">
      <div class="navbar-brand navbar-brand-md">
        <a href="{{ url('home') }}" class="d-inline-block">
          <img src="../../../../global_assets/images/logo_light.png" alt="">
        </a>
      </div>
      
      <div class="navbar-brand navbar-brand-xs">
        <a href="{{ url('home') }}" class="d-inline-block">
          <img src="../../../../global_assets/images/logo_icon_light.png" alt="">
        </a>
      </div>
    </div>
    <!-- /header with logos -->
      

    <!-- Mobile controls -->
    <div class="d-flex flex-1 d-md-none">
      <div class="navbar-brand mr-auto">
        <a href="index.html" class="d-inline-block">
          <img src="../../../../global_assets/images/logo_dark.png" alt="">
        </a>
      </div>  

      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-mobile">
        <i class="icon-tree5"></i>
      </button>

      <button class="navbar-toggler sidebar-mobile-main-toggle" type="button">
        <i class="icon-paragraph-justify3"></i>
      </button>
    </div>
    <!-- /mobile controls -->

    <div class="collapse navbar-collapse" id="navbar-mobile">
      @if (Auth::user())
        <ul class="navbar-nav">
          <li class="nav-item">
            <a href="#" class="navbar-nav-link sidebar-control sidebar-main-toggle d-none d-md-block">
              <i class="icon-paragraph-justify3"></i>
            </a>
          </li>
          <li class="nav-item dropdown">
            <a href="#" class="navbar-nav-link dropdown-toggle" data-toggle="dropdown">
              <i class="icon-book"></i> Catalogo
            </a>

            <div class="dropdown-menu">
              @if(empty(env('APP_EXCERPT')))
                <a href="{{ url('accountbanks/') }}" class="dropdown-item {{ (request()->is('accountbanks*')) ? 'active' : '' }}"><i class="icon-city"></i>Cuentas Bancarias</a>
                <a href="{{ url('bancos/') }}" class="dropdown-item {{ (request()->is('bancos*')) ? 'active' : '' }}"><i class="icon-office"></i>Bancos</a>
                <a href="{{ url('cuentas/') }}" class="dropdown-item {{ (request()->is('cuentas*')) ? 'active' : '' }}"><i class="icon-briefcase"></i>Plan de  cuentas</a>
                <a href="{{ url('ccostos/') }}" class="dropdown-item {{ (request()->is('ccostos*')) ? 'active' : '' }}"><i class="icon-bookmark "></i>Centro de costos</a>
                <a href="{{ url('tipdoc/') }}" class="dropdown-item {{ (request()->is('tipdoc*')) ? 'active' : '' }}"><i class="icon-bookmark "></i>Tipo de  documento</a>
              @endif
              @check('entidad')
                <a href="{{ url('entidad/') }}" class="dropdown-item {{ (request()->is('entidad*')) ? 'active' : '' }}"><i class="icon-bookmark "></i>Entidad</a>
              @endcheck
            </div>
          </li>
          @if(empty(env('APP_EXCERPT')))
            <li class="nav-item dropdown">
              <a href="#" class="navbar-nav-link dropdown-toggle" data-toggle="dropdown">
               <i class="icon-books"></i> Libros electronicos
              </a>

              <div class="dropdown-menu">
                <a href="{{ url('compras') }}" class="dropdown-item {{ (request()->is('compras*')) ? 'active' : '' }}"><i class="icon-cart-add2"></i>Compras</a>
                <a href="{{ url('ventas') }}" class="dropdown-item {{ (request()->is('ventas*')) ? 'active' : '' }}"><i class="icon-cart-remove"></i>Ventas</a>
                <a href="{{ url('rphonorarios') }}" class="dropdown-item {{ (request()->is('rphonorarios*')) ? 'active' : '' }}"><i class="icon-file-text"></i>Recibo por honorarios</a>
              </div>
            </li>
         
            <li class="nav-item dropdown">
              <a href="#" class="navbar-nav-link dropdown-toggle" data-toggle="dropdown">
                <i class="icon-three-bars "></i> Utilitarios
              </a>

              <div class="dropdown-menu">
                <a href="{{ url('forpag') }}" class="dropdown-item {{ (request()->is('forpag*')) ? 'active' : '' }}"><i class="icon-drawer3"></i>Formas de pago</a>
                <a href="{{ url('divisas/') }}" class="dropdown-item {{ (request()->is('divisas*')) ? 'active' : '' }}"><i class="icon-coins"></i>Divisas</a>
                <a href="{{ url('tcambio') }}" class="dropdown-item {{ (request()->is('tcambio*')) ? 'active' : '' }}"><i class="icon-coins"></i>Tipo de cambio</a>
                <a href="{{ url('articulos') }}" class="dropdown-item {{ (request()->is('articulos*')) ? 'active' : '' }}"><i class="icon-portfolio"></i>Articulos</a>
                <a href="{{ url('art_familia') }}" class="dropdown-item {{ (request()->is('art_familia*')) ? 'active' : '' }}"><i class="icon-box "></i>Familias art</a>
                <a href="{{ url('tag_art') }}" class="dropdown-item {{ (request()->is('tag_art*')) ? 'active' : '' }}"><i class="icon-price-tag3"></i>Tag art</a>
              </div>
            </li>
          @endif
        </ul>
      @endif


    <!-- Mobile controls -->
    <div class="d-flex flex-1 d-md-none">
      <div class="navbar-brand mr-auto">
        <a href="index.html" class="d-inline-block">
          <img src="../../../../global_assets/images/logo_dark.png" alt="">
        </a>
      </div>  

      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-mobile">
        <i class="icon-tree5"></i>
      </button>

      <button class="navbar-toggler sidebar-mobile-main-toggle" type="button">
        <i class="icon-paragraph-justify3"></i>
      </button>
    </div>
    <!-- /mobile controls -->

      <!--span class="navbar-text ml-md-3">
        <span class="badge badge-mark border-orange-300 mr-2"></span>
        Morning, Victoria!
      </span-->

      <ul class="navbar-nav ml-md-auto">
        @guest
          <li class="nav-item">
            <a href="{{ route('login') }}" class="navbar-nav-link">{{ __('Login') }}</a>
          </li>
          @if (Route::has('register'))
            <li class="nav-item">
              <a href="{{ route('register') }}" class="navbar-nav-link">{{ __('Register') }}</a>
            </li>
          @endif
        @else
          <li class="nav-item dropdown">
            <a href="#" class="navbar-nav-link dropdown-toggle" data-toggle="dropdown">
              <i class="icon-users4 "></i> Usuarios
            </a>

            <div class="dropdown-menu">
              <a href="{{ url('user') }}" class="dropdown-item {{ (request()->is('user')) ? 'active' : '' }}"><i class="icon-user"></i> Usuarios</a>

              <a href="{{ url('user/config/roles') }}" class="dropdown-item {{ (request()->is('user/config/roles*')) ? 'active' : '' }}"><i class="icon-vcard"></i> Roles</a>

              <a href="{{ url('user/config/permission') }}" class="dropdown-item {{ (request()->is('user/config/permission*')) ? 'active' : '' }}"><i class="icon-equalizer"></i>Permisos</a>

              <a href="{{ url('user/config/modules') }}" class="dropdown-item {{ (request()->is('user/config/modules*')) ? 'active' : '' }}"><i class="icon-safe"></i>Modules</a>
            </div>
          </li>
          <!--li class="nav-item dropdown">
            <a href="#" class="navbar-nav-link dropdown-toggle" data-toggle="dropdown">
              <i class="icon-make-group mr-2"></i>
              Connect
            </a>

            <div class="dropdown-menu dropdown-menu-right dropdown-content wmin-md-350">
              <div class="dropdown-content-body p-2">
                <div class="row no-gutters">
                  <div class="col-12 col-sm-4">
                    <a href="#" class="d-block text-default text-center ripple-dark rounded p-3">
                      <i class="icon-github4 icon-2x"></i>
                      <div class="font-size-sm font-weight-semibold text-uppercase mt-2">Github</div>
                    </a>

                    <a href="#" class="d-block text-default text-center ripple-dark rounded p-3">
                      <i class="icon-dropbox text-blue-400 icon-2x"></i>
                      <div class="font-size-sm font-weight-semibold text-uppercase mt-2">Dropbox</div>
                    </a>
                  </div>
                  
                  <div class="col-12 col-sm-4">
                    <a href="#" class="d-block text-default text-center ripple-dark rounded p-3">
                      <i class="icon-dribbble3 text-pink-400 icon-2x"></i>
                      <div class="font-size-sm font-weight-semibold text-uppercase mt-2">Dribbble</div>
                    </a>

                    <a href="#" class="d-block text-default text-center ripple-dark rounded p-3">
                      <i class="icon-google-drive text-success-400 icon-2x"></i>
                      <div class="font-size-sm font-weight-semibold text-uppercase mt-2">Drive</div>
                    </a>
                  </div>

                  <div class="col-12 col-sm-4">
                    <a href="#" class="d-block text-default text-center ripple-dark rounded p-3">
                      <i class="icon-twitter text-info-400 icon-2x"></i>
                      <div class="font-size-sm font-weight-semibold text-uppercase mt-2">Twitter</div>
                    </a>

                    <a href="#" class="d-block text-default text-center ripple-dark rounded p-3">
                      <i class="icon-youtube text-danger icon-2x"></i>
                      <div class="font-size-sm font-weight-semibold text-uppercase mt-2">Youtube</div>
                    </a>
                  </div>
                </div>
              </div>
            </div>
          </li-->
        @endguest
        @if (Auth::user())
          <li class="nav-item">
            <a href="{{ route('logout') }}" class="navbar-nav-link"  onclick="event.preventDefault();
                                             document.getElementById('logout-form').submit();">
              <i class="icon-switch2"></i>
              <span class="d-md-none ml-2"> {{ __('Desconectar') }}</span>
            </a>
            <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                @csrf
            </form>
          </li>
        @endif
      </ul>
    </div>
  </div>
  <!-- /main navbar -->

  <!-- Alternative navbar -->
  @if (Auth::user())
    <!--div class="navbar navbar-expand-md navbar-light navbar-static navbar-sticky">
      <div class="text-center d-md-none w-100">
        <button type="button" class="navbar-toggler dropdown-toggle" data-toggle="collapse" data-target="#navbar-second">
          <i class="icon-unfold mr-2"></i>
          Alternative navbar
        </button>
      </div>

      <div class="navbar-collapse collapse" id="navbar-second">
        <ul class="navbar-nav">
          <li class="nav-item">
            <a href="#" class="navbar-nav-link">
              Text link
            </a>
          </li>
          <li class="nav-item">
            <a href="#" class="navbar-nav-link">
              Link width badge
              <span class="badge badge-pill bg-indigo-400 position-static ml-auto ml-md-2">5</span>
            </a>
          </li>
          <li class="nav-item dropdown">
            <a href="#" class="navbar-nav-link dropdown-toggle" data-toggle="dropdown">
              Dropdown
            </a>

            <div class="dropdown-menu">
              <a href="#" class="dropdown-item">Action</a>
              <a href="#" class="dropdown-item">Another action</a>
              <a href="#" class="dropdown-item">One more action</a>
              <div class="dropdown-divider"></div>
              <a href="#" class="dropdown-item">Separate action</a>
            </div>
          </li>
        </ul>

        <ul class="navbar-nav ml-md-auto">
          <li class="nav-item">
            <a href="#" class="navbar-nav-link">
              Link
              <span class="badge badge-pill bg-indigo-400 position-static ml-auto ml-md-2">28</span>
            </a>
          </li>

          <li class="nav-item dropdown">
            <a href="#" class="navbar-nav-link dropdown-toggle" data-toggle="dropdown">
              Dropdown
            </a>

            <div class="dropdown-menu dropdown-menu-right">
              <a href="#" class="dropdown-item">Action</a>
              <a href="#" class="dropdown-item">Another action</a>
              <a href="#" class="dropdown-item">One more action</a>
              <div class="dropdown-divider"></div>
              <a href="#" class="dropdown-item">Separate action</a>
            </div>
          </li>
        </ul>
      </div>
    </div-->
  @endif
  <!-- /alternative navbar -->
