lasthourcloud/resources/views/components/navbar.blade.php

101 lines
3.6 KiB
PHP
Raw Normal View History

2023-05-14 12:43:49 +00:00
@auth
2023-05-17 13:46:20 +00:00
<div class="navbar">
<div class="navbar-start">
<div class="dropdown">
<label tabindex="0" class="btn btn-ghost xl:hidden">
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h8m-8 6h16" />
</svg>
</label>
<ul tabindex="0" class="p-2 mt-3 shadow menu menu-compact dropdown-content bg-base-100 rounded-box w-52">
<li>
2023-05-18 11:26:35 +00:00
<a href="/">
2023-05-18 13:12:26 +00:00
Dashboard
2023-05-17 13:46:20 +00:00
</a>
</li>
2023-05-22 10:00:59 +00:00
@if (auth()->user()->isPartOfRootTeam())
2023-05-17 13:46:20 +00:00
<li>
2023-05-18 11:26:35 +00:00
<a href="/settings">
2023-05-17 13:46:20 +00:00
Settings
</a>
</li>
@endif
2023-05-22 10:00:59 +00:00
{{-- <li>
2023-05-18 11:26:35 +00:00
<a href="/profile">
2023-05-17 13:46:20 +00:00
Profile
</a>
2023-05-22 10:00:59 +00:00
</li> --}}
2023-05-17 13:46:20 +00:00
<li>
2023-05-18 11:26:35 +00:00
<a href="/profile/team">
2023-05-17 13:46:20 +00:00
Team
</a>
</li>
<li>
2023-05-18 11:26:35 +00:00
<a href="/command-center">
2023-05-17 13:46:20 +00:00
Command Center
</a>
</li>
2023-05-22 10:00:59 +00:00
@if (auth()->user()->isPartOfRootTeam())
2023-05-17 13:46:20 +00:00
<li>
<livewire:force-upgrade />
</li>
@endif
<li>
<form action="/logout" method="POST">
@csrf
2023-05-18 13:12:26 +00:00
<button>Logout</button>
2023-05-17 13:46:20 +00:00
</form>
</li>
</ul>
</div>
2023-05-18 13:12:26 +00:00
<div href="/" class="text-xl text-white normal-case btn btn-ghost hover:bg-transparent">Coolify</div>
2023-05-17 13:46:20 +00:00
<div class="form-control">
<x-magic-bar />
</div>
</div>
<div class="hidden navbar-end xl:flex">
<ul class="px-1 menu menu-horizontal text-neutral-400">
2023-05-18 13:12:26 +00:00
<li>
<a href="/">
Dashboard
</a>
</li>
2023-05-22 10:00:59 +00:00
@if (auth()->user()->isPartOfRootTeam())
2023-05-17 13:46:20 +00:00
<li>
2023-05-18 11:26:35 +00:00
<a href="/settings">
2023-05-17 13:46:20 +00:00
Settings
</a>
</li>
@endif
2023-05-22 10:00:59 +00:00
{{-- <li>
2023-05-18 11:26:35 +00:00
<a href="/profile">
2023-05-17 13:46:20 +00:00
Profile
</a>
2023-05-22 10:00:59 +00:00
</li> --}}
2023-05-17 13:46:20 +00:00
<li>
2023-05-18 11:26:35 +00:00
<a href="/profile/team">
2023-05-17 13:46:20 +00:00
Team
2023-05-14 12:43:49 +00:00
</a>
2023-05-17 13:46:20 +00:00
</li>
<li>
2023-05-18 11:26:35 +00:00
<a href="/command-center">
2023-05-17 13:46:20 +00:00
Command Center
</a>
</li>
2023-05-22 10:00:59 +00:00
@if (auth()->user()->isPartOfRootTeam())
2023-05-17 13:46:20 +00:00
<li>
<livewire:force-upgrade />
</li>
2023-05-14 12:43:49 +00:00
@endif
2023-05-17 13:46:20 +00:00
<li>
<form action="/logout" method="POST" class="hover:bg-transparent">
@csrf
2023-05-18 13:12:26 +00:00
<button class="text-sm link link-hover hover:text-white">Logout</button>
2023-05-17 13:46:20 +00:00
</form>
</li>
</ul>
2023-05-12 10:22:41 +00:00
</div>
2023-05-17 13:46:20 +00:00
</div>
2023-05-14 12:43:49 +00:00
@endauth