college-courses/resources/views/components/header/profile.blade.php

37 lines
2.1 KiB
PHP
Raw Normal View History

2024-10-15 10:15:40 +03:00
<div class="grid place-items-center lg:mr-8 max-lg:p-2">
<div class="flex items-center h-full p-2">
@auth
<div class="flex items-center gap-1">
<svg class="w-[24px] h-[24px] inline-block" fill="none" stroke="currentColor" stroke-width="1.5"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round"
d="M17.982 18.725A7.488 7.488 0 0012 15.75a7.488 7.488 0 00-5.982 2.975m11.963 0a9 9 0 10-11.963 0m11.963 0A8.966 8.966 0 0112 21a8.966 8.966 0 01-5.982-2.275M15 9.75a3 3 0 11-6 0 3 3 0 016 0z">
</path>
</svg>
{{ Auth()->user()->name }}
</div>
<div class="mx-2">|</div>
<a class="flex items-center gap-1 hover:text-red-600" href="{{ url('logout') }}">
<svg class="w-[24px] h-[24px] inline-block" fill="none" stroke="currentColor" stroke-width="1.5"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round"
d="M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9">
</path>
</svg>
Выйти из аккаунта
</a>
@endauth
@guest
<a class="flex items-center gap-1 hover:text-primary-600" href="{{ url('login') }}">
<svg class="w-[24px] h-[24px] inline-block" fill="none" stroke="currentColor" stroke-width="1.5"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round"
d="M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9">
</path>
</svg>
Войти в аккаунт
</a>
@endguest
</div>
</div>