<!-- resources/views/components/user-profile.blade.php -->
<div class="user-profile">
    <img src="https://ui-avatars.com/api/?name={{ urlencode($user->name ?? 'Admin User') }}&background=4361ee&color=fff&size=200" 
         class="user-avatar" alt="{{ $user->name ?? 'Admin User' }}">
    <div class="user-info">
        <div class="user-name">{{ $user->name ?? 'Admin User' }}</div>
        <div class="user-role">{{ $user->email ?? 'Administrator' }}</div>
    </div>
    <a class="logout-btn" title="Logout"
       onclick="event.preventDefault(); confirmLogout();">
        <i class="bi bi-box-arrow-right"></i>
    </a>
</div>