<nav id="mainNav" class="navbar navbar-default navbar-fixed-top">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span> Menu <i class="fa fa-bars"></i>
                </button>
                <a class="navbar-brand page-scroll" href="/">TB Silalahi Center</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav navbar-right">

                    @if(Sentinel::check())
                    <li role="presentation">
                        <form action="{{url('/logout')}}" method="POST" id="logout-form">
                            {{ csrf_field() }}
                            <a href="#" onclick="document.getElementById('logout-form').submit()">Logout</a>
                        </form>
                    </li>
                    @else
                        <li>
                            <a class="page-scroll" href="{{url('/login')}}">Login</a>
                        </li>
                        <li role="presentation">
                            <a class="page-scroll" href="{{url('/register')}}">Register</a>
                        </li>
                    @endif
                    
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container-fluid -->
    </nav>