<nav class="navbar navbar-expand-lg navbar-dark bg-dark rounded-bottom sticky-top">
    <div class="w0bm-logo">
        <a class="navbar-brand" href="/">
            <img  data-toggle="popover" data-trigger="hover" data-placement="left" data-content="0tter 5h1t" id="logo" src="https://w0bm.com/w0bm_mosh_banner_by_marderchen.gif" class="d-inline-block align-top" alt="w0bm.com">
        </a>
    </div>
  	<ul class="navbar-nav mr-auto">
      @if (!empty($__env->yieldContent('novidcontent')))
      @else
      
        @endif
        @if(Auth::check())
        <li class="nav-link dropdown">
        <button id="nav-user" class="btn btn-dark nav-link bg-toggle dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          <span><i class="fa fa-user fa-lg"></i> {{Auth::user()->username}}</span>
        </button>
          <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  <div class="">
    <a class="dropdown-item" href="{{url('user', Auth::user()->username)}}">{{Auth::user()->username}}</a>
      <a class="dropdown-item" href="{{url('messages')}}"><span class=""><i class="fa fa-envelope-square"></i> {{Auth::user()->messagesRecv()->unread()->count()}}</span></a>
      <a class="dropdown-item" href="#" data-toggle="modal" data-target="#filterselectmodal">Filter</a>
      <a class="dropdown-item" href="{{url('upload')}}">Upload</a>
  </div>
            <a class="dropdown-item" href="{{url('logout')}}">Logout</a>
          </div>
        @else
   
        @endif
      </li>
      @if(Auth::check())
      <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          Links
        </a>
        <div class="dropdown-menu" aria-labelledby="navbarDropdown">
          <a class="dropdown-item" href="/index">Index</a>
          <a class="dropdown-item" href="/about">About</a>
          <a class="dropdown-item" href="/stats">Stats</a>
        </div>
      </li>
<li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          Layout
        </a>
        <div id="layoutSwitcher" class="dropdown-menu" aria-labelledby="navbarDropdown">
          <a class="dropdown-item" id="layout1" href="#">Standard</a>
          <a class="dropdown-item" id="layout2" href="#">Njum</a>
        </div>
      </li>

  </ul>
    @else
@endif

      <div class="search-index hidden-xs d-none d-md-block">
        <form method="get" action="/index" class="form-inline my-2 my-lg-0">
            {!! Form::text('q', isset($q) ? $q : null, ['class' => 'form-control mr-sm-2 search-input text-light', 'placeholder' => 'Search w0bm.com']) !!}
            <button class="btn btn-dark" type="submit">Search</button>
        </form>
    </div>

</nav>
