@auth {{-- Comprueba si el usuario autenticado tiene el rol de 'admin' --}} @if(auth()->user()->role === 'admin') {{-- Si es admin, muestra el enlace al dashboard --}}
@else {{-- Si no es admin, muestra el enlace a la página de contactos --}}
@endif @endauth
@if (auth()->check() && (auth()->user()->rol === 'admin' || auth()->user()->rol === 'gerente')) {{ __('Informes') }} @endif {{ __('Caes-Moneleg') }}
  • Cargando...
{{ __('Perfil') }} @auth @if (auth()->user()->rol === 'admin') {{ __('Registrar Usuario') }} @endif @endauth
@csrf {{ __('Cerrar Sesión') }}
@if (auth()->check() && (auth()->user()->rol === 'admin' || auth()->user()->rol === 'gerente')) {{ __('Informes') }} @endif {{ __('Caes-Moneleg') }}
{{ Auth::user()->name }}
{{--
{{ Auth::user()->email }}
--}}
{{ __('Perfil') }} @if(auth()->user()->username === 'adm') {{ __('Registrar Usuario') }} @endif
@csrf {{ __('Cerrar Sesión') }}