Skip to content

Commit cb13d6f

Browse files
committed
Move log in/log out
1 parent 145bd04 commit cb13d6f

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

resources/views/components/footer.blade.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,14 @@ class="inline-block px-px py-1.5 transition duration-300 will-change-transform h
223223
Partners
224224
</a>
225225
</li>
226+
<li>
227+
<a
228+
href="{{ route('customer.login') }}"
229+
class="inline-block px-px py-1.5 transition duration-300 will-change-transform hover:translate-x-1 hover:text-gray-700 dark:hover:text-gray-300"
230+
>
231+
License Management
232+
</a>
233+
</li>
226234
<li>
227235
<a
228236
href="{{ route('brand') }}"

resources/views/components/navbar/mobile-menu.blade.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,30 @@ class="flex items-center justify-between py-3 opacity-50 transition duration-200
189189
<div>Partners</div>
190190
</a>
191191
</div>
192+
193+
<div
194+
class="h-0.5 w-full rounded-full bg-current opacity-5"
195+
role="presentation"
196+
></div>
197+
198+
{{-- Login/Logout --}}
199+
<div class="w-full">
200+
@auth
201+
<form method="POST" action="{{ route('customer.logout') }}" class="w-full">
202+
@csrf
203+
<button type="submit" class="flex w-full items-center justify-between py-3 opacity-50 transition duration-200 hover:translate-x-1 hover:opacity-100">
204+
<div>Log out</div>
205+
</button>
206+
</form>
207+
@else
208+
<a
209+
href="{{ route('customer.login') }}"
210+
class="flex items-center justify-between py-3 opacity-50 transition duration-200 hover:translate-x-1 hover:opacity-100"
211+
>
212+
<div>Log in</div>
213+
</a>
214+
@endauth
215+
</div>
192216
</nav>
193217

194218
<div

resources/views/components/navigation-bar.blade.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,29 @@ class="opacity-60 transition duration-200 hover:opacity-100"
144144
Partners
145145
</a>
146146

147+
{{-- Decorative circle --}}
148+
<div
149+
class="size-[3px] rotate-45 rounded-xs bg-gray-400 transition duration-200 dark:opacity-60"
150+
aria-hidden="true"
151+
></div>
152+
153+
{{-- Login/Logout --}}
154+
@auth
155+
<form method="POST" action="{{ route('customer.logout') }}" class="inline">
156+
@csrf
157+
<button type="submit" class="opacity-60 transition duration-200 hover:opacity-100">
158+
Log out
159+
</button>
160+
</form>
161+
@else
162+
<a
163+
href="{{ route('customer.login') }}"
164+
class="opacity-60 transition duration-200 hover:opacity-100"
165+
>
166+
Log in
167+
</a>
168+
@endauth
169+
147170
{{-- Theme toggle --}}
148171
<x-navbar.theme-toggle />
149172

0 commit comments

Comments
 (0)