This commit is contained in:
Juan Felipe Duarte
2025-10-17 13:50:25 -05:00
parent 8da23ad240
commit c6ba9bb6d1
2 changed files with 24 additions and 13 deletions
+14 -3
View File
@@ -21,9 +21,20 @@
<div class="flex-1 overflow-y-auto select-none"> <div class="flex-1 overflow-y-auto select-none">
<div class="text-center py-4 ms:py-6"> <div class="text-center py-4 ms:py-6">
<div class="font-medium text-base text-white">{{ Auth::user()->name ?? ''}}</div> <div class="flex items-center justify-center w-full">
<div class="font-medium text-sm text-gray-500">{{ Auth::user()->email ?? ''}}</div> <a href="{{ route('perfil') }}" class="rounded-full border-2 border-neutral-200 shadow-sm w-10 h-10 overflow-hidden mb-2">
<div class="font-semibold text-sm text-gray-500 capitalize">{{ Auth::user()->rol->nombre ?? ''}}</div> @if (Auth::user()->img_perfil)
<img src="{{ Auth::user()->img_perfil }}" alt="" class="w-10 h-10 object-contain">
@else
<img src="https://ui-avatars.com/api/?name={{ Auth::user()->name ?? 'no name' }}" alt="" class="w-10 h-10 object-cover">
@endif
</a>
</div>
<div class="font-medium text-base text-white">{{ Auth::user()->name ?? ''}}</div>
<div class="font-medium text-sm text-gray-500">{{ Auth::user()->email ?? ''}}</div>
<div class="font-semibold text-sm text-gray-500 capitalize">{{ Auth::user()->rol->nombre ?? ''}}</div>
<!-- Items del menú --> <!-- Items del menú -->
<nav class="px-4 mt-2 space-y-2 pb-4"> <nav class="px-4 mt-2 space-y-2 pb-4">
<a href="{{ route('dashboard') }}" class="flex items-center justify-start gap-2 py-2 px-3 rounded text-white text-left {{ request()->routeIs('dashboard') ? 'bg-white/20' : 'hover:bg-white/10' }}"> <a href="{{ route('dashboard') }}" class="flex items-center justify-start gap-2 py-2 px-3 rounded text-white text-left {{ request()->routeIs('dashboard') ? 'bg-white/20' : 'hover:bg-white/10' }}">
@@ -13,13 +13,13 @@
<div class="mb-4"> <div class="mb-4">
<div class="flex justify-center gap-6 mb-2"> <div class="flex justify-center gap-6 mb-2">
<div class="rounded-full border-2 border-neutral-200 shadow-sm w-24 h-24 overflow-hidden"> <div class="rounded-full border-2 border-neutral-200 shadow-sm w-24 h-24 overflow-hidden">
@if ($url_imagen) @if ($url_imagen)
<img src="{{ $url_imagen->temporaryUrl() }}" alt="" class="w-24 h-24 object-contain"> <img src="{{ $url_imagen->temporaryUrl() }}" alt="" class="w-24 h-24 object-contain">
@elseif($url_imagen_d) @elseif($url_imagen_d)
<img src="{{ $url_imagen_d }}" alt="" class="w-24 h-24 object-contain"> <img src="{{ $url_imagen_d }}" alt="" class="w-24 h-24 object-contain">
@else @else
<img src="/" class="w-24 h-24 object-contain"> <img src="https://ui-avatars.com/api/?name={{ Auth::user()->name ?? 'no name' }}" class="w-24 h-24 object-cover">
@endif @endif
</div> </div>
</div> </div>