<?php $user = auth()->user(); ?>
<div class="dropdown topbar-user-dropdown">
    <button class="topbar-user-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
        <img src="<?php echo e($user->avatar_url); ?>" class="topbar-avatar" alt="<?php echo e($user->name); ?>">
        <span class="topbar-user-name d-none d-md-inline"><?php echo e($user->name); ?></span>
        <i class="bi bi-chevron-down topbar-user-caret"></i>
    </button>
    <div class="dropdown-menu dropdown-menu-end topbar-user-menu shadow">
        <div class="topbar-user-summary">
            <img src="<?php echo e($user->avatar_url); ?>" class="topbar-user-summary-avatar" alt="">
            <div class="topbar-user-summary-text">
                <div class="topbar-user-summary-name"><?php echo e($user->name); ?></div>
                <div class="topbar-user-summary-role"><?php echo e($user->display_designation); ?></div>
                <?php if($user->email): ?>
                <div class="topbar-user-summary-email"><?php echo e($user->email); ?></div>
                <?php endif; ?>
            </div>
        </div>
        <div class="dropdown-divider my-0"></div>
        <button type="button" class="dropdown-item" data-bs-toggle="modal" data-bs-target="#userProfileModal">
            <i class="bi bi-person-gear me-2"></i>My Profile
        </button>
        <?php if($user->hasPermission('users', 'view')): ?>
        <a class="dropdown-item" href="<?php echo e(route('admin.users.index')); ?>">
            <i class="bi bi-people me-2"></i>Team Members
        </a>
        <?php endif; ?>
        <?php if($user->company->company_group_id): ?>
        <a class="dropdown-item" href="<?php echo e(route('select-company')); ?>">
            <i class="bi bi-building me-2"></i>Switch company
        </a>
        <?php endif; ?>
        <a class="dropdown-item" href="<?php echo e(route('password.change')); ?>">
            <i class="bi bi-key me-2"></i>Change Password
        </a>
        <div class="dropdown-divider my-0"></div>
        <form action="<?php echo e(route('logout')); ?>" method="POST">
            <?php echo csrf_field(); ?>
            <button type="submit" class="dropdown-item text-danger">
                <i class="bi bi-box-arrow-right me-2"></i>Sign out
            </button>
        </form>
    </div>
</div>
<?php /**PATH /home/duiclick/public_html/test.duiclick.com/resources/views/partials/topbar-user-menu.blade.php ENDPATH**/ ?>