{if $access['mns.create'] || $user.name == 'Demo profile'}
    <li class="nav-item dropdown d-md-inline-flex pe-3 megamenu">
        <a class="dropdown-toggle gray-6" href="#" data-bs-toggle="dropdown" aria-expanded="false">
            <img src="{$stheme}/svg/cog.svg" class="svg-stroke fa-spin" alt="">
        </a>
        <div class="dropdown-menu px-2 py-2 shadow rounded-2">
            <div class="row">
                <div class="col-12">
                    <h5 class="border-bottom border-2 px-2 py-2">{$lang.megamenu.settingssection}:</h5>
                </div>
                <div class="col-12 col-md-6 mb-3 mb-lg-0">
                    <div class="list-group list-group-flush">
                        <a href="{$currentDir}?action=settings" id="commonSettings" class="list-group-item">{$lang.megamenu.commonsettings}</a>
                        {if $access['mns.create']}<a href="{$currentDir}?action=license-management" id="licenseManagement" class="list-group-item">{$lang.megamenu.licensemanagement}</a>{/if}
                        {if $access['payment_settings.manage']}<a href="{$currentDir}?action=payment-systems" id="paymentSystems" class="list-group-item">{$lang.megamenu.paymentsystems}</a>{/if}
                        <a href="{$currentDir}?action=payment-bonuses-control" id="paymentBonusesControl" class="list-group-item">Платежные бонусы</a>

                    </div>
                </div>
                <div class="col-12 col-md-6 mb-3 mb-lg-0">
                    <div class="list-group list-group-flush">
                        <a href="{$currentDir}?action=referral-settings" id="referralSettings" class="list-group-item">{$lang.megamenu.referralsettings}</a>

                        <a href="{$currentDir}?action=alert-settings" id="alertSettings" class="list-group-item">{$lang.megamenu.alertsettings}</a>
                        <a href="{$currentDir}?action=language-settings" id="languageSettings" class="list-group-item">{$lang.megamenu.languagesettings}</a>
                        {if $adsUsed || $productsUsed}<a href="{$currentDir}?action=promocodes" id="allPromocodesMenu" class="list-group-item">{$lang.megamenu.allpromocodes}</a>{/if}
                    </div>
                </div>
            </div>
        </div>
    </li>
{/if}