 
<nav class="navbar navbar-toggleable-md navbar-light menuPrimary navbar-fixed-top navbar.navbar-static-top">
  <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
    VER MENÚ  <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-light iconHome" href="{{url('/')}}">
    <i class="fa fa-home material-icons left"></i>
  </a>

  <div class="collapse navbar-collapse" id="navbarNavDropdown">
    <ul class="navbar-nav">
      {{-- <li class="nav-item active {{ Request::is('') ? 'active' : 'noneStyle' }}">
        <a class="nav-link__" href="#"> INICIO <span class="sr-only">(current)</span></a>
      </li> --}}
      <li class="nav-item  menuItems {{ Request::is('nuestra-historia*') ? 'active' : '' }}">
        <a class="nav-link" href="{{url('nuestra-historia/blog')}}"> Nuestra Historia </a>
      </li>
      <li class="nav-item  menuItems {{ Request::is('autoridades*') ? 'active' : '' }}">
        <a class="nav-link" href="{{route('autoridades.index')}}"> Autoridades </a>
      </li>
      <li class="nav-item  menuItems {{ Request::is('noticias*') ? 'active' : '' }}">
        <a class="nav-link" href="{{url('noticias/blog')}}">
          
            @php
              $nuevos = DB::table('contents')->where('publish_up', date('Y-m-d') )->count();
             if( $nuevos ){ echo '<span class="new badge">'.$nuevos.' nuevos'. '</span>'; } @endphp 
           Noticias</a>
      </li> 
      <li class="nav-item  menuItems {{ Request::is('opiniones*') ? 'active' : '' }}">
        <a class="nav-link" href="{{url('cultura/blog')}}"> Cultura</a>
      </li>

      <li class="nav-item dropdown
        {{ Request::is('multimedia*') ? 'active' : '' }}
        {{ Request::is('documentos*') ? 'active' : '' }}
        {{ Request::is('fotos*') ? 'active' : '' }}
        ">
        <a class="nav-link dropdown-toggle" href="#" id="navUser" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          Galería
        </a>
        <div class="dropdown-menu text-left" aria-labelledby="navUser"> 
            <a class="dropdown-item menuItems" href="{{url('multimedia')}}">
                Multimedia </a>
            <a class="dropdown-item menuItems" href="{{url('documentos')}}">
                Documentos </a>
            <a class="dropdown-item " href="{{ url('albums') }}">
                Fotos </a> 
        </div>
      </li>

      <li class="nav-item  dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="navUser" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          <i class="fa fa-key"></i>
        </a>
        <div class="dropdown-menu text-left" aria-labelledby="navUser">
          @if(Auth::user())
            <a class="dropdown-item" href="#"><i class="fa fa-user"></i> Bienvenido: {{Auth::user()->name}} </a>
            <a class="dropdown-item active red" href="{{ url('/logout') }}"><i class="fa fa-lock"></i> Cerrar sesión </a>
          @else
            <a class="dropdown-item" href="{{ url('/login') }}"><i class="fa fa-unlock"></i> Iniciar Sesión </a> 
          @endif
        </div>
      </li> 
    </ul>
  </div>
</nav>

