mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-14 04:32:31 -05:00
41 lines
1.6 KiB
PHP
41 lines
1.6 KiB
PHP
<nav class="navbar navbar-default">
|
|
<div class="container-fluid">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#spark-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('/dashboard') }}">
|
|
{{ env('APP_NAME') }} Dashboard
|
|
</a>
|
|
</div>
|
|
|
|
<div id="spark-navbar-collapse" class="navbar-collapse collapse">
|
|
<ul class="nav navbar-nav navbar-right">
|
|
@if (Auth::guest())
|
|
<li><a href="{{ url('/login') }}">Login</a></li>
|
|
|
|
@if(env('REGISTRATION', false))
|
|
<li><a href="{{ url('/register') }}">Register</a></li>
|
|
@endif
|
|
@else
|
|
@set('menu_class', 'nav-item')
|
|
@include('dashboard.sections.menu')
|
|
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
|
|
{{ Auth::user()->name }} <span class="caret"></span>
|
|
</a>
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
|
<li><a href="{{ url('/logout') }}">Logout</a></li>
|
|
</ul>
|
|
</li>
|
|
@endif
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|