82 lines
2.6 KiB
PHP
82 lines
2.6 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<title> @yield('title', 'Nexus') </title>
|
|
|
|
<!-- Fonts -->
|
|
<link rel="preconnect" href="https://fonts.bunny.net">
|
|
<link href="https://fonts.bunny.net/css?family=instrument-sans:400,500,600" rel="stylesheet" />
|
|
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
|
@livewireStyles
|
|
|
|
</head>
|
|
<header>
|
|
<nav class="nav-bar" x-data="{ scrolled: false }" x-init="scrolled = (window.scrollY > 50)"
|
|
@scroll.window="scrolled = (window.scrollY > 50)" :class="{ 'navbar-scrolled': scrolled }">
|
|
@auth
|
|
<div class="navbar-items">
|
|
<a href="{{ route('dashboard') }}">Início</a>
|
|
<div class="nav-bar-logo">
|
|
<a href="{{ route('dashboard') }}">
|
|
<img src="{{ Vite::asset('resources/images/logo.png') }}" alt="Logo">
|
|
</a>
|
|
</div>
|
|
|
|
<form action="{{ route('logout') }}" method="post">
|
|
@csrf
|
|
<button type="submit">
|
|
Sair
|
|
</button>
|
|
</form>
|
|
</div>
|
|
|
|
<div x-data="{open: false}" x-on:click.outside="open = false" class="profile-menu">
|
|
|
|
<a x-on:click="open = !open" class="cursor-pointer rounded-full overflow-hidden">
|
|
|
|
<img class="object-cover w-full h-full rounded-full"
|
|
src="{{ Vite::asset('resources/images/avatar-nexus.svg') }}" alt="Avatar">
|
|
</a>
|
|
|
|
<ul class="profile-list-items" x-show="open">
|
|
<h2 class="font-weight-bold text-center">Nexus</h2>
|
|
|
|
<li class="profile-items">
|
|
<a @click="$dispatch('open-create-user')" class="profile-link">
|
|
Criar novo usuário
|
|
</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
|
|
|
|
@guest
|
|
<div>Bem vindo ao Nexus.</div>
|
|
@endguest
|
|
</nav>
|
|
</header>
|
|
|
|
<body>
|
|
@yield('content')
|
|
@livewireScripts
|
|
</body>
|
|
|
|
|
|
</html> |