feat|fix: Adiciona novas opções no header, adiciona o perfil e menu do perfil.
This commit is contained in:
parent
9024fc4439
commit
ac3ed58dae
|
|
@ -16,24 +16,56 @@
|
||||||
</head>
|
</head>
|
||||||
<header>
|
<header>
|
||||||
<nav class="nav-bar">
|
<nav class="nav-bar">
|
||||||
|
@auth
|
||||||
|
<div class="navbar-items">
|
||||||
|
<a href="{{ route('dashboard') }}">Início</a>
|
||||||
<div class="nav-bar-logo">
|
<div class="nav-bar-logo">
|
||||||
<!-- <img src="{{ Vite::asset('resources/images/logo.png') }}" alt="Logo"> -->
|
<a href="{{ route('dashboard') }}">
|
||||||
|
<img src="{{ Vite::asset('resources/images/logo.png') }}" alt="Logo">
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@auth
|
|
||||||
<a href="{{ route('dashboard') }}">Início</a>
|
|
||||||
<form action="{{ route('logout') }}" method="post">
|
<form action="{{ route('logout') }}" method="post">
|
||||||
@csrf
|
@csrf
|
||||||
<button type="submit">
|
<button type="submit">
|
||||||
Logout
|
Sair
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div x-data="{open: false}" x-on:click.outside="open = false" class="profile-menu max-w-12">
|
||||||
|
<a x-on:click="open = !open" class="cursor-pointer">
|
||||||
|
<img class="w-15 h-15 rounded-full object-cover"
|
||||||
|
src="{{ Vite::asset('resources/images/avatar-nexus.svg') }}" alt="Avatar">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<ul class="profile-list-items" x-show="open">
|
||||||
|
|
||||||
|
<li class="profile-items">
|
||||||
|
<a href="" class="profile-link">
|
||||||
|
Adicionar Clientes
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="profile-items">
|
||||||
|
<a href="" class="profile-link">
|
||||||
|
Visualizar Clientes
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="profile-items">
|
||||||
|
<a href="" class="profile-link">
|
||||||
|
Administração
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
@endauth
|
@endauth
|
||||||
|
|
||||||
@guest
|
@guest
|
||||||
<div>Bem vindo ao Nexus.</div>
|
<div>Bem vindo ao Nexus.</div>
|
||||||
@endguest
|
@endguest
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue