<?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">
        <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 } ?>
                        </ul>
                    </div>
                </li>
            <?php } ?>

            <?php
            if (get_license_per('quraan_sessions')) {
                $controller_path = dirname(__DIR__, 1);
                if (file_exists($controller_path . '/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__, 1);
                if (file_exists($controller_path . '/points')) {
                    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__, 1);
                            if (file_exists($controller_path . '/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') ?>" 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 } ?>
                            <?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 } ?>
                        </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 } ?>



                                <?php if (get_ap('accountant', $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 } ?>

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

            <?php if (get_license_per('call_center')) { ?>
                <?php
                $controller_path = dirname(__DIR__, 1);
                if (file_exists($controller_path . '/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__, 1);
                if (file_exists($controller_path . '/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__, 1);
                if (file_exists($controller_path . '/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 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>

                                <?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>
                <?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__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__, 1);
                if (file_exists($controller_path . '/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>
    </div>
</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>