


<nav class="navbar navbar-expand-lg navbar-dark fixed-top shadow-lg"
     style="background: <?php echo e($settings->navbar_color ?? '#1a1a2e'); ?> !important;">
    <div class="container">
         
        <a class="navbar-brand fw-bold fs-3 text-uppercase" href="/home">
            <?php echo e($settings->website_name ?? 'LAPIZMC'); ?>

        </a>

         
        <button class="navbar-toggler border-0" type="button" data-bs-toggle="collapse" data-bs-target="#mainNavbar">
            <span class="navbar-toggler-icon"></span>
        </button>

         
        <div class="collapse navbar-collapse" id="mainNavbar">
             
            <ul class="navbar-nav me-auto mb-2 mb-lg-0 text-uppercase">
                <li class="nav-item">
                    <a class="nav-link <?php echo e(request()->is('home') ? 'active' : ''); ?>"
                       href="/home" style="color: <?php echo e($settings->nav_text_color ?? '#ffffff'); ?> !important;">
                        Home
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link <?php echo e(request()->is('store*') ? 'active' : ''); ?>"
                       href="/store" style="color: <?php echo e($settings->nav_text_color ?? '#ffffff'); ?> !important;">
                        Store
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link <?php echo e(request()->is('forum*') ? 'active' : ''); ?>"
                       href="/forum" style="color: <?php echo e($settings->nav_text_color ?? '#ffffff'); ?> !important;">
                        Forum
                    </a>
                </li>
            </ul>

             
            <ul class="navbar-nav ms-auto">
			<form action="<?php echo e(route('currency.switch')); ?>" method="POST">
    <?php echo csrf_field(); ?>
    <select name="currency" onchange="this.form.submit()" class="form-select form-select-sm">
        <option value="INR" <?php echo e(session('currency') == 'INR' ? 'selected' : ''); ?>>₹ INR</option>
        <option value="USD" <?php echo e(session('currency') == 'USD' ? 'selected' : ''); ?>>$ USD</option>
        <option value="EUR" <?php echo e(session('currency') == 'EUR' ? 'selected' : ''); ?>>€ EUR</option>
    </select>
</form>
                <?php if(auth()->guard()->guest()): ?>
                    <li class="nav-item">
                        <a class="nav-link" href="<?php echo e(route('login')); ?>"
                           style="color: <?php echo e($settings->nav_text_color ?? '#ffffff'); ?> !important;">
                            Login/Register
                        </a>
                    </li>
                   
                <?php else: ?>
                     
                    <?php if(Auth::user()->role->role_id == 1): ?>
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown"
                               style="color: <?php echo e($settings->nav_text_color ?? '#ffffff'); ?> !important;">
                                Admin Panel
                            </a>
                            <ul class="dropdown-menu dropdown-menu-end shadow border-0">
                                <li><h6 class="dropdown-header">Store & Package</h6></li>
                                <li><a class="dropdown-item" href="<?php echo e(route('package.index')); ?>">Store</a></li>
                                <li><a class="dropdown-item" href="<?php echo e(route('category.index')); ?>">Package Category</a></li>
                              
                                <li><hr class="dropdown-divider"></li>
                                <li><h6 class="dropdown-header">Admin Control</h6></li>
                                <li><a class="dropdown-item" href="<?php echo e(route('dashboard.index')); ?>">Overview</a></li>
                                <li><a class="dropdown-item" href="<?php echo e(route('usereditor.index')); ?>">User Manager</a></li>
                                <li><a class="dropdown-item" href="<?php echo e(route('alert.index')); ?>">Announcements</a></li>
                                <li><a class="dropdown-item" href="<?php echo e(route('serverconsole')); ?>">Server Console</a></li>
                                <li><a class="dropdown-item" href="<?php echo e(route('trash.index')); ?>">Trash</a></li>
                                <li><hr class="dropdown-divider"></li>
                                <li><h6 class="dropdown-header">System</h6></li>
                                <li><a class="dropdown-item" href="<?php echo e(route('settings.index')); ?>">General Settings</a></li>
                                <li><a class="dropdown-item" href="<?php echo e(route('paymentmethod.index')); ?>">Payment Setup</a></li>
                                
                            </ul>
                        </li>
                    <?php endif; ?>

                     
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown"
                           style="color: <?php echo e($settings->nav_text_color ?? '#ffffff'); ?> !important;">
                            <?php echo e(Auth::user()->name); ?>

                        </a>
						
                        <ul class="dropdown-menu dropdown-menu-end shadow border-0">
                            <li><h6 class="dropdown-header">General</h6></li>
                            <li><a class="dropdown-item" href="<?php echo e(route('claim.index')); ?>">Your Packages</a></li>
                            <li><a class="dropdown-item" href="<?php echo e(route('history.index')); ?>">Activity History</a></li>
                            <li><hr class="dropdown-divider"></li>
                            <li><h6 class="dropdown-header">Account</h6></li>
                            <li><a class="dropdown-item" href="<?php echo e(route('profile.index')); ?>">Profile Settings</a></li>
                            <li>
                                <form method="POST" action="<?php echo e(route('logout')); ?>" class="d-inline">
                                    <?php echo csrf_field(); ?>
                                    <button type="submit" class="dropdown-item text-danger">
                                        Logout
                                    </button>
                                </form>
                            </li>
                        </ul>
                    </li>
                <?php endif; ?>
            </ul>
        </div>
    </div>
</nav>

 
<style>
    body { 
        padding-top: 86px; 
    }
    @media (max-width: 991px) {
        body { padding-top: 76px; }
    }

    /*  Primary Color */
    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        color: <?php echo e($settings->primary_color ?? '#4e73df'); ?> !important;
        font-weight: 700;
    }

    .dropdown-item:hover {
        background: <?php echo e($settings->primary_color ?? '#4e73df'); ?>22;
        color: <?php echo e($settings->primary_color ?? '#4e73df'); ?>;
    }

    /* Custom CSS from Admin Panel */
    <?php echo $settings->custom_css ?? ''; ?>

</style><?php /**PATH /home2/reckons1/public_html/resources/views/elements/navbar.blade.php ENDPATH**/ ?>