<div class="col-md-3">
    <div class="settings-sidebar">
        <div class="sidebar-header">
            <div class="sidebar-header-icon">
                <i class="fa fa-cog"></i>
            </div>
            <div class="sidebar-header-text">
                <h6><?= !empty(lang('settings')) ? lang('settings') : "Settings"; ?></h6>
                <span><?= !empty(lang('manage_your_store')) ? lang('manage_your_store') : "Manage your store"; ?></span>
            </div>
        </div>

        <nav class="sidebar-nav">
            <ul>
                <li>
                    <a href="<?= base_url('admin/auth/settings'); ?>" class="<?= isset($page_title) && $page_title == "Settings" ? "active" : ""; ?>">
                        <span class="nav-icon"><i class="icofont-at"></i></span>
                        <span class="nav-text"><?= !empty(lang('email_settings')) ? lang('email_settings') : "Email Settings"; ?></span>
                    </a>
                </li>

                <li>
                    <a href="<?= base_url('admin/auth/email_settings'); ?>" class="<?= isset($page_title) && $page_title == "Orders Email Settings" ? "active" : ""; ?>">
                        <span class="nav-icon"><i class="icofont-envelope"></i></span>
                        <span class="nav-text"><?= !empty(lang('orders_email_settings')) ? lang('orders_email_settings') : "Orders Email Settings"; ?></span>
                    </a>
                </li>

                <li>
                    <a href="<?= base_url('admin/auth/order_config'); ?>" class="<?= isset($page_title) && $page_title == "Order Configuration" ? "active" : ""; ?>">
                        <span class="nav-icon"><i class="icofont-badge"></i></span>
                        <span class="nav-text"><?= !empty(lang('preferences')) ? lang('preferences') : "Preferences"; ?></span>
                    </a>
                </li>

                <li>
                    <a href="<?= base_url('admin/auth/order_type_config'); ?>" class="<?= isset($page_title) && $page_title == "Order Types Configuration" ? "active" : ""; ?>">
                        <span class="nav-icon"><i class="icofont-navigation-menu"></i></span>
                        <span class="nav-text"><?= !empty(lang('order_types_config')) ? lang('order_types_config') : "Order Types Configuration"; ?></span>
                    </a>
                </li>

                <li class="hidden">
                    <a href="<?= base_url('admin/auth/checkout_config'); ?>" class="<?= isset($page_title) && $page_title == "Checkout Config" ? "active" : ""; ?>">
                        <span class="nav-icon"><i class="icofont-brand-bada"></i></span>
                        <span class="nav-text"><?= !empty(lang('order_checkoutconfig')) ? lang('order_checkout_config') : "Checkout / Order Config"; ?></span>
                    </a>
                </li>

                <?php if (can('online-payment', ['feature', 'active'], true)) : ?>
                    <?php if (check() == 1 && $this->security->online_payment() == 1) : ?>
                        <li>
                            <a href="<?= base_url(isset($this->link['payment_link']) ? $this->link['payment_link'] : ''); ?>" class="<?= isset($page_title) && $page_title == "Payment Configuration" ? "active" : ""; ?> <?= is_package; ?> paymentMethod">
                                <span class="nav-icon"><i class="fas fa-money-check"></i></span>
                                <span class="nav-text"><?= !empty(lang('payment_configuration')) ? lang('payment_configuration') : "Payment Configuration"; ?></span>
                            </a>
                        </li>
                    <?php endif; ?>
                <?php endif; ?>

                <li>
                    <a href="<?= base_url('admin/auth/twillo_sms_settings') ?>" class="<?= isset($page_title) && $page_title == "Twillo SMS Settings" ? "active" : ""; ?>">
                        <span class="nav-icon"><i class="icofont-bullhorn"></i></span>
                        <span class="nav-text"><?= !empty(lang('twillo_sms_settings')) ? lang('twillo_sms_settings') : "Twillo SMS Settings"; ?></span>
                    </a>
                </li>

                <li>
                    <a href="<?= base_url('admin/auth/seo_settings') ?>" class="<?= isset($page_title) && $page_title == "Seo Settings" ? "active" : ""; ?>">
                        <span class="nav-icon"><i class="icofont-search-2"></i></span>
                        <span class="nav-text"><?= !empty(lang('seo_settings')) ? lang('seo_settings') : "SEO Settings"; ?></span>
                    </a>
                </li>

                <?php $slider_list = $this->admin_m->select_by_shop_id_status(restaurant()->id ?? 0, 'vendor_slider_list'); ?>
                <?php if (!isset($slider_list) || empty($slider_list)): ?>
                    <li>
                        <a href="<?= base_url('admin/auth/icon_settings') ?>" class="<?= isset($page_title) && $page_title == "Icon Settings" ? "active" : ""; ?>">
                            <span class="nav-icon"><i class="icofont-brand-icofont"></i></span>
                            <span class="nav-text"><?= !empty(lang('icon_settings')) ? lang('icon_settings') : "Icon Settings"; ?></span>
                        </a>
                    </li>
                <?php endif; ?>

                <?php if (can('whatsapp', ['feature', 'active'], true)) : ?>
                    <li>
                        <a href="<?= base_url('admin/auth/whatsapp_message') ?>" class="<?= isset($page_title) && $page_title == "Whatsapp Message" ? "active" : ""; ?> hidden">
                            <span class="nav-icon"><i class="fa fa-whatsapp"></i></span>
                            <span class="nav-text"><?= lang('whatsapp_message'); ?></span>
                        </a>
                    </li>
                <?php endif; ?>

                <?php if (can('cash-on-delivery', 'order')): ?>
                    <li>
                        <a href="<?= base_url('admin/restaurant/shipping_config/'); ?>" class="<?= isset($page_title) && $page_title == "Shipping Config" ? "active" : ""; ?>">
                            <span class="nav-icon"><i class="fa fa-truck"></i></span>
                            <span class="nav-text"><?= !empty(lang('shipping_delivery_configuration')) ? lang('shipping_delivery_configuration') : "Shipping / Delivery Configuration"; ?></span>
                        </a>
                    </li>
                <?php endif; ?>

                <?php if (check() == 1 && can('pwa-push', ['feature', 'active'], true)) : ?>
                    <li>
                        <a href="<?= base_url(isset($this->link['pwa_link']) ? $this->link['pwa_link'] : ''); ?>" class="<?= isset($page_title) && $page_title == "PWA Config" ? "active" : ""; ?> d-active">
                            <span class="nav-icon"><i class="icofont-share-alt"></i></span>
                            <span class="nav-text"><?= lang('pwa_config'); ?></span>
                        </a>
                    </li>

                    <li>
                        <a href="<?= base_url(isset($this->link['onesignal_link']) ? $this->link['onesignal_link'] : ''); ?>" class="<?= isset($page_title) && $page_title == "Onesignal" ? "active" : ""; ?>">
                            <span class="nav-icon"><i class="icofont-megaphone"></i></span>
                            <span class="nav-text"><?= lang('onesignal_configuration'); ?></span>
                            <?= is_new('3.1.0'); ?>
                        </a>
                    </li>
                <?php endif; ?>

                <li>
                    <a href="<?= base_url('admin/auth/extras'); ?>" class="<?= isset($page_title) && $page_title == "Extras" ? "active" : ""; ?>">
                        <span class="nav-icon"><i class="icofont-ui-next"></i></span>
                        <span class="nav-text"><?= !empty(lang('extras')) ? lang('extras') : "Extras"; ?></span>
                        <?= is_new('3.1.3'); ?>
                    </a>
                </li>

                <li>
                    <a href="<?= base_url('admin/auth/layouts'); ?>" class="<?= isset($page_title) && $page_title == "Layouts" ? "active" : ""; ?>">
                        <span class="nav-icon"><i class="icofont-monitor"></i></span>
                        <span class="nav-text"><?= lang('layouts'); ?></span>
                        <?= is_new('3.1.0'); ?>
                    </a>
                </li>

                <?php if ($this->settings['is_custom_domain'] == 1) : ?>
                    <li>
                        <a href="<?= base_url('admin/auth/custom_domain'); ?>" class="<?= isset($page_title) && $page_title == "Custom Domain" ? "active" : ""; ?>">
                            <span class="nav-icon"><i class="icofont-globe"></i></span>
                            <span class="nav-text"><?= lang('custom_domain'); ?></span>
                            <?= is_new('3.1.1'); ?>
                        </a>
                    </li>
                <?php endif; ?>

                <li>
                    <a href="<?= base_url('admin/auth/pusher'); ?>" class="<?= isset($page_title) && $page_title == "Pusher Config" ? "active" : ""; ?>">
                        <span class="nav-icon"><i class="fab fa-pushed"></i></span>
                        <span class="nav-text"><?= lang('pusher'); ?></span>
                        <?= is_new('3.1.2'); ?>
                    </a>
                </li>

                <li>
                    <a href="<?= base_url('admin/auth/tips'); ?>" class="<?= isset($page_title) && $page_title == "Tips" ? "active" : ""; ?>">
                        <span class="nav-icon"><i class="icofont-pay"></i></span>
                        <span class="nav-text"><?= lang('tips'); ?> / <?= lang('service_charge'); ?></span>
                        <?= is_new('3.1.7'); ?>
                    </a>
                </li>

                <li>
                    <a href="<?= base_url('admin/auth/slider'); ?>" class="<?= isset($page_title) && $page_title == "Slider" ? "active" : ""; ?>">
                        <span class="nav-icon"><i class="fa fa-sliders"></i></span>
                        <span class="nav-text"><?= lang('slider'); ?></span>
                        <?= is_new('3.1.9'); ?>
                    </a>
                </li>

                <li>
                    <a href="<?= base_url('admin/restaurant/recaptcha_settings'); ?>" class="<?= isset($page_title) && $page_title == "Recaptcha Settings" ? "active" : ""; ?>">
                        <span class="nav-icon"><i class="icofont-key-hole"></i></span>
                        <span class="nav-text"><?= !empty(lang('recaptcha_settings')) ? lang('recaptcha_settings') : "Recaptcha Settings"; ?></span>
                    </a>
                </li>

                <li>
                    <a href="<?= base_url('admin/auth/ai_config'); ?>" class="<?= isset($page_title) && $page_title == "AI Config" ? "active" : ""; ?>">
                        <span class="nav-icon"><i class="fa fa-robot"></i></span>
                        <span class="nav-text"><?= !empty(lang('ai_config')) ? lang('ai_config') : "AI Config"; ?></span>
                        <?= is_new('3.3.6'); ?>
                    </a>
                </li>
            </ul>
        </nav>
    </div>
</div><!-- col-md-4 -->