mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-25 16:51:25 -05:00
39 lines
1.6 KiB
PHP
39 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('SITE_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.elements.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>
|