Вы находитесь на странице: 1из 4

<nav class="nav navbar-inverse navbar-fixed-top" role="navigation" id="navigatio

n-bar">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="c
ollapse" data-target="#tris-navbar">
<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('/') }}">
TRIS
</a>
</div>
<div class="collapse navbar-collapse" id="tris-navbar">
<ul class="nav navbar-nav">
{{-- Home Link --}}
@if($page == 'home')
<li class="active">
<a href="{{ url('/') }}">
<span class="glyphicon glyphicon-home"></span> Home
</a>
</li>
@else
<li>
<a href="{{ url('/') }}">
<span class="glyphicon glyphicon-home"></span> Home
</a>
</li>
@endif
{{-- Manage Devices Link --}}
@if($page == 'manage_devices')
<li class="active dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdow
n" role="button" aria-expanded="false">
<span class="glyphicon glyphicon-phone"></span> Man
age Devices
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="{{ url('/tris') }} ">
<span class="glyphicon glyphicon-briefcase">
</span> Stocks
</a>
</li>
<li>
<a href="{{ url('/type') }}">
<span class="glyphicon glyphicon-phone"></sp
an> Device Types
</a>
</li>
</ul>
</li>
@else
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdow

n" role="button" aria-expanded="false">


<span class="glyphicon glyphicon-phone"></span> Man
age Devices
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="{{ url('/tris') }}">
<span class="glyphicon glyphicon-briefcase">
</span> Stocks
</a>
</li>
<li>
<a href="{{ url('/type') }}">
<span class="glyphicon glyphicon-phone"></sp
an> Device Types
</a>
</li>
</ul>
</li>
@endif
{{-- Manage Locations Link --}}
@if($page == 'manage_locations')
<li class="active">
<a href="{{ url('/location') }}">
<span class="glyphicon glyphicon-map-marker"></span> Ma
nage Locations
</a>
</li>
@else
<li>
<a href="{{ url('/location') }}">
<span class="glyphicon glyphicon-map-marker"></span>
Manage Locations
</a>
</li>
@endif
{{-- Manage Users Links --}}
@if($page == 'manage_users')
<li class="active dropdown">
<a class="dropdown-toggle" href="#" role="button" data-t
oggle="dropdown" aria-expanded="false">
<span class="glyphicon glyphicon-user"></span> Mana
ge Users
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="#">
<span class="glyphicon glyphicon-lock"></spa
n> System Admin
</a>
</li>
<li>
<a href="#">
<span class="glyphicon glyphicon-user"></spa
n> System User

</a>
</li>
</ul>
</li>
@else
<li class="dropdown">
<a class="dropdown-toggle" href="#" role="button" data-t
oggle="dropdown" aria-expanded="false">
<span class="glyphicon glyphicon-user"></span> Mana
ge Users
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="#">
<span class="glyphicon glyphicon-lock"></spa
n> System Admin
</a>
</li>
<li>
<a href="#">
<span class="glyphicon glyphicon-user"></spa
n> System User
</a>
</li>
</ul>
</li>
@endif

n"
em

n"
em

n>

{{-- System Log Links --}}


@if($page == 'system_log')
<li class="active dropdown">
<a class="dropdown-toggle" href="#" data-toggle="dropdow
role="button" aria-expanded="false">
<span class="glyphicon glyphicon-book"></span> Syst
Log
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="#">
User Log
</a>
</li>
</ul>
</li>
@else
<li class="dropdown">
<a class="dropdown-toggle" href="#" data-toggle="dropdow
role="button" aria-expanded="false">
<span class="glyphicon glyphicon-book"></span> Syst
Log
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="#">
<span class="glyphicon glyphicon-file"></spa
User Log

</a>
</li>
</ul>
</li>
@endif
</ul>
</div>
</div>
</nav>