<nav class="navbar navbar-default navbar-static-top bg-dark hr-navbar" role="navigation">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="{{ URL::to('') }}">
            <img class="logo" src="{{ URL::asset('assets/img/logo.png') }}">
        </a>
        @include('partials.breadcrumbs')
    </div>

    <!-- /.navbar-header -->
    <ul class="nav navbar-top-links navbar-right">
        <?php
        $admin = \Session::has('AdminMode');
        $super = \Session::has('SuperMode');
        ?>
        @if($admin || $super)
            <li>
                <a href="{{ url('') }}" style="background-color: white;">
                    <strong style="color: #384950;">{{ ($super)?'Super Admin':'Admin' }}</strong>
                </a>
            </li>
        @endif
        <li class="dropdown">
            <a href="javascript:" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown"
               data-close-others="true">
                <i class="icon icon-profile"></i>
                <span class="username username-hide-on-mobile">
					{{ Auth::user()->name }}
                </span>
                <i class="fa fa-angle-down"></i>
            </a>
            <ul class="dropdown-menu">
                <li>
                    <a href="{{ URL::action('UserController@getChangePassword') }}">
                        <i class="icon-logout"></i> Change Password </a>
                </li>
                <li>
                    <a href="{{ URL::to('logout') }}">
                        <i class="icon-logout"></i> Log Out </a>
                </li>
            </ul>
        </li>
        <!-- END USER LOGIN DROPDOWN -->
    </ul>
    @if(!\Session::has('SuperMode'))
            <!-- /.navbar-top-links -->
    @include('sidebar')
    @endif
</nav>

<!-- END HEADER -->