
<style>
    .kt-nav__link:hover {
        background-color: #1b1b28 !important;
    }
    .kt-nav .kt-nav__item > .kt-menu__link .kt-nav__link-arrow:before {
        content: '';
    }
</style>
<?php
if ($this->session->userdata('language') == "english") {
    $language_set = "arabic";
} else {
    $language_set = "english";
}
?>
</head>
<body
    class="kt-quick-panel--right kt-demo-panel--right kt-offcanvas-panel--right kt-header--fixed kt-header-mobile--fixed kt-subheader--enabled kt-subheader--fixed kt-subheader--solid kt-aside--enabled kt-aside--fixed kt-page--loading <?= $language_set == 'english' ? 'rtl' : '' ?>">

    <!-- begin:: Page -->

    <!-- begin:: Header Mobile -->
    <div id="kt_header_mobile"
         class="kt-header-mobile  kt-header-mobile--fixed">
        <div class="kt-header-mobile__logo">
                <a href="index.html"> <!-- <img alt="Logo" src="<?php echo base_url() ?>public/media/logos/logo-light.png" /> -->
            </a>
        </div>
        <div class="kt-header-mobile__toolbar">
            <button
                class="kt-header-mobile__toggler kt-header-mobile__toggler--left"
                id="kt_aside_mobile_toggler">
                <span></span>
            </button>
            <button class="kt-header-mobile__toggler"
                    id="kt_header_mobile_toggler">
                <span></span>
            </button>
            <button class="kt-header-mobile__topbar-toggler"
                    id="kt_header_mobile_topbar_toggler">
                <i class="flaticon-more"></i>
            </button>
        </div>
    </div>

    <!-- end:: Header Mobile -->
    <div class="kt-grid kt-grid--hor kt-grid--root">
        <div
            class="kt-grid__item kt-grid__item--fluid kt-grid kt-grid--ver kt-page">

            <!-- begin:: Aside -->

            <!-- Uncomment this to display the close button of the panel
<button class="kt-aside-close " id="kt_aside_close_btn"><i class="la la-close"></i></button>
            -->
            <div
                class="kt-aside  kt-aside--fixed  kt-grid__item kt-grid kt-grid--desktop kt-grid--hor-desktop"
                id="kt_aside">

                <!-- begin:: Aside -->
                <div class="kt-aside__brand kt-grid__item " id="kt_aside_brand">
                    <div class="kt-aside__brand-logo">
                            <a href="#"> <!-- <img alt="Logo" src="<?php echo base_url() ?>public/media/logos/logo-light.png" /> -->
                            <h2 class="kt-main-logo"><?php echo $this->config->item('company_title') ?></h2>
                        </a>
                    </div>
                    <div class="kt-aside__brand-tools">
                        <button class="kt-aside__brand-aside-toggler"
                                id="kt_aside_toggler">
                            <span><svg xmlns="http://www.w3.org/2000/svg"
                                       xmlns:xlink="http://www.w3.org/1999/xlink" width="24px"
                                       height="24px" viewBox="0 0 24 24" version="1.1"
                                       class="kt-svg-icon">
                                    <g stroke="none" stroke-width="1"
                                       fill="none" fill-rule="evenodd">
                                        <polygon
                                            points="0 0 24 0 24 24 0 24" />
                                        <path
                                            d="M5.29288961,6.70710318 C4.90236532,6.31657888 4.90236532,5.68341391 5.29288961,5.29288961 C5.68341391,4.90236532 6.31657888,4.90236532 6.70710318,5.29288961 L12.7071032,11.2928896 C13.0856821,11.6714686 13.0989277,12.281055 12.7371505,12.675721 L7.23715054,18.675721 C6.86395813,19.08284 6.23139076,19.1103429 5.82427177,18.7371505 C5.41715278,18.3639581 5.38964985,17.7313908 5.76284226,17.3242718 L10.6158586,12.0300721 L5.29288961,6.70710318 Z"
                                            fill="#000000" fill-rule="nonzero"
                                            transform="translate(8.999997, 11.999999) scale(-1, 1) translate(-8.999997, -11.999999) " />
                                        <path
                                            d="M10.7071009,15.7071068 C10.3165766,16.0976311 9.68341162,16.0976311 9.29288733,15.7071068 C8.90236304,15.3165825 8.90236304,14.6834175 9.29288733,14.2928932 L15.2928873,8.29289322 C15.6714663,7.91431428 16.2810527,7.90106866 16.6757187,8.26284586 L22.6757187,13.7628459 C23.0828377,14.1360383 23.1103407,14.7686056 22.7371482,15.1757246 C22.3639558,15.5828436 21.7313885,15.6103465 21.3242695,15.2371541 L16.0300699,10.3841378 L10.7071009,15.7071068 Z"
                                            fill="#000000" fill-rule="nonzero" opacity="0.3"
                                            transform="translate(15.999997, 11.999999) scale(-1, 1) rotate(-270.000000) translate(-15.999997, -11.999999) " />
                                    </g>
                                </svg></span> <span><svg
                                    xmlns="http://www.w3.org/2000/svg"
                                    xmlns:xlink="http://www.w3.org/1999/xlink" width="24px"
                                    height="24px" viewBox="0 0 24 24" version="1.1"
                                    class="kt-svg-icon">
                                    <g stroke="none" stroke-width="1"
                                       fill="none" fill-rule="evenodd">
                                        <polygon
                                            points="0 0 24 0 24 24 0 24" />
                                        <path
                                            d="M12.2928955,6.70710318 C11.9023712,6.31657888 11.9023712,5.68341391 12.2928955,5.29288961 C12.6834198,4.90236532 13.3165848,4.90236532 13.7071091,5.29288961 L19.7071091,11.2928896 C20.085688,11.6714686 20.0989336,12.281055 19.7371564,12.675721 L14.2371564,18.675721 C13.863964,19.08284 13.2313966,19.1103429 12.8242777,18.7371505 C12.4171587,18.3639581 12.3896557,17.7313908 12.7628481,17.3242718 L17.6158645,12.0300721 L12.2928955,6.70710318 Z"
                                            fill="#000000" fill-rule="nonzero" />
                                        <path
                                            d="M3.70710678,15.7071068 C3.31658249,16.0976311 2.68341751,16.0976311 2.29289322,15.7071068 C1.90236893,15.3165825 1.90236893,14.6834175 2.29289322,14.2928932 L8.29289322,8.29289322 C8.67147216,7.91431428 9.28105859,7.90106866 9.67572463,8.26284586 L15.6757246,13.7628459 C16.0828436,14.1360383 16.1103465,14.7686056 15.7371541,15.1757246 C15.3639617,15.5828436 14.7313944,15.6103465 14.3242754,15.2371541 L9.03007575,10.3841378 L3.70710678,15.7071068 Z"
                                            fill="#000000" fill-rule="nonzero" opacity="0.3"
                                            transform="translate(9.000003, 11.999999) rotate(-270.000000) translate(-9.000003, -11.999999) " />
                                    </g>
                                </svg></span>
                        </button>

                        <!--
<button class="kt-aside__brand-aside-toggler kt-aside__brand-aside-toggler--left" id="kt_aside_toggler"><span></span></button>
                        -->
                    </div>
                </div><?php
                $this->operator_id = $this->session->userdata('operator_id');
                ?>
                <div
                    class="kt-aside-menu-wrapper kt-grid__item kt-grid__item--fluid"
                    id="kt_aside_menu_wrapper">
                    <div id="kt_aside_menu" class="kt-aside-menu "
                         data-ktmenu-vertical="1" data-ktmenu-scroll="1"
                         data-ktmenu-dropdown-timeout="500">
                             <?php if (!$this->session->userdata('is_teacher_login')) { ?>
                            <ul class="kt-menu__nav kt-nav">


                                <li class="kt-menu__item  kt-menu__item--submenu"
                                    aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a
                                        href="<?= base_url('Dashboard/all') ?>" class="kt-menu__link "><i
                                            class="kt-menu__link-icon flaticon-home"></i><span
                                            class="kt-menu__link-text"><?php echo $this->lang->line('dashboard'); ?></span></a>
                                </li>
                                <li class="kt-menu__section ">
                                    <h4 class="kt-menu__section-text"><?php echo $this->lang->line('the-list') ?></h4>
                                    <i class="kt-menu__section-icon flaticon-more-v2"></i>
                                </li>
                                <?php if (get_license_per('products')) { ?>
                                    <li class="kt-menu__item kt-menu__submenu kt-nav__item"
                                        aria-haspopup="true" data-menu-toggle="hover"><a
                                            href="javascript:;" class="kt-menu__link  kt-menu__toggle"> <span
                                                class="svg-icon kt-menu__link-icon"> <i class="flaticon-bag"></i>
                                                <!--end::Svg Icon-->
                                            </span> <span class="kt-menu__link-text"><?php echo $this->lang->line('products'); ?></span>
                                            <i class="kt-nav__link-arrow" style="font-style: normal;"></i>
                                        </a>
                                        <div class="kt-menu__submenu">
                                            <i class="kt-nav__link-arrow"></i>
                                            <ul class="kt-menu__subnav">
                                                <li class="kt-menu__item kt-menu__item--parent"
                                                    aria-haspopup="true"><span class="kt-menu__link"> <span
                                                            class="kt-menu__link-text"><?php echo $this->lang->line('products'); ?></span>
                                                    </span></li>
                                                <?php if (get_ap('product', $this->operator_id)) { ?> 
                                                    <li class="kt-menu__item" aria-haspopup="true"><a
                                                            href="<?= base_url('producer/') ?>" class="kt-menu__link"> <i
                                                                class="kt-menu__link-icon"> <strong>-</strong>

                                                            </i> <span class="kt-menu__link-text"><?php echo $this->lang->line('products'); ?></span>
                                                        </a></li>
                                                <?php } ?>

                                                <?php if (get_ap('product_add', $this->operator_id) == 1) { ?>
                                                    <li class="kt-menu__item" aria-haspopup="true">
                                                        <a href="<?= base_url('producer/add') ?>" class="kt-menu__link">
                                                            <i class="kt-menu__link-icon"> <strong>-</strong>

                                                            </i>
                                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('add-a-product'); ?></span>
                                                        </a>
                                                    </li>
                                                <?php } ?>

                                                <?php if (get_ap('categories', $this->operator_id) == 1) { ?>
                                                    <li class="kt-menu__item" aria-haspopup="true">
                                                        <a href="<?= base_url('categories') ?>" class="kt-menu__link">
                                                            <i class="kt-menu__link-icon"> <strong>-</strong>

                                                            </i>
                                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('categories'); ?></span>
                                                        </a>
                                                    </li>
                                                <?php } ?>

                                                <?php if (get_ap('categories_add', $this->operator_id) == 1) { ?>
                                                    <li class="kt-menu__item" aria-haspopup="true">
                                                        <a href="<?= base_url('categories/add') ?>" class="kt-menu__link">
                                                            <i class="kt-menu__link-icon"> <strong>-</strong>

                                                            </i>
                                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('add-a-category'); ?></span>
                                                        </a>
                                                    </li>
                                                <?php } ?>
                                                
                                                <?php if (get_ap('additions', $this->operator_id) == 1) { ?>
                                                    <li class="kt-menu__item" aria-haspopup="true">
                                                        <a href="<?= base_url('producer/additions') ?>" class="kt-menu__link">
                                                            <i class="kt-menu__link-icon"> <strong>-</strong>

                                                            </i>
                                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('additions'); ?></span>
                                                        </a>
                                                    </li>
                                                <?php } ?>
                                            </ul>
                                        </div></li>
                                <?php } ?>

                                <?php
                                if (get_license_per('quraan_sessions')) {
                                    $controller_path = dirname(__DIR__, 2);
                                    if (file_exists($controller_path . '/controllers/quraan') && get_ap('quraan_sessions_module', $this->operator_id)) {
                                        ?>
                                        <li class="kt-menu__item kt-menu__submenu kt-nav__item" aria-haspopup="true" data-menu-toggle="hover">
                                            <a href="javascript:;" class="kt-menu__link  kt-menu__toggle">
                                                <span class="svg-icon kt-menu__link-icon">
                                                    <i class="flaticon-bag"></i>
                                                    <!--end::Svg Icon-->
                                                </span>
                                                <span class="kt-menu__link-text"><?php echo $this->lang->line('quraan_sessions'); ?></span>
                                                <i class="kt-nav__link-arrow" style="font-style: normal;"></i>
                                            </a>
                                            <div class="kt-menu__submenu">
                                                <i class="kt-nav__link-arrow"></i>
                                                <ul class="kt-menu__subnav">
                                                    <?php
                                                    if (get_ap('quraan_sessions', $this->operator_id)) {
                                                        ?>
                                                        <li class="kt-menu__item" aria-haspopup="true">
                                                            <a href="<?= base_url('quraan/sessions/') ?>" class="kt-menu__link">
                                                                <i class="kt-menu__link-icon"> <strong>-</strong>

                                                                </i>
                                                                <span class="kt-menu__link-text"><?php echo $this->lang->line('quraan_sessions'); ?></span>
                                                            </a>
                                                        </li>
                                                        <?php
                                                    }
                                                    ?>
                                                    <?php if (get_ap('teachers', $this->operator_id) == 1) {
                                                        ?>
                                                        <li class="kt-menu__item" aria-haspopup="true">
                                                            <a href="<?= base_url('quraan/teacher') ?>" class="kt-menu__link">
                                                                <i class="kt-menu__link-icon"> <strong>-</strong>

                                                                </i>
                                                                <span class="kt-menu__link-text"><?php echo $this->lang->line('teachers'); ?></span>
                                                            </a>
                                                        </li>
                                                    <?php }
                                                    ?>
                                                </ul>
                                            </div>
                                        </li>
                                        <?php
                                    }
                                }
                                ?>

                                <?php if (get_license_per('points')) { ?>
                                    <?php
                                    $controller_path = dirname(__DIR__, 2);
                                    if (file_exists($controller_path . '/controllers/points')) {
                                        ?>
                                        <?php if (get_ap('points_module', $this->operator_id) == 1) { ?>
                                            <li class="kt-menu__item kt-menu__submenu kt-nav__item" aria-haspopup="true" data-menu-toggle="hover">
                                                <a href="javascript:;" class="kt-menu__link  kt-menu__toggle">
                                                    <span class="svg-icon kt-menu__link-icon">
                                                        <i class="flaticon-users-1"></i>
                                                        <!--end::Svg Icon-->
                                                    </span>
                                                    <span class="kt-menu__link-text"><?php echo $this->lang->line('points'); ?></span>
                                                    <i class="kt-nav__link-arrow" style="font-style: normal;"></i>
                                                </a>
                                                <div class="kt-menu__submenu">
                                                    <i class="kt-nav__link-arrow"></i>
                                                    <ul class="kt-menu__subnav">
                                                        <li class="kt-menu__item kt-menu__item--parent" aria-haspopup="true">
                                                            <span class="kt-menu__link">
                                                                <span class="kt-menu__link-text"><?php echo $this->lang->line('points'); ?></span>
                                                            </span>
                                                        </li>
                                                        <?php if (get_ap('points', $this->operator_id) == 1) { ?>
                                                            <li class="kt-menu__item" aria-haspopup="true">
                                                                <a href="<?= base_url('points/student') ?>" class="kt-menu__link">
                                                                    <i class="kt-menu__link-icon"> <strong>-</strong>

                                                                    </i>
                                                                    <span class="kt-menu__link-text"><?php echo $this->lang->line('students'); ?></span>
                                                                </a>
                                                            </li>
                                                        <?php } ?>
                                                        <?php if (get_ap('tags', $this->operator_id) == 1) { ?>
                                                            <li class="kt-menu__item" aria-haspopup="true">
                                                                <a href="<?= base_url('points/tag') ?>" class="kt-menu__link">
                                                                    <i class="kt-menu__link-icon"> <strong>-</strong>

                                                                    </i>
                                                                    <span class="kt-menu__link-text"><?php echo $this->lang->line('tags'); ?></span>
                                                                </a>
                                                            </li>
                                                        <?php } ?>

                                                        <?php if (get_ap('points_ac', $this->operator_id) == 1) { ?>
                                                            <li class="kt-menu__item" aria-haspopup="true">
                                                                <a href="<?= base_url('points/barcode') ?>" class="kt-menu__link">
                                                                    <i class="kt-menu__link-icon"> <strong>-</strong>

                                                                    </i>
                                                                    <span class="kt-menu__link-text"><?php echo $this->lang->line('points'); ?></span>
                                                                </a>
                                                            </li>
                                                        <?php } ?>

                                                        <?php if (get_ap('award_history', $this->operator_id) == 1) { ?>
                                                            <li class="kt-menu__item" aria-haspopup="true">
                                                                <a href="<?= base_url('points/award/history') ?>" class="kt-menu__link">
                                                                    <i class="kt-menu__link-icon"> <strong>-</strong>

                                                                    </i>
                                                                    <span class="kt-menu__link-text"><?php echo $this->lang->line('award_history'); ?></span>
                                                                </a>
                                                            </li>
                                                        <?php } ?>

                                                        <?php if (get_ap('transaction', $this->operator_id) == 1) { ?>
                                                            <li class="kt-menu__item" aria-haspopup="true">
                                                                <a href="<?= base_url('points/student/transaction') ?>" class="kt-menu__link">
                                                                    <i class="kt-menu__link-icon"> <strong>-</strong>

                                                                    </i>
                                                                    <span class="kt-menu__link-text"><?php echo $this->lang->line('transactions'); ?></span>
                                                                </a>
                                                            </li>
                                                        <?php } ?>

                                                    </ul>
                                                </div>
                                            </li>
                                            <?php
                                        }
                                    }
                                }
                                ?>

                                <li class="kt-menu__item kt-menu__submenu kt-nav__item"
                                    aria-haspopup="true" data-menu-toggle="hover"><a
                                        href="javascript:;" class="kt-menu__link  kt-menu__toggle"> <span
                                            class="svg-icon kt-menu__link-icon"> <i
                                                class="flaticon-users-1"></i> <!--end::Svg Icon-->
                                        </span> <span class="kt-menu__link-text"><?php echo $this->lang->line('students'); ?></span>
                                        <i class="kt-nav__link-arrow" style="font-style: normal;"></i>
                                    </a>
                                    <div class="kt-menu__submenu">
                                        <i class="kt-nav__link-arrow"></i>
                                        <ul class="kt-menu__subnav">
                                            <li class="kt-menu__item kt-menu__item--parent"
                                                aria-haspopup="true"><span class="kt-menu__link"> <span
                                                        class="kt-menu__link-text"><?php echo $this->lang->line('students'); ?></span>
                                                </span></li>
                                            <?php if (get_ap('student_add', $this->operator_id)) { ?> 
                                                <li class="kt-menu__item" aria-haspopup="true">
                                                    <a href="<?= base_url('user/add') ?>" class="kt-menu__link">
                                                        <i class="kt-menu__link-icon"> <strong>-</strong>

                                                        </i>
                                                        <span class="kt-menu__link-text"><?php echo $this->lang->line('add') . ' ' . $this->lang->line('student'); ?></span>
                                                    </a>
                                                </li>
                                            <?php } ?>

                                            <?php if (get_ap('student', $this->operator_id)) { ?> 
                                                <li class="kt-menu__item" aria-haspopup="true"><a
                                                        href="<?= base_url('user/') ?>" class="kt-menu__link"> <i
                                                            class="kt-menu__link-icon"> <strong>-</strong>

                                                        </i> <span class="kt-menu__link-text"><?php echo $this->lang->line('the-students'); ?></span>
                                                    </a></li>
                                            <?php } ?>

                                            <?php if (get_ap('inbox', $this->operator_id)) { ?>
                                                <li class="kt-menu__item" aria-haspopup="true"><a
                                                        href="<?= base_url('users/approve') ?>" class="kt-menu__link">
                                                        <i class="kt-menu__link-icon"> <strong>-</strong>

                                                        </i> <span class="kt-menu__link-text"><?php echo $this->lang->line('inbox'); ?></span>
                                                    </a></li>
                                            <?php } ?>

                                            <?php
                                            if (get_license_per('attendance')) {
                                                $controller_path = dirname(__DIR__, 2);
                                                if (file_exists($controller_path . '/controllers/absent')) {

                                                    if (get_ap('attendance_module', $this->operator_id) && get_ap('attendance_add', $this->operator_id)) {
                                                        ?>
                                                        <li class="kt-menu__item" aria-haspopup="true"><a
                                                                href="<?= base_url('user/absent') ?>" class="kt-menu__link">
                                                                <i class="kt-menu__link-icon"> <strong>-</strong>

                                                                </i> <span class="kt-menu__link-text"><?php echo $this->lang->line('attendance'); ?></span>
                                                            </a></li>
                                                        <?php
                                                    }
                                                }
                                            }
                                            ?>

                                        </ul>
                                    </div></li>


                                <?php if (get_license_per('sales')) { ?>
                                    <li class="kt-menu__item kt-menu__submenu kt-nav__item" aria-haspopup="true" data-menu-toggle="hover">
                                        <a href="javascript:;" class="kt-menu__link  kt-menu__toggle">
                                            <span class="svg-icon kt-menu__link-icon">
                                                <i class="flaticon-list-1"></i>
                                                <!--end::Svg Icon-->
                                            </span>
                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('sales'); ?></span>
                                            <i class="kt-nav__link-arrow" style="font-style: normal;"></i>
                                        </a>
                                        <div class="kt-menu__submenu">
                                            <i class="kt-nav__link-arrow"></i>
                                            <ul class="kt-menu__subnav">
                                                <li class="kt-menu__item kt-menu__item--parent" aria-haspopup="true">
                                                    <span class="kt-menu__link">
                                                        <span class="kt-menu__link-text"><?php echo $this->lang->line('sales'); ?></span>
                                                    </span>
                                                </li>

                                                <?php if (get_ap('invoice_add', $this->operator_id) == 1) { ?>
                                                    <li class="kt-menu__item" aria-haspopup="true">
                                                        <a href="<?= base_url('orders/add') ?>" class="kt-menu__link">
                                                            <i class="kt-menu__link-icon"> <strong>-</strong>

                                                            </i>
                                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('add-an-invoice'); ?></span>
                                                        </a>
                                                    </li>
                                                <?php } ?>

                                                <?php if (get_ap('invoices', $this->operator_id) == 1) { ?>
                                                    <li class="kt-menu__item" aria-haspopup="true">
                                                        <a href="<?= base_url('orders/index/1/0/0/0') ?>" class="kt-menu__link">
                                                            <i class="kt-menu__link-icon"> <strong>-</strong>

                                                            </i>
                                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('invoices'); ?></span>
                                                        </a>
                                                    </li>
                                                <?php } ?>

                                                <?php if (get_ap('subscription', $this->operator_id) == 1) { ?>
                                                    <li class="kt-menu__item" aria-haspopup="true">
                                                        <a href="<?= base_url('orders/membership') ?>" class="kt-menu__link">
                                                            <i class="kt-menu__link-icon"> <strong>-</strong>

                                                            </i>
                                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('subscription'); ?></span>
                                                        </a>
                                                    </li>
                                                <?php } ?>

                                                <?php if (get_ap('bill', $this->operator_id)) { ?> 
                                                    <li class="kt-menu__item" aria-haspopup="true">
                                                        <a href="<?= base_url('producer/orders/') ?>" class="kt-menu__link">
                                                            <i class="kt-menu__link-icon"> <strong>-</strong>

                                                            </i>
                                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('product-bills'); ?></span>
                                                        </a>
                                                    </li>
                                                <?php } ?>


                                            </ul>
                                        </div>
                                    </li>
                                <?php } ?>


                                <?php
                                if (get_license_per('accountant')) {
                                    if (get_ap('accountant', $this->operator_id) == 1) {
                                        ?>
                                        <li
                                            class="kt-menu__item kt-menu__submenu kt-nav__item"
                                            aria-haspopup="true" data-menu-toggle="hover"><a
                                                href="javascript:;" class="kt-menu__link  kt-menu__toggle"> <span
                                                    class="svg-icon kt-menu__link-icon"> <i class="flaticon-list-1"></i>
                                                    <!--end::Svg Icon-->
                                                </span> <span class="kt-menu__link-text"><?php echo $this->lang->line('accountant'); ?></span>
                                                <i class="kt-nav__link-arrow" style="font-style: normal;"></i>
                                            </a>

                                            <div class="kt-menu__submenu">
                                                <i class="kt-nav__link-arrow"></i>
                                                <ul class="kt-menu__subnav">
                                                    <li class="kt-menu__item kt-menu__item--parent"
                                                        aria-haspopup="true"><span class="kt-menu__link"> <span
                                                                class="kt-menu__link-text"><?php echo $this->lang->line('accountant'); ?></span>
                                                        </span></li>

                                                    <?php if (get_ap('expense', $this->operator_id) == 1) { ?>
                                                        <li class="kt-menu__item" aria-haspopup="true"><a
                                                                href="<?= base_url('expense') ?>" class="kt-menu__link"> <i
                                                                    class="kt-menu__link-icon"> <strong>-</strong>

                                                                </i> <span class="kt-menu__link-text"><?php echo $this->lang->line('expense'); ?></span>
                                                            </a></li>
                                                    <?php } ?>


                                                </ul>

                                            </div></li><?php
                                    }
                                }
                                ?>

                                <?php if (get_license_per('call_center')) { ?>
                                    <?php
                                    $controller_path = dirname(__DIR__, 2);
                                    if (file_exists($controller_path . '/controllers/call_center') && get_ap('call_center_module', $this->operator_id)) {
                                        ?>
                                        <li class="kt-menu__item kt-menu__submenu kt-nav__item" aria-haspopup="true" data-menu-toggle="hover">
                                            <a href="javascript:;" class="kt-menu__link  kt-menu__toggle">
                                                <span class="svg-icon kt-menu__link-icon">
                                                    <i class="flaticon-users-1"></i>
                                                    <!--end::Svg Icon-->
                                                </span>
                                                <span class="kt-menu__link-text"><?php echo $this->lang->line('call_center'); ?></span>
                                                <i class="kt-nav__link-arrow" style="font-style: normal;"></i>
                                            </a>
                                            <div class="kt-menu__submenu">
                                                <i class="kt-nav__link-arrow"></i>
                                                <ul class="kt-menu__subnav">
                                                    <li class="kt-menu__item kt-menu__item--parent" aria-haspopup="true">
                                                        <span class="kt-menu__link">
                                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('call_center'); ?></span>
                                                        </span>
                                                    </li>
                                                    <?php if (get_ap('call_add_order', $this->operator_id) == 1) { ?>
                                                        <li class="kt-menu__item" aria-haspopup="true">
                                                            <a href="<?= base_url('call_center/CallCenter/add_order') ?>" class="kt-menu__link">
                                                                <i class="kt-menu__link-icon"> <strong>-</strong>
                                                                </i>
                                                                <span class="kt-menu__link-text"><?php echo $this->lang->line('add_order'); ?></span>
                                                            </a>
                                                        </li>
                                                    <?php } ?>

                                                    <?php if (get_ap('call_show_orders', $this->operator_id) == 1) { ?>
                                                        <li class="kt-menu__item" aria-haspopup="true">
                                                            <a href="<?= base_url('call_center/CallCenter/show_orders') ?>" class="kt-menu__link">
                                                                <i class="kt-menu__link-icon"> <strong>-</strong>
                                                                </i>
                                                                <span class="kt-menu__link-text"><?php echo $this->lang->line('show_orders'); ?></span>
                                                            </a>
                                                        </li>
                                                    <?php } ?>

                                                    <li class="kt-menu__item" aria-haspopup="true">
                                                        <a href="<?= base_url('orders/index/1/1/1') ?>" class="kt-menu__link">
                                                            <i class="kt-menu__link-icon"> <strong>-</strong>
                                                            </i>
                                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('reservations'); ?></span>
                                                        </a>
                                                    </li>

                                                </ul>
                                            </div>
                                        </li>
                                    <?php } ?>
                                <?php } ?>

                                <?php if (get_license_per('support')) { ?>
                                    <?php
                                    $controller_path = dirname(__DIR__, 2);
                                    if (file_exists($controller_path . '/controllers/support') && get_ap('supp_module', $this->operator_id)) {
                                        ?>
                                        <li class="kt-menu__item kt-menu__submenu kt-nav__item" aria-haspopup="true" data-menu-toggle="hover">
                                            <a href="javascript:;" class="kt-menu__link  kt-menu__toggle">
                                                <span class="svg-icon kt-menu__link-icon">
                                                    <i class="fas fa-ticket-alt"></i>
                                                    <!--end::Svg Icon-->
                                                </span>
                                                <span class="kt-menu__link-text"><?php echo $this->lang->line('support'); ?></span>
                                                <i class="kt-nav__link-arrow" style="font-style: normal;"></i>
                                            </a>
                                            <div class="kt-menu__submenu">
                                                <i class="kt-nav__link-arrow"></i>
                                                <ul class="kt-menu__subnav">
                                                    <li class="kt-menu__item kt-menu__item--parent" aria-haspopup="true">
                                                        <span class="kt-menu__link">
                                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('support'); ?></span>
                                                        </span>
                                                    </li>
                                                    <?php if (get_ap('call_add_order', $this->operator_id) == 1) { ?>
                                                        <li class="kt-menu__item" aria-haspopup="true">
                                                            <a href="<?= base_url('support/tickets/add') ?>" class="kt-menu__link">
                                                                <i class="kt-menu__link-icon"> <strong>-</strong>
                                                                </i>
                                                                <span class="kt-menu__link-text"><?php echo $this->lang->line('add-a-ticket'); ?></span>
                                                            </a>
                                                        </li>
                                                    <?php } ?>
                                                    <li class="kt-menu__item" aria-haspopup="true">
                                                        <a href="<?= base_url('support/tickets') ?>" class="kt-menu__link">
                                                            <i class="kt-menu__link-icon"> <strong>-</strong>
                                                            </i>
                                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('tickets'); ?></span>
                                                        </a>
                                                    </li>


                                                </ul>
                                            </div>
                                        </li>
                                    <?php } ?>
                                <?php } ?>

                                <?php if (get_license_per('drivers')) { ?>
                                    <?php
                                    $controller_path = dirname(__DIR__, 2);
                                    if (file_exists($controller_path . '/controllers/drivers') && get_ap('drivers_module', $this->operator_id)) {
                                        ?>
                                        <li class="kt-menu__item kt-menu__submenu kt-nav__item" aria-haspopup="true" data-menu-toggle="hover">
                                            <a href="javascript:;" class="kt-menu__link  kt-menu__toggle">
                                                <span class="svg-icon kt-menu__link-icon">
                                                    <i class="fas fas fa-truck"></i>
                                                    <!--end::Svg Icon-->
                                                </span>
                                                <span class="kt-menu__link-text"><?php echo $this->lang->line('drivers'); ?></span>
                                                <i class="kt-nav__link-arrow" style="font-style: normal;"></i>
                                            </a>
                                            <div class="kt-menu__submenu">
                                                <i class="kt-nav__link-arrow"></i>
                                                <ul class="kt-menu__subnav">
                                                    <li class="kt-menu__item kt-menu__item--parent" aria-haspopup="true">
                                                        <span class="kt-menu__link">
                                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('support'); ?></span>
                                                        </span>
                                                    </li>
                                                    <?php if (get_ap('add_driver', $this->operator_id) == 1) { ?>
                                                        <li class="kt-menu__item" aria-haspopup="true">
                                                            <a href="<?= base_url('drivers/drivers/add') ?>" class="kt-menu__link">
                                                                <i class="kt-menu__link-icon"> <strong>-</strong>
                                                                </i>
                                                                <span class="kt-menu__link-text"><?php echo $this->lang->line('add-a-driver'); ?></span>
                                                            </a>
                                                        </li>
                                                    <?php } ?>
                                                    <li class="kt-menu__item" aria-haspopup="true">
                                                        <a href="<?= base_url('drivers/drivers') ?>" class="kt-menu__link">
                                                            <i class="kt-menu__link-icon"> <strong>-</strong>
                                                            </i>
                                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('drivers'); ?></span>
                                                        </a>
                                                    </li>




                                                </ul>
                                            </div>
                                        </li>
                                    <?php } ?>
                                <?php } ?>

                                <?php
                                if (get_license_per('knowledge_base')) {
                                    if (get_ap('knowledge_base_module', $this->operator_id) == 1) {
                                        ?>
                                        <li class="kt-menu__item kt-menu__submenu kt-nav__item" aria-haspopup="true" data-menu-toggle="hover">
                                            <a href="javascript:;" class="kt-menu__link  kt-menu__toggle">
                                                <span class="svg-icon kt-menu__link-icon">
                                                    <i class="fas fa-book"></i>
                                                    <!--end::Svg Icon-->
                                                </span>
                                                <span class="kt-menu__link-text"><?php echo $this->lang->line('knowledge_base'); ?></span>
                                                <i class="kt-nav__link-arrow" style="font-style: normal;"></i>
                                            </a>
                                            <div class="kt-menu__submenu">
                                                <i class="kt-nav__link-arrow"></i>
                                                <ul class="kt-menu__subnav">
                                                    <li class="kt-menu__item kt-menu__item--parent" aria-haspopup="true">
                                                        <span class="kt-menu__link">
                                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('support'); ?></span>
                                                        </span>
                                                    </li>

                                                    <li class="kt-menu__item" aria-haspopup="true">
                                                        <a href="<?= base_url('knowledge_base/dalel') ?>" class="kt-menu__link">
                                                            <i class="kt-menu__link-icon"> <strong>-</strong>
                                                            </i>
                                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('guides'); ?></span>
                                                        </a>
                                                    </li>
                                                </ul>
                                            </div>
                                        </li>
                                        <?php
                                    }
                                }
                                ?>

                                <?php if (get_ap('pay_orders_module', $this->operator_id) == 1 && is_payment_available()) { ?>
                                    <li class="kt-menu__item kt-menu__submenu kt-nav__item" aria-haspopup="true" data-menu-toggle="hover">
                                        <a href="javascript:;" class="kt-menu__link  kt-menu__toggle">
                                            <span class="svg-icon kt-menu__link-icon">
                                                <i class="fas fa-dollar-sign"></i>
                                                <!--end::Svg Icon-->
                                            </span>
                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('pay_orders'); ?></span>
                                            <i class="kt-nav__link-arrow" style="font-style: normal;"></i>
                                        </a>
                                        <div class="kt-menu__submenu">
                                            <i class="kt-nav__link-arrow"></i>
                                            <ul class="kt-menu__subnav">
                                                <li class="kt-menu__item kt-menu__item--parent" aria-haspopup="true">
                                                    <span class="kt-menu__link">
                                                        <span class="kt-menu__link-text"><?php echo $this->lang->line('pay_orders'); ?></span>
                                                    </span>
                                                </li>
                                                <li class="kt-menu__item" aria-haspopup="true">
                                                    <a href="<?= base_url('Payment/pay_orders') ?>" class="kt-menu__link">
                                                        <i class="kt-menu__link-icon"> <strong>-</strong>
                                                        </i>
                                                        <span class="kt-menu__link-text"><?php echo $this->lang->line('pay_orders'); ?></span>
                                                    </a>
                                                </li>
                                                <?php if (get_ap('add_pay_order', $this->operator_id) == 1) { ?>
                                                    <li class="kt-menu__item" aria-haspopup="true">
                                                        <a href="<?= base_url('Payment/add_pay_order') ?>" class="kt-menu__link">
                                                            <i class="kt-menu__link-icon"> <strong>-</strong>
                                                            </i>
                                                            <span class="kt-menu__link-text"><?php echo $this->lang->line('add') . ' ' . $this->lang->line('pay_order'); ?></span>
                                                        </a>
                                                    </li>
                                                <?php } ?>
                                            </ul>
                                        </div>
                                    </li>
                                <?php } ?>



                                <li class="kt-menu__item kt-menu__submenu kt-nav__item" aria-haspopup="true" data-menu-toggle="hover">
                                    <a href="javascript:;" class="kt-menu__link  kt-menu__toggle">
                                        <span class="svg-icon kt-menu__link-icon">
                                            <i class="far fa-file-alt"></i>
                                            <!--end::Svg Icon-->
                                        </span>
                                        <span class="kt-menu__link-text"><?php echo $this->lang->line('reports'); ?></span>
                                        <i class="kt-nav__link-arrow" style="font-style: normal;"></i>
                                    </a>
                                    <div class="kt-menu__submenu">
                                        <i class="kt-nav__link-arrow"></i>
                                        <ul class="kt-menu__subnav">
                                            <li class="kt-menu__item kt-menu__item--parent" aria-haspopup="true">
                                                <span class="kt-menu__link">
                                                    <span class="kt-menu__link-text"><?php echo $this->lang->line('reports'); ?></span>
                                                </span>
                                            </li>
                                            <?php if (get_ap('accountant_report', $this->operator_id) == 1) { ?>
                                                <li class="kt-menu__item" aria-haspopup="true">
                                                    <a href="<?= base_url('bills') ?>" class="kt-menu__link"> <i
                                                            class="kt-menu__link-icon"> <strong>-</strong>

                                                        </i> <span class="kt-menu__link-text"><?php echo $this->lang->line('the-accountant'); ?></span>
                                                    </a>
                                                </li>
                                            <?php } ?>

                                            <?php if (get_ap('sales_report', $this->operator_id)) { ?> 
                                                <li class="kt-menu__item" aria-haspopup="true">
                                                    <a href="<?= base_url('orders/sales_report') ?>" class="kt-menu__link">
                                                        <i class="kt-menu__link-icon"> <strong>-</strong>

                                                        </i>
                                                        <span class="kt-menu__link-text"><?php echo $this->lang->line('sales_report'); ?></span>
                                                    </a>
                                                </li>
                                            <?php } ?>

                                            <?php if (get_ap('payment_report', $this->operator_id)) { ?> 
                                                <li class="kt-menu__item" aria-haspopup="true">
                                                    <a href="<?= base_url('orders/payment_report') ?>" class="kt-menu__link">
                                                        <i class="kt-menu__link-icon"> <strong>-</strong>

                                                        </i>
                                                        <span class="kt-menu__link-text"><?php echo $this->lang->line('payment_report'); ?></span>
                                                    </a>
                                                </li>
                                            <?php } ?>

                                            <?php if (get_ap('drivers_report', $this->operator_id) == 1) { ?>
                                                <li class="kt-menu__item" aria-haspopup="true">
                                                    <a href="<?= base_url('drivers/drivers/report') ?>" class="kt-menu__link">
                                                        <i class="kt-menu__link-icon"> <strong>-</strong>
                                                        </i>
                                                        <span class="kt-menu__link-text"><?php echo $this->lang->line('drivers_report'); ?></span>
                                                    </a>
                                                </li>
                                            <?php } ?>
                                        </ul>
                                    </div>
                                </li>


                                                                                                                                                                                                                                                                                                         <!--                            <li class="kt-menu__item  kt-menu__item--submenu" aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a href="<?= base_url('producer/') ?>" class="kt-menu__link "><span class="kt-menu__link-icon flaticon-bag"></span><span class="kt-menu__link-text"><?php echo $this->lang->line('products'); ?></span></a>
                                                                                                                                                                                                                                                 </li>-->
                                                                                                                                                                                                                                                                                                         <!--                            <li class="kt-menu__item  kt-menu__item--submenu" aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a href="<?= base_url('producer/orders/') ?>" class="kt-menu__link "><i class="kt-menu__link-icon flaticon-list"></i><span class="kt-menu__link-text"><?php echo $this->lang->line('product-bills'); ?></span></a>
                                                                                                                                                                                                                                                 </li>-->
                                                                                                                                                                                                                                                                                                         <!--  <li class="kt-menu__item  kt-menu__item--submenu" aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a href="<?= base_url('multi_orders/') ?>" class="kt-menu__link "><i class="kt-menu__link-icon flaticon-tabs"></i><span class="kt-menu__link-text"><?php echo $this->lang->line('multiple-product'); ?></span></a>
                                                                                                                                                                                                                                                 </li> -->
                                                                                                                                                                                                                                                                                                         <!--                            <li class="kt-menu__item  kt-menu__item--submenu" aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a href="<?= base_url('expense') ?>" class="kt-menu__link "><i class="kt-menu__link-icon flaticon-layer"></i><span class="kt-menu__link-text"><?php echo $this->lang->line('expense'); ?></span></a>
                                                                                                                                                                                                                                                                             </li>-->
                                                                                                                                                                                                                                                                                                         <!--   <li class="kt-menu__item  kt-menu__item--submenu" aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a href="<?= base_url('user') ?>" class="kt-menu__link "><i class="kt-menu__link-icon flaticon-users-1"></i><span class="kt-menu__link-text"><?php echo $this->lang->line('the-students'); ?></span></a>
                                                                                                                                                                                                                                                                             </li>  -->
                                                                                                                                                                                                                                                                                                         <!--                            <li class="kt-menu__item  kt-menu__item--submenu" aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a href="<?= base_url('orders') ?>" class="kt-menu__link "><i class="kt-menu__link-icon flaticon-list-1"></i><span class="kt-menu__link-text"><?php echo $this->lang->line('invoices'); ?></span></a>
                                                                                                                                                                                                                                                                             </li>-->
                                                                                                                                                                                                                                                                                                         <!--                            <li class="kt-menu__item  kt-menu__item--submenu" aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a href="<?= base_url('orders/membership') ?>" class="kt-menu__link "><i class="kt-menu__link-icon flaticon-list-1"></i><span class="kt-menu__link-text"><?php echo $this->lang->line('subscription'); ?></span></a>
                                                                                                                                                                                                                                                                             </li>-->
                                                                                                                                                                                                                                                                                                         <!--  <li class="kt-menu__item  kt-menu__item--submenu" aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a href="<?= base_url('users/approve') ?>" class="kt-menu__link "><i class="kt-menu__link-icon flaticon-user-ok"></i><span class="kt-menu__link-text"><?php echo $this->lang->line('inbox'); ?></span></a>
                                                                                                                                                                                                                                                                             </li> -->
                                <li class="kt-menu__section ">
                                    <h4 class="kt-menu__section-text"><?php echo $this->lang->line('additions') ?></h4>
                                    <i class="kt-menu__section-icon flaticon-more-v2"></i>
                                </li>
                                <?php
                                if (get_license_per('advs_msgs')) {
                                    $controller_path = dirname(__DIR__, 2);
                                    if (file_exists($controller_path . '/controllers/announcement')) {
                                        if (get_ap('announcement', $this->operator_id) == 1) {
                                            ?>
                                            <li class="kt-menu__item  kt-menu__item--submenu"
                                                aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a
                                                    href="<?= base_url('announcement/announcment') ?>"
                                                    class="kt-menu__link "><i
                                                        class="kt-menu__link-icon flaticon-bell"></i><span
                                                        class="kt-menu__link-text"><?php echo $this->lang->line('announcement'); ?></span></a>
                                            </li>
                                        <?php } ?>
                                        <?php if (get_ap('messages', $this->operator_id) == 1) { ?>
                                            <li class="kt-menu__item  kt-menu__item--submenu"
                                                aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a
                                                    href="<?= base_url('announcement') ?>" class="kt-menu__link "><i
                                                        class="kt-menu__link-icon flaticon-multimedia"></i><span
                                                        class="kt-menu__link-text"><?php echo $this->lang->line('messages'); ?></span></a>
                                            </li>
                                            <?php
                                        }
                                    }
                                }
                                ?>
    <!--                            <li class="kt-menu__item  kt-menu__item--submenu" aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a href="<?= base_url('bills') ?>" class="kt-menu__link "><i class="kt-menu__link-icon flaticon2-accept"></i><span class="kt-menu__link-text"><?php echo $this->lang->line('the-accountant'); ?></span></a>
    </li>-->
                                <?php if (get_ap('member', $this->operator_id) == 1) { ?>
                                    <li class="kt-menu__item  kt-menu__item--submenu"
                                        aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a
                                            href="<?= base_url('users') ?>" class="kt-menu__link "><i
                                                class="kt-menu__link-icon flaticon-users"></i><span
                                                class="kt-menu__link-text"><?php echo $this->lang->line('member'); ?></span></a>
                                    </li>
                                <?php } ?>

                                <?php if (get_ap('logs', $this->operator_id) == 1) { ?>
                                    <li class="kt-menu__item  kt-menu__item--submenu" aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a href="<?= base_url('user/logs') ?>" class="kt-menu__link "><i class="kt-menu__link-icon far fa-list-alt"></i><span class="kt-menu__link-text"><?php echo $this->lang->line('logs'); ?></span></a>
                                    </li>
                                <?php } ?>
    <!-- <li class="kt-menu__item  kt-menu__item--submenu" aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a href="<?= base_url('user/absent') ?>" class="kt-menu__link "><i class="kt-menu__link-icon flaticon-user"></i><span class="kt-menu__link-text"><?php echo $this->lang->line('users'); ?> <?php echo $this->lang->line('attendance'); ?></span></a>
    </li> -->
                                <li class="kt-menu__item kt-menu__submenu kt-nav__item"
                                    aria-haspopup="true" data-menu-toggle="hover"><a
                                        href="javascript:;" class="kt-menu__link  kt-menu__toggle"> <span
                                            class="svg-icon kt-menu__link-icon"> <i
                                                class="flaticon-settings"></i> <!--end::Svg Icon-->
                                        </span> <span class="kt-menu__link-text"><?php echo $this->lang->line('setting'); ?></span>
                                        <i class="kt-nav__link-arrow" style="font-style: normal;"></i>
                                    </a>
                                    <div class="kt-menu__submenu">
                                        <i class="kt-nav__link-arrow"></i>
                                        <ul class="kt-menu__subnav">
                                            <li class="kt-menu__item kt-menu__item--parent"
                                                aria-haspopup="true"><span class="kt-menu__link"> <span
                                                        class="kt-menu__link-text"><?php echo $this->lang->line('setting'); ?></span>
                                                </span></li>
                                            <?php
                                            if (get_license_per('language')) {
                                                if (get_ap('language', $this->operator_id) == 1) {
                                                    ?>
                                                    <li class="kt-menu__item" aria-haspopup="true"><a
                                                            href="<?= base_url('language') ?>" class="kt-menu__link"> <i
                                                                class="kt-menu__link-icon"> <strong>-</strong>

                                                            </i> <span class="kt-menu__link-text"><?php echo $this->lang->line('language'); ?></span>
                                                        </a></li>
                                                    <?php
                                                }
                                            }
                                            ?>

                                            <?php if (get_ap('group', $this->operator_id) == 1) { ?>
                                                <li class="kt-menu__item" aria-haspopup="true"><a
                                                        href="<?= base_url('group') ?>" class="kt-menu__link"> <i
                                                            class="kt-menu__link-icon"> <strong>-</strong>

                                                        </i> <span class="kt-menu__link-text"><?php echo $this->lang->line('groups'); ?></span>
                                                    </a></li>
                                            <?php } ?>

                                            <?php if (get_license_per('data_managment')) { ?>
                                                <li class="kt-menu__item kt-menu__submenu kt-nav__item" aria-haspopup="true" data-menu-toggle="hover">
                                                    <a href="javascript:;" class="kt-menu__link kt-menu__toggle">
                                                        <i class="kt-menu__link-icon"> <strong>-</strong>

                                                        </i>
                                                        <span class="kt-menu__link-text"><?= $this->lang->line('data_managment') ?></span>
                                                        <i class="kt-nav__link-arrow mt-2" style="font-style: normal"></i>
                                                    </a>
                                                    <div class="kt-menu__submenu">
                                                        <ul class="kt-menu__subnav">
                                                            <?php if (get_ap('data', $this->operator_id) == 1) { ?>
                                                                <li class="kt-menu__item" aria-haspopup="true">
                                                                    <a href="<?= base_url('datas/main') ?>" class="kt-menu__link">
                                                                        <i class="kt-menu__link-icon"> <strong>-</strong>

                                                                        </i>
                                                                        <span class="kt-menu__link-text"><?php echo $this->lang->line('menus'); ?></span>
                                                                    </a>
                                                                </li>
                                                            <?php } ?>

                                                            <?php if (get_ap('student_fields', $this->operator_id) == 1) { ?>
                                                                <li class="kt-menu__item" aria-haspopup="true"><a
                                                                        href="<?= base_url('user/fields_settings') ?>"
                                                                        class="kt-menu__link"> <i class="kt-menu__link-icon"> <strong>-</strong>

                                                                        </i> <span class="kt-menu__link-text"><?php echo $this->lang->line('student_fields'); ?></span>
                                                                    </a></li>
                                                            <?php } ?>

                                                            <?php if (get_ap('drivers_data_control', $this->operator_id) == 1) { ?>
                                                                <li class="kt-menu__item" aria-haspopup="true"><a
                                                                        href="<?= base_url('drivers/Drivers/fields_settings') ?>"
                                                                        class="kt-menu__link"> <i class="kt-menu__link-icon"> <strong>-</strong>

                                                                        </i> <span class="kt-menu__link-text"><?php echo $this->lang->line('drivers_fields'); ?></span>
                                                                    </a></li>
                                                            <?php } ?>

                                                        </ul>
                                                    </div>
                                                </li>
                                            <?php } ?>

                                            <?php if (get_ap('update', $this->operator_id) == 1) { ?>
                                                <li class="kt-menu__item" aria-haspopup="true"><a
                                                        href="<?= base_url('update') ?>"
                                                        class="kt-menu__link"> <i class="kt-menu__link-icon"> <strong>-</strong>

                                                        </i> <span class="kt-menu__link-text"><?php echo $this->lang->line('update'); ?></span>
                                                    </a></li>
                                            <?php } ?>

                                            <?php if (get_ap('setting', $this->operator_id) == 1) { ?>
                                                <li class="kt-menu__item" aria-haspopup="true"><a
                                                        href="<?= base_url('Dashboard/setting') ?>"
                                                        class="kt-menu__link"> <i class="kt-menu__link-icon"> <strong>-</strong>

                                                        </i> <span class="kt-menu__link-text"><?php echo $this->lang->line('setting'); ?></span>
                                                    </a></li>
                                            <?php } ?>

                                        </ul>
                                    </div></li>

                                                                                                                                                                                                                                                                                                                                <!--   <li class="kt-menu__item  kt-menu__item--submenu" aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a href="<?= base_url('language') ?>" class="kt-menu__link "><i class="kt-menu__link-icon flaticon2-browser-1"></i><span class="kt-menu__link-text"><?php echo $this->lang->line('language'); ?></span></a>
                                                                                                                                                                                                                                                                                                    </li>
                                                                                                                                                                                                                                                                                                    <li class="kt-menu__item  kt-menu__item--submenu" aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a href="<?= base_url('group') ?>" class="kt-menu__link "><i class="kt-menu__link-icon flaticon-lock"></i><span class="kt-menu__link-text"><?php echo $this->lang->line('groups'); ?></span></a>
                                                                                                                                                                                                                                                                                                    </li>
                                                                                                                                                                                                                                                                                                    <li class="kt-menu__item  kt-menu__item--submenu" aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a href="<?= base_url('datas') ?>" class="kt-menu__link "><i class="kt-menu__link-icon flaticon2-menu-4"></i><span class="kt-menu__link-text"><?php echo $this->lang->line('data'); ?></span></a>
                                                                                                                                                                                                                                                                                                    </li>
                                                                                                                                                                                                                                                                                                    <li class="kt-menu__item  kt-menu__item--submenu" aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a href="<?= base_url('Dashboard/setting') ?>" class="kt-menu__link "><i class="kt-menu__link-icon flaticon-settings"></i><span class="kt-menu__link-text"><?php echo $this->lang->line('setting'); ?></span></a>
                                                                                                                                                                                                                                                                                                    </li> -->
                            </ul>
                        <?php } else { ?>

                            <ul class="kt-menu__nav kt-nav">

                                <li class="kt-menu__item  kt-menu__item--submenu"
                                    aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a
                                        href="<?= base_url('quraan/teacher/edit/' . $this->session->userdata('teacher_id')) ?>"
                                        class="kt-menu__link "><i
                                            class="kt-menu__link-icon fas fa-user"></i><span
                                            class="kt-menu__link-text"><?php echo $this->lang->line('personal_info'); ?> </span></a>
                                </li>

                                <li class="kt-menu__item  kt-menu__item--submenu"
                                    aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a
                                        href="<?= base_url('quraan/sessions/') ?>"
                                        class="kt-menu__link "><i
                                            class="kt-menu__link-icon fas fa-book-open"></i><span
                                            class="kt-menu__link-text"><?php echo $this->lang->line('quraan_sessions'); ?></span></a>
                                </li>
                                <?php
                                if (get_license_per('attendance')) {
                                    $controller_path = dirname(__DIR__, 2);
                                    if (file_exists($controller_path . '/controllers/absent')) {
                                        if (get_ap('attendance_module', $this->operator_id)) {
                                            ?>
                                            <li class="kt-menu__item  kt-menu__item--submenu"
                                                aria-haspopup="true" data-ktmenu-submenu-toggle="hover"><a
                                                    href="<?= base_url('user/absent') ?>"
                                                    class="kt-menu__link "><i
                                                        class="kt-menu__link-icon fas fa-list-ol"></i><span
                                                        class="kt-menu__link-text"><?php echo $this->lang->line('users'); ?> <?php echo $this->lang->line('attendance'); ?></span></a>
                                            </li>
                                            <?php
                                        }
                                    }
                                }
                                ?>



                            </ul>
                        <?php } ?>
                    </div>
                </div>
            </div>


            <!-- end:: Aside -->
            <div
                class="kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor kt-wrapper"
                id="kt_wrapper">

                <!-- begin:: Header -->
                <div id="kt_header"
                     class="kt-header kt-grid__item  kt-header--fixed ">

                    <!-- begin:: Header Menu -->

                    <!-- Uncomment this to display the close button of the panel
<button class="kt-header-menu-wrapper-close" id="kt_header_menu_mobile_close_btn"><i class="la la-close"></i></button>
                    -->
                    <div class="kt-header-menu-wrapper" id="kt_header_menu_wrapper">
                        <div id="kt_header_menu"
                             class="kt-header-menu kt-header-menu-mobile  kt-header-menu--layout-default ">
                            <ul class="kt-menu__nav ">

                            </ul>
                        </div>
                    </div>

                    <!-- end:: Header Menu -->

                    <!-- begin:: Header Topbar -->
                    <div class="kt-header__topbar">


                        <!--begin: Language bar -->
                        <div class="kt-header__topbar-item kt-header__topbar-item--langs">
                            <div class="kt-header__topbar-wrapper" data-toggle="dropdown"
                                 data-offset="1px,0px">
                                <span class="kt-header__topbar-icon"> <a
                                        onclick="language('<?php echo $language_set; ?>')" class="flog"><img
                                            src="<?php echo base_url() ?>public/media/flags/<?php echo $language_set; ?>.png"
                                            width="70" height="30"></a>
                                </span>
                            </div>

                        </div>

                        <!--end: Language bar -->

                        <!--begin: User Bar -->
                        <div class="kt-header__topbar-item kt-header__topbar-item--user">
                            <div class="kt-header__topbar-wrapper" data-toggle="dropdown"
                                 data-offset="0px,0px">
                                <div class="kt-header__topbar-user">
                                    <span class="kt-header__topbar-welcome kt-hidden-mobile"><?php echo $this->lang->line('hi'); ?>,</span>
                                    <span class="kt-header__topbar-username kt-hidden-mobile"><?php echo $this->session->userdata('name'); ?></span>
                                    <img class="kt-hidden" alt="Pic"
                                         src="<?php echo base_url() ?>public/media/users/300_25.jpg" />

                                    <!--use below badge element instead the user avatar to display username's first letter(remove kt-hidden class to display it) -->
                                    <!--  <span class="kt-badge kt-badge--username kt-badge--unified-success kt-badge--lg kt-badge--rounded kt-badge--bold"><?php echo $this->session->userdata('name'); ?></span> -->
                                </div>
                            </div>
                            <div
                                class="dropdown-menu dropdown-menu-fit dropdown-menu-right dropdown-menu-anim dropdown-menu-top-unround dropdown-menu-xl">

                                <!--begin: Head -->
                                <div
                                    class="kt-user-card kt-user-card--skin-dark kt-notification-item-padding-x"
                                    style="background-image: url(assets/media/misc/bg-1.jpg)">
                                    <div class="kt-user-card__avatar">
                                        <img class="kt-hidden" alt="Pic"
                                             src="<?php echo base_url() ?>public/media/users/300_25.jpg" />

                                        <!--use below badge element instead the user avatar to display username's first letter(remove kt-hidden class to display it) -->
                                        <span
                                            class="kt-badge kt-badge--lg kt-badge--rounded kt-badge--bold kt-font-success"><?php echo $this->session->userdata('name'); ?></span>
                                    </div>
                                    <!-- <div class="kt-user-card__name">
  Sean Stone
</div> -->
                                    <!-- <div class="kt-user-card__badge">
  <span class="btn btn-success btn-sm btn-bold btn-font-md">23 messages</span>
</div> -->
                                </div>

                                <!--end: Head -->

                                <!--begin: Navigation -->
                                <div class="kt-notification">
                                    <!--  <a href="custom/apps/user/profile-1/overview.html" class="kt-notification__item">
   <div class="kt-notification__item-icon">
     <i class="flaticon2-cardiogram kt-font-warning"></i>
   </div>
   <div class="kt-notification__item-details">
     <div class="kt-notification__item-title kt-font-bold">
       Billing
     </div>
     <div class="kt-notification__item-time">
       billing & statements <span class="kt-badge kt-badge--danger kt-badge--inline kt-badge--pill kt-badge--rounded">2 pending</span>
     </div>
   </div>
 </a> -->
                                    <div class="kt-notification__custom kt-space-between">
                                        <a href="<?= base_url('users/edit/' . $this->session->userdata('admin_id')) ?>" 
                                           class="btn btn-label btn-label-brand btn-sm btn-bold"><?php echo $this->lang->line('edit_personal_info') ?></a>
                                        <a href="<?= base_url('auth/logout') ?>" 
                                           class="btn btn-label btn-label-brand btn-sm btn-bold"><?php echo $this->lang->line('logout') ?></a>
                                        <!-- <a href="custom/user/login-v2.html" target="_blank" class="btn btn-clean btn-sm btn-bold">Upgrade Plan</a> -->
                                    </div>

                                </div>

                                <!--end: Navigation -->
                            </div>
                        </div>

                        <!--end: User Bar -->
                    </div>

                    <!-- end:: Header Topbar -->
                </div>

                <script>
                    function language(new_lang) {
                        var new_lang;
                        $.ajax({
                            method: "POST",
                            url: "<?php echo base_url() ?>language/lang/" + new_lang,
                            data: {'lang': new_lang},
                            success: function (e) {
                                location.reload();

                            }
                        });
                    }
                </script>