bookinventory/resources/views/partials/navbar.blade.php

25 lines
1.4 KiB
PHP
Raw Permalink Normal View History

2020-12-26 10:46:23 +00:00
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
2020-12-27 09:38:15 +00:00
<a class="navbar-brand" href="/">{{ config('app.name') }}</a>
2020-12-26 10:46:23 +00:00
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault"
aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav mr-auto">
<li class="nav-item {{ Request::is('/') ? 'active' : '' }}">
2020-12-26 10:46:23 +00:00
<a class="nav-link" href="/">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item {{ Request::segment(1) == 'locations' ? 'active' : '' }}">
2020-12-27 00:34:07 +00:00
<a class="nav-link" href="{{ route('locations.index') }}">Locations</a>
</li>
<li class="nav-item {{ Request::segment(1) == 'add' ? 'active' : '' }}">
2020-12-27 00:34:07 +00:00
<a class="nav-link" href="{{ route('add') }}">Add</a>
2020-12-26 10:46:23 +00:00
</li>
</ul>
<form class="form-inline my-2 my-lg-0" action="{{ route('search') }}">
<input name="query" class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search" />
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>