<!--APP-SIDEBAR-->
<div class="sticky">
    <div class="app-sidebar__overlay" data-bs-toggle="sidebar"></div>
    <div class="app-sidebar">
        <div class="side-header">
            <a class="header-brand1" href="dashboard.php">
                <img src="<?php echo asset_url('assets/images/marketing-engine-logo.png'); ?>"
                    class="header-brand-img desktop-logo" alt="logo" style="height: auto; width: 150px;">
                <img src="<?php echo asset_url('assets/images/marketing-engine-logo.png'); ?>"
                    class="header-brand-img toggle-logo" alt="logo">
                <img src="<?php echo asset_url('assets/images/marketing-engine-logo.png'); ?>"
                    class="header-brand-img light-logo" alt="logo">
                <img src="<?php echo asset_url('assets/images/marketing-engine-logo.png'); ?>"
                    class="header-brand-img light-logo1" alt="logo" style="height: auto; width: 150px;">
            </a>
            <!-- LOGO -->
        </div>
        <div class="main-sidemenu">
            <div class="slide-left disabled" id="slide-left"><svg xmlns="http://www.w3.org/2000/svg" fill="#7b8191"
                    width="24" height="24" viewBox="0 0 24 24">
                    <path d="M13.293 6.293 7.586 12l5.707 5.707 1.414-1.414L10.414 12l4.293-4.293z" />
                </svg></div>
            <ul class="side-menu d-flex flex-column h-100">
                <li class="sub-category">
                    <h3>Main</h3>
                </li>
                <li class="slide">
                    <a class="side-menu__item <?php echo basename($_SERVER['PHP_SELF']) == 'dashboard.php' ? 'active' : ''; ?>"
                        data-bs-toggle="slide" href="dashboard.php">
                        <i class="side-menu__icon fe fe-home"></i>
                        <span class="side-menu__label">Dashboard</span>
                    </a>
                </li>

                <li class="sub-category">
                    <h3>Management</h3>
                </li>
                <li class="slide">
                    <a class="side-menu__item <?php echo basename($_SERVER['PHP_SELF']) == 'users.php' ? 'active' : ''; ?>"
                        data-bs-toggle="slide" href="users.php">
                        <i class="side-menu__icon fe fe-users"></i>
                        <span class="side-menu__label">Users</span>
                    </a>
                </li>
                <li class="slide">
                    <a class="side-menu__item <?php echo basename($_SERVER['PHP_SELF']) == 'contacts.php' ? 'active' : ''; ?>"
                        data-bs-toggle="slide" href="contacts.php">
                        <i class="side-menu__icon fe fe-user"></i>
                        <span class="side-menu__label">Contacts</span>
                    </a>
                </li>
                <li class="slide">
                    <a class="side-menu__item <?php echo basename($_SERVER['PHP_SELF']) == 'groups.php' ? 'active' : ''; ?>"
                        data-bs-toggle="slide" href="groups.php">
                        <i class="side-menu__icon fe fe-users"></i>
                        <span class="side-menu__label">Contact Groups</span>
                    </a>
                </li>
                <li class="slide">
                    <a class="side-menu__item <?php echo basename($_SERVER['PHP_SELF']) == 'send_sms.php' ? 'active' : ''; ?>"
                        data-bs-toggle="slide" href="send_sms.php">
                        <i class="side-menu__icon fe fe-mail"></i>
                        <span class="side-menu__label">Send SMS</span>
                    </a>
                </li>
                <li class="slide">
                    <a class="side-menu__item <?php echo basename($_SERVER['PHP_SELF']) == 'templates.php' ? 'active' : ''; ?>"
                        data-bs-toggle="slide" href="templates.php">
                        <i class="side-menu__icon fe fe-layers"></i>
                        <span class="side-menu__label">Templates</span>
                    </a>
                </li>
                <li class="slide">
                    <a class="side-menu__item <?php echo basename($_SERVER['PHP_SELF']) == 'api_settings.php' ? 'active' : ''; ?>"
                        data-bs-toggle="slide" href="api_settings.php">
                        <i class="side-menu__icon fe fe-settings"></i>
                        <span class="side-menu__label">API Settings</span>
                    </a>
                </li>
                <li class="slide">
                    <a class="side-menu__item <?php echo basename($_SERVER['PHP_SELF']) == 'endpoints.php' ? 'active' : ''; ?>"
                        data-bs-toggle="slide" href="endpoints.php">
                        <i class="side-menu__icon fe fe-link"></i>
                        <span class="side-menu__label">Endpoint</span>
                    </a>
                </li>

                <li class="sub-category">
                    <h3>AI & Automation</h3>
                </li>
                <li class="slide">
                    <a class="side-menu__item <?php echo basename($_SERVER['PHP_SELF']) == 'ai_settings.php' ? 'active' : ''; ?>"
                        data-bs-toggle="slide" href="ai_settings.php">
                        <i class="side-menu__icon fe fe-cpu"></i>
                        <span class="side-menu__label">AI Settings</span>
                    </a>
                </li>

                <li class="sub-category">
                    <h3>Reports</h3>
                </li>
                <li class="slide">
                    <a class="side-menu__item <?php echo basename($_SERVER['PHP_SELF']) == 'monitor.php' ? 'active' : ''; ?>"
                        data-bs-toggle="slide" href="monitor.php">
                        <i class="side-menu__icon fe fe-activity"></i>
                        <span class="side-menu__label">SMS Monitor</span>
                    </a>
                </li>
                <li class="slide mt-auto">
                    <a class="side-menu__item" data-bs-toggle="slide" href="../logout.php">
                        <i class="side-menu__icon fe fe-power"></i>
                        <span class="side-menu__label">Logout</span>
                    </a>
                </li>
            </ul>
            <div class="slide-right" id="slide-right"><svg xmlns="http://www.w3.org/2000/svg" fill="#7b8191" width="24"
                    height="24" viewBox="0 0 24 24">
                    <path d="M10.707 17.707 16.414 12l-5.707-5.707-1.414 1.414L13.586 12l-4.293 4.293z" />
                </svg></div>
        </div>
    </div>
    <!--/APP-SIDEBAR-->
</div>