<div class="client-profile-dropdown" id="profileDropdown" role="menu" hidden>
    <a href="<?php echo e(route('client.profile.edit')); ?>" class="client-profile-dropdown-item" role="menuitem">Edit Profile</a>
    <a href="<?php echo e(route('client.profile.password')); ?>" class="client-profile-dropdown-item" role="menuitem">Change Password</a>
    <form method="POST" action="<?php echo e(route('logout')); ?>" class="client-profile-dropdown-form" role="none">
        <?php echo csrf_field(); ?>
        <button type="submit" class="client-profile-dropdown-item client-profile-dropdown-logout" role="menuitem">
            Logout
        </button>
    </form>
</div>

<?php if (! $__env->hasRenderedOnce('7ab94527-c13c-4997-ae84-cf1ba7b07614')): $__env->markAsRenderedOnce('7ab94527-c13c-4997-ae84-cf1ba7b07614'); ?>
<?php $__env->startPush('scripts'); ?>
<script>
(function () {
    const btn = document.getElementById('profileMenuBtn');
    const menu = document.getElementById('profileDropdown');
    const header = document.querySelector('.client-header');
    if (!btn || !menu) return;

    function closeMenu() {
        menu.hidden = true;
        btn.setAttribute('aria-expanded', 'false');
        header?.classList.remove('client-header--menu-open');
    }

    function openMenu() {
        menu.hidden = false;
        btn.setAttribute('aria-expanded', 'true');
        header?.classList.add('client-header--menu-open');
    }

    function toggleMenu() {
        if (menu.hidden) openMenu();
        else closeMenu();
    }

    btn.addEventListener('click', (e) => {
        e.stopPropagation();
        toggleMenu();
    });

    document.addEventListener('click', (e) => {
        if (!menu.hidden && !btn.contains(e.target) && !menu.contains(e.target)) {
            closeMenu();
        }
    });

    document.addEventListener('keydown', (e) => {
        if (e.key === 'Escape') closeMenu();
    });
})();
</script>
<?php $__env->stopPush(); ?>
<?php endif; ?>
<?php /**PATH D:\SkyApps\Projects\Laravel_projects\web3derp\resources\views/client/partials/profile-dropdown.blade.php ENDPATH**/ ?>