retrofairie/resources/views/layouts/navigation.blade.php
2025-02-21 22:04:57 -08:00

33 lines
688 B
PHP

<nav>
<!-- Primary Navigation Menu -->
<div>
<!-- Logo -->
<a href="/" class="no-underline">
<x-home-btn />
</a>
<div class="py-2">
@auth
<a class="button" href="{{ route('admin') }}">Admin</a>
<!-- Profile -->
<a class="button" href="{{ route('profile.edit') }}">
{{ Auth::user()->name }}
</a>
<!-- Log Out -->
<form
class="inline-block"
method="POST"
action="{{ route('logout') }}"
>
@csrf
<button>Log Out</button>
</form>
@else
<a href="{{ route('login') }}">Login</a>
@endauth
</div>
</div>
</nav>