|
|
|
<nav class="navbar navbar-expand-md navbar-light bg-white py-4 ">
|
|
|
|
<div class="container">
|
|
|
|
<a class="navbar-brand" href="{{ url('/') }}">
|
|
|
|
{{ config('app.name', 'Niisse.net') }}
|
|
|
|
</a>
|
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
|
|
|
|
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
|
|
|
|
aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
|
|
<!-- Left Side Of Navbar -->
|
|
|
|
@auth()
|
|
|
|
<ul class="navbar-nav me-auto">
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a class="nav-link dropdown-toggle @if(request()->routeIs('posts.*')) active @endif" href="#"
|
|
|
|
id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-haspopup="true"
|
|
|
|
aria-expanded="false">
|
|
|
|
Posts
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
|
|
<a class="dropdown-item @if(request()->routeIs('posts.create')) active @endif"
|
|
|
|
href="{{route('posts.create')}}">Create new post</a>
|
|
|
|
<a class="dropdown-item @if(request()->routeIs('posts.index')) active @endif"
|
|
|
|
href="{{route('posts.index')}}">Posts Index</a>
|
|
|
|
{{-- <div class="dropdown-divider"></div>--}}
|
|
|
|
{{-- <a class="dropdown-item" href="#">Something else here</a>--}}
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<form action="{{route('logout')}}" method="post" class="inline-form">
|
|
|
|
@csrf
|
|
|
|
<button type="submit" class="nav-link">Log out</button>
|
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
@endauth
|
|
|
|
|
|
|
|
<!-- Right Side Of Navbar -->
|
|
|
|
<ul class="navbar-nav ms-auto">
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
<a href="{{route('home')}}" class="nav-link @if(request()->routeIs('home')) active @endif">Home</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
<a href="{{route('blog')}}" class="nav-link @if(request()->routeIs('blog')) active @endif">Blog</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
<a href="{{route('photos')}}" class="nav-link @if(request()->routeIs('photos')) active @endif">Photography</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
<a href="" class="nav-link @if(request()->routeIs('music')) active @endif">Music</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
<a href="" class="nav-link @if(request()->routeIs('about')) active @endif">About</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|