<nav class="navbar navbar-expand-lg navbar-dark bg-dark rounded-bottom sticky-top">
    <div class="w0bm-logo">
        <a class="navbar-brand" href="/main">
            <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>
            @if(Auth::user()->messagesRecv()->unread()->count() < 1)
            <span class="nomsg">|</span>@else
            <span class="yesmg">|</span>@endif {{Auth::user()->username}}</span>
        </button>
          <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  <div class="grid-menu">
    <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 logout" 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 LinksGrid" aria-labelledby="navbarDropdown">
          <a class="dropdown-item" href="/index">Index</a>
          <a class="dropdown-item" href="/categories">Categories</a>
          <a class="dropdown-item" href="/about">About</a>
          <a class="dropdown-item" href="/rules">Rules</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="#">w0bm.com</a>
          <a class="dropdown-item" id="layout3" href="#">z0mb</a>
          <a class="dropdown-item" id="layout4" href="#"><span style="font-size:10px;">nojs</span>z0mbie</a>
          <a class="dropdown-item" id="layout5" href="#">m0bile</a>
        </div>
      </li>

  </ul>
    @else
@endif

@if (\Request::is('index'))
      <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>
@else
      <div class="search-index hidden-xs d-none d-md-block">
        <form method="get" action="/main" 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>
@endif
</nav>
