You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
topnotch_website/resources/views/layouts/nav.blade.php

97 lines
4.8 KiB
PHTML

3 months ago
<nav class="navbar navbar-expand-md navbar-light bg-white border-bottom">
<div class="container">
<a class="navbar-brand" href="{{ url('/') }}">
{{ config('app.name', 'Laravel') }}
</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 -->
<ul class="navbar-nav me-auto">
<li class="nav-item px-2">
<a class="nav-link @if(request()->routeIs('dashboard')) active @endif "
href="{{route('dashboard')}}">
<x-bi-activity/>
Dashboard</a>
</li>
<li class="nav-item">
<a class="nav-link @if(request()->routeIs('search')) active @endif disabled"
href="">
<x-bi-search/>
Search</a>
</li>
<li class="nav-item px-2">
<a class="nav-link @if(request()->routeIs('orders.*')) active @endif"
href="{{route('orders.index')}}">
<x-bi-box/>
Orders</a>
</li>
<li class="nav-item px-2">
<a class="nav-link @if(request()->routeIs('quotes')) active @endif disabled"
href="">
<x-bi-file-text/>
Quotes</a>
</li>
<li class="nav-item px-2">
<a class="nav-link @if(request()->routeIs('invoices')) active @endif disabled"
href="">
<x-bi-envelope/>
Invoices</a>
</li>
<li class="nav-item dropdown px-2">
<a class="nav-link dropdown-toggle @if(request()->routeIs('management.index') || request()->routeIs('customer.*')) active @endif" href="#"
role="button" data-bs-toggle="dropdown" aria-expanded="false">
<x-bi-pencil-square/>
Management
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item @if(request()->routeIs('customers.*')) fw-bold @endif" href="{{route('management.index')}}">Customers</a></li>
<li><a class="dropdown-item @if(request()->routeIs('packing-slips.*')) fw bold @endif" href="{{route('management.index', 'packing')}}">Packing Slips</a></li>
<li><a class="dropdown-item @if(request()->routeIs('service-files.*')) fw bold @endif" href="{{route('management.index', 'files')}}">Service Files</a></li>
</ul>
</li>
</ul>
<!-- Right Side Of Navbar -->
<ul class="navbar-nav ms-auto">
<!-- Authentication Links -->
@guest
@if (Route::has('login'))
<li class="nav-item">
<a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
</li>
@endif
@if (Route::has('register'))
<li class="nav-item">
<a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a>
</li>
@endif
@else
<li class="nav-item dropdown">
<a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button"
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
{{ Auth::user()->name }}
</a>
<div class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{{ route('logout') }}"
onclick="event.preventDefault();
document.getElementById('logout-form').submit();">
{{ __('Logout') }}
</a>
<form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none">
@csrf
</form>
</div>
</li>
@endguest
</ul>
</div>
</div>
</nav>