<?php $lang = session('locale', 'en'); ?>
<aside id="sidebar" class="fixed inset-y-0 left-0 z-40 w-[260px] bg-white dark:bg-[#0f172a] border-r border-slate-200 dark:border-[#1e293b] transform -translate-x-full lg:translate-x-0 transition-transform duration-300 flex flex-col shadow-2xl">
    
    <div class="flex items-center justify-between h-[72px] px-6 border-b border-slate-200 dark:border-[#1e293b] bg-slate-50/50 dark:bg-[#020617]/50">
        <div class="flex items-center gap-3 text-emerald-600 dark:text-emerald-400 font-extrabold text-xl tracking-tight">
            <?php if(\App\Models\Setting::val('site_logo')): ?>
                <img src="<?php echo e(asset(\App\Models\Setting::val('site_logo'))); ?>" alt="Logo" class="h-9 object-contain">
            <?php else: ?>
                <div class="w-8 h-8 rounded-lg bg-emerald-500 text-white flex items-center justify-center text-sm shadow-md"><i class="fa-solid fa-cloud-bolt"></i></div>
                <span><?php echo e(\App\Models\Setting::val('site_name', 'Portal')); ?></span>
            <?php endif; ?>
        </div>
        <button class="lg:hidden text-slate-400 hover:text-slate-700 dark:hover:text-white" onclick="toggleSidebar()"><i class="fa-solid fa-xmark text-xl"></i></button>
    </div>

    <nav class="flex-1 overflow-y-auto py-6 px-4 space-y-1.5 custom-scrollbar">
        <p class="px-4 text-[10px] font-bold text-slate-400 uppercase tracking-wider mb-2 mt-2"><?php echo e($lang == 'bn' ? 'মেইন মেনু' : 'Main Menu'); ?></p>

        <a href="<?php echo e(route('dashboard')); ?>" class="flex items-center gap-3 px-4 py-3 rounded-xl <?php echo e(request()->routeIs('dashboard') ? 'bg-emerald-50 dark:bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 font-bold' : 'text-slate-500 dark:text-slate-400 hover:bg-slate-50 dark:hover:bg-[#1e293b]/50 hover:text-slate-800 dark:hover:text-white font-medium'); ?> transition-all group">
            <i class="fa-solid fa-border-all w-5 text-center text-lg transition-transform duration-300 group-hover:scale-110"></i> <?php echo e($lang == 'bn' ? 'ড্যাশবোর্ড' : 'Overview'); ?>

        </a>

        <a href="<?php echo e(route('user.domain.buy')); ?>" class="flex items-center gap-3 px-4 py-3 rounded-xl <?php echo e(request()->routeIs('user.domain.buy') ? 'bg-blue-50 dark:bg-blue-500/10 text-blue-600 dark:text-blue-400 font-bold' : 'text-slate-500 dark:text-slate-400 hover:bg-slate-50 dark:hover:bg-[#1e293b]/50 hover:text-slate-800 dark:hover:text-white font-medium'); ?> transition-all group">
            <i class="fa-solid fa-cart-plus w-5 text-center text-lg transition-transform duration-300 group-hover:scale-110"></i> <?php echo e($lang == 'bn' ? 'নতুন সাইট কিনুন' : 'Order New Service'); ?>

        </a>

        <a href="<?php echo e(route('user.domain.index')); ?>" class="flex items-center gap-3 px-4 py-3 rounded-xl <?php echo e(request()->routeIs('user.domain.*') && !request()->routeIs('user.domain.buy') ? 'bg-indigo-50 dark:bg-indigo-500/10 text-indigo-600 dark:text-indigo-400 font-bold' : 'text-slate-500 dark:text-slate-400 hover:bg-slate-50 dark:hover:bg-[#1e293b]/50 hover:text-slate-800 dark:hover:text-white font-medium'); ?> transition-all group">
            <i class="fa-solid fa-globe w-5 text-center text-lg transition-transform duration-300 group-hover:scale-110"></i> <?php echo e($lang == 'bn' ? 'আমার ডোমেইনসমূহ' : 'My Domains'); ?>

        </a>

        <p class="px-4 text-[10px] font-bold text-slate-400 uppercase tracking-wider mb-2 mt-6"><?php echo e($lang == 'bn' ? 'একাউন্ট' : 'Billing & Account'); ?></p>

        <a href="<?php echo e(route('user.fund.index')); ?>" class="flex items-center gap-3 px-4 py-3 rounded-xl <?php echo e(request()->routeIs('user.fund.*') ? 'bg-orange-50 dark:bg-orange-500/10 text-orange-600 dark:text-orange-400 font-bold' : 'text-slate-500 dark:text-slate-400 hover:bg-slate-50 dark:hover:bg-[#1e293b]/50 hover:text-slate-800 dark:hover:text-white font-medium'); ?> transition-all group">
            <i class="fa-solid fa-sack-dollar w-5 text-center text-lg transition-transform duration-300 group-hover:scale-110"></i> <?php echo e($lang == 'bn' ? 'ফান্ড যুক্ত করুন' : 'Add Funds'); ?>

        </a>

        <a href="<?php echo e(route('user.profile')); ?>" class="flex items-center gap-3 px-4 py-3 rounded-xl <?php echo e(request()->routeIs('user.profile') ? 'bg-purple-50 dark:bg-purple-500/10 text-purple-600 dark:text-purple-400 font-bold' : 'text-slate-500 dark:text-slate-400 hover:bg-slate-50 dark:hover:bg-[#1e293b]/50 hover:text-slate-800 dark:hover:text-white font-medium'); ?> transition-all group">
            <i class="fa-solid fa-user-gear w-5 text-center text-lg transition-transform duration-300 group-hover:scale-110"></i> <?php echo e($lang == 'bn' ? 'প্রোফাইল সেটিং' : 'Profile Settings'); ?>

        </a>

        <a href="<?php echo e(route('user.2fa.setup')); ?>" class="flex items-center gap-3 px-4 py-3 rounded-xl <?php echo e(request()->routeIs('user.2fa.setup') ? 'bg-rose-50 dark:bg-rose-500/10 text-rose-600 dark:text-rose-400 font-bold' : 'text-slate-500 dark:text-slate-400 hover:bg-slate-50 dark:hover:bg-[#1e293b]/50 hover:text-slate-800 dark:hover:text-white font-medium'); ?> transition-all group">
            <i class="fa-solid fa-fingerprint w-5 text-center text-lg transition-transform duration-300 group-hover:scale-110"></i> <?php echo e($lang == 'bn' ? 'টু-ফ্যাক্টর সিকিউরিটি' : '2FA Security'); ?>

        </a>
    </nav>
    
</aside>
<?php /**PATH /home/anstserv/shop.bd1b.com/resources/views/user/layouts/menu.blade.php ENDPATH**/ ?>