Download resources/views/default/components/user-dropdown.blade.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 2.36 kB
-
https://huggingface.co/pnacorp/magicai/resolve/main/resources/views/default/components/user-dropdown.blade.php
- Command line
-
hf download hf://pnacorp/magicai/resources/views/default/components/user-dropdown.blade.php
-
curl -L -o user-dropdown.blade.php https://huggingface.co/pnacorp/magicai/resolve/main/resources/views/default/components/user-dropdown.blade.php
2.36 kB
| @php | |
| $user_avatar = Auth::user()->avatar; | |
| if (!Auth::user()->github_token && !Auth::user()->google_token && !Auth::user()->facebook_token) { | |
| $user_avatar = '/' . $user_avatar; | |
| } | |
| @endphp | |
| <x-dropdown.dropdown | |
| class="header-user-dropdown" | |
| anchor="end" | |
| offsetY="20px" | |
| > | |
| <x-slot:trigger | |
| class="size-9 p-0" | |
| > | |
| <span | |
| class="size-full inline-block rounded-full bg-cover" | |
| style="background-image: url({{ custom_theme_url($user_avatar) }})" | |
| ></span> | |
| </x-slot:trigger> | |
| <x-slot:dropdown | |
| class="min-w-52" | |
| > | |
| <div class="px-3 pt-3 text-foreground/70"> | |
| <p>{{ Auth::user()->fullName() }}</p> | |
| <p class="text-3xs">{{ Auth::user()->email }}</p> | |
| </div> | |
| <hr> | |
| <x-remaining-credit class="flex-col-reverse px-3 py-1.5 text-2xs" /> | |
| <hr> | |
| <div class="pb-2 text-2xs"> | |
| <a | |
| class="flex w-full items-center px-3 py-2 hover:bg-foreground/5" | |
| href="{{ route('dashboard.user.2fa.activate') }}" | |
| > | |
| {{ __('2-Factor Auth.') }} | |
| </a> | |
| <a | |
| class="flex w-full items-center px-3 py-2 hover:bg-foreground/5" | |
| href="{{ route('dashboard.user.payment.subscription') }}" | |
| > | |
| {{ __('Plan') }} | |
| </a> | |
| <a | |
| class="flex w-full items-center px-3 py-2 hover:bg-foreground/5" | |
| href="{{ route('dashboard.user.orders.index') }}" | |
| > | |
| {{ __('Orders') }} | |
| </a> | |
| <a | |
| class="flex w-full items-center px-3 py-2 hover:bg-foreground/5" | |
| href="{{ route('dashboard.user.settings.index') }}" | |
| > | |
| {{ __('Settings') }} | |
| </a> | |
| <form | |
| class="flex w-full" | |
| id="logout" | |
| method="POST" | |
| action="{{ route('logout') }}" | |
| > | |
| @csrf | |
| <button | |
| class="flex w-full items-center px-3 py-2 hover:bg-foreground/10" | |
| type="submit" | |
| > | |
| {{ __('Logout') }} | |
| </button> | |
| </form> | |
| </div> | |
| </x-slot:dropdown> | |
| </x-dropdown.dropdown> | |