Browse Source

Correcion

correcion de error de boton agregar
main
Silva 3 weeks ago
parent
commit
5a87830b1a
  1. 4
      resources/views/layouts/dashboard.blade.php

4
resources/views/layouts/dashboard.blade.php

@ -186,10 +186,10 @@
<div class="relative" x-data="{ open: false }">
<button @click="open = !open"
class="flex items-center space-x-3 text-gray-700 hover:text-gray-900 px-4 py-2 rounded-full hover:bg-gray-100 transition-all duration-200">
<img src="https://ui-avatars.com/api/?name={{ Auth::user()->name }}"
<img src="https://ui-avatars.com/api/?name={{ Auth::check() ? Auth::user()->name : 'Usuario' }}"
alt="Profile"
class="w-8 h-8 rounded-full ring-2 ring-blue-500/20">
<span class="font-medium">{{ Auth::user()->name }}</span>
<span class="font-medium">{{ Auth::check() ? Auth::user()->name : 'Usuario' }}</span>
<i class="fas fa-chevron-down text-sm transition-transform duration-200"
:class="{ 'transform rotate-180': open }"></i>
</button>

Loading…
Cancel
Save