<!-- Navbar / Topbar converted from legacy partials/topbar.php -->
<?php
    $userName = Auth::user()->name ?? 'Admin';
    $logo = asset('assets/images/bsd/logo.png');
    
?>

<div class="navbar-header">
    <div class="row align-items-center justify-content-between">
        <div class="col-12 col-md-auto">
            <div class="d-flex flex-wrap align-items-center gap-2">
                <button type="button" class="sidebar-toggle">
                    <iconify-icon icon="heroicons:bars-3-solid" class="icon text-2xl non-active"></iconify-icon>
                    <iconify-icon icon="iconoir:arrow-right" class="icon text-2xl active"></iconify-icon>
                </button>
                <button type="button" class="sidebar-mobile-toggle">
                    <iconify-icon icon="heroicons:bars-3-solid" class="icon"></iconify-icon>
                </button>
            </div>
        </div>

        <div class="col-auto">
            <div class="d-flex flex-wrap align-items-center">
                <!-- countdown and notices omitted for Blade stable conversion; keep placeholder -->
            </div>
        </div>

        <div class="col-auto">
            <div class="d-flex flex-wrap align-items-center gap-3">
                <div class="dropdown">
                    <button class="btn btn-sm btn-outline-primary dropdown-toggle" data-bs-toggle="dropdown">English</button>
                    <ul class="dropdown-menu dropdown-menu-end"><li><a class="dropdown-item" href="<?php echo e(route('language.switch','en')); ?>">English</a></li></ul>
                </div>
                <button type="button" data-theme-toggle class="w-40-px h-40-px bg-neutral-200 rounded-circle d-flex justify-content-center align-items-center"></button>

                <div class="dropdown">
                    <button class="d-flex justify-content-center align-items-center rounded-circle" type="button" data-bs-toggle="dropdown">
                        <img src="<?php echo e($logo); ?>" alt="image" class="w-40-px h-40-px object-fit-cover rounded-circle">
                    </button>
                    <div class="dropdown-menu dropdown-menu-end to-top dropdown-menu-sm">
                        <div class="py-12 px-16 radius-8 bg-primary-50 mb-16 d-flex align-items-center justify-content-between gap-2">
                            <div>
                                <h6 class="text-lg text-primary-light fw-semibold mb-2"><?php echo e($userName); ?></h6>
                                <span class="text-secondary-light fw-medium text-sm"><?php echo e(Auth::user()->email ?? ''); ?></span>
                            </div>
                            <button type="button" class="hover-text-danger"><iconify-icon icon="radix-icons:cross-1" class="icon text-xl"></iconify-icon></button>
                        </div>
                        <ul class="to-top-list">
                            <li><a class="dropdown-item" href="<?php echo e(route('profile.edit')); ?>"><?php echo e(__('ui.profile')); ?></a></li>
                            <li><a class="dropdown-item" href="#" onclick="event.preventDefault(); document.getElementById('logout-form-top').submit();"><?php echo e(__('ui.logout')); ?></a></li>
                        </ul>
                        <form id="logout-form-top" action="<?php echo e(route('logout')); ?>" method="POST" style="display:none;"><?php echo csrf_field(); ?></form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH D:\herd\billing\laravel-app\resources\views/layouts/navbar.blade.php ENDPATH**/ ?>