  <?php $my_info = get_user_info_by_id(auth('id')); ?>

  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
      <div class="user-panel">
        <div class="pull-left image">
          <img src="<?= base_url(!empty(html_escape($my_info['thumb']))?html_escape($my_info['thumb']):'assets/images/avatar.png')?>" class="img-circle uploaded_img" alt="User Image">
        </div>
        <div class="pull-left info">
          <p><?= !empty(html_escape($my_info['name']))?html_escape($my_info['name']):$my_info['username'] ; ?></p>
          <span id="time"></span>
        </div>
      </div>
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu" data-widget="tree">
        <!-- <li class="header">MAIN NAVIGATION</li> -->

        <?php if(auth('user_type')==1 ): ?>

           <li class="<?= isset($page_title) && $page_title =="Dashboard"?"active":""; ?>">
            <a href="<?= base_url('admin/dashboard') ?>">
              <i class="fa fa-dashboard"></i> <span><?= !empty(lang('dashboard'))?lang('dashboard'):"Dashboard";?></span>
            </a>
          </li>
           <?php include "admin_sidebar.php";?>
          
      <?php if((check_code()==1 || check_code()==2) && is_update()==0): ?>

       
      <?php include "admin_sidebar.php";?>
          
          
        <?php endif; ?><!-- check code -->
    <?php endif; ?> <!-- user type==1/admin -->
    <li class="<?= isset($page_title) && $page_title =="Dashboard"?"active":""; ?>">
            <a href="<?= base_url('admin/dashboard') ?>">
              <i class="fa fa-dashboard"></i> <span><?= !empty(lang('dashboard'))?lang('dashboard'):"Dashboard";?></span>
            </a>
          </li>

      <?php if(auth('account_type') ==2): ?>
          <?php include "user_sidebar.php";?>
      <?php endif; ?><!-- user type==0 -->
        
      </ul>

    </section>
    <!-- /.sidebar -->
  </aside>


<!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header hidden">
      <?php if(direction()!='rtl'): ?>
        <ol class="breadcrumb">
          <li><a href="<?= base_url('admin/dashboard'); ?>"><i class="fa fa-home"></i> Home</a></li>
          <li class="active"><?= isset($page_title) && $page_title!=""?$page_title:''; ?></li>
        </ol>
      <?php endif; ?>
        <div class="alert_area">
            <?php $this->load->view('admin/inc/success_msg'); ?>
        </div>
      
    </section>
    
    <!-- Main content -->
    <section class="content">

