<!DOCTYPE html>
<html lang="en">
  <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" type="image/ico" sizes="16x16" href="<?php echo  base_url();?>admin-assets/images/favicon.ico">
    
    <title>Plex | Admin Panel</title>

    <link href="<?php echo  base_url();?>admin-assets/node_modules/toast-master/css/jquery.toast.css" rel="stylesheet">
    <link href="<?php echo  base_url();?>admin-assets/css/pages/dashboard1.css" rel="stylesheet">
    <link href="<?php echo  base_url();?>admin-assets/css/style.min.css" rel="stylesheet">
    <link href="<?php echo  base_url();?>admin-assets/css/pages/tab-page.css" rel="stylesheet">
    <link href="<?php echo  base_url();?>admin-assets/node_modules/switchery/dist/switchery.min.css" rel="stylesheet" />
    <link href="<?php echo base_url(); ?>admin-assets/datatables/css/dataTables.bootstrap.min.css" rel="stylesheet">
    
    <style>
    .skin-green .topbar {
      background: #bb0c0c;
    }

    .topbar .top-navbar .profile-pic span {
      color: white;
    }

    .navbar-brand span{
      font-size: 21px;
      font-weight: 600;
    }

    .logo_abs{
      position: absolute;
      left: 0px;
      width: 221px;
      height: 67px;
      top: 0px;
      right: 0px;
    }
    
    .logo_sm{
      max-height: 60px; width: 71px;
    }
    
    .error{
      color:#F00; margin:2px 0px; font-size:13px; display:none;
    }

    .form-control{
      border: solid;
      border-color: #BCB7B7;
      text-transform: none;
    }

    .form-card-header{
      background-color: #bb0c0c;
    }
    
    .bg-info {background-color: #e8b720!important;}
    .text-white{font-weight: bold; font-size: 20px;}
    .label{
      width: 100px;
      display: inline-block;
      text-align: center;
      font-size: smaller;
      padding-top: 8px;
      height: 30px;
    }
    
    .area-info{
      text-align: center;
    }
    
    .icon-menu{
      color:#fdfdfe;
    }

    .submenu-name{
      font-size:small;
    }

    </style>
    <link href="https://cdn.jsdelivr.net/npm/gijgo@1.9.10/css/gijgo.min.css" rel="stylesheet" type="text/css" />
    <script src="<?php echo  base_url();?>admin-assets/node_modules/jquery/jquery-3.2.1.min.js"></script>
    <script type="text/javascript"> var CI_ROOT = "<?php echo base_url(); ?>"; </script>
  </head>
  <body class="skin-green fixed-layout">
    
    <!-- ============================================================== -->
    <!-- Preloader - style you can find in spinners.css -->
    <!-- ============================================================== -->
    <div class="preloader">
      <div class="loader">
        <div class="loader__figure"></div>
        <p class="loader__label">Loading Please Wait...</p>
      </div>
    </div>
    
    <?php
    $admin = $this->session->userdata('admin');
      $id = $admin['id'];
      $name = $admin['name'];
      $username = $admin['username'];
      $isAdmin = $admin['isAdmin'];
      $status = $admin['status'];
      $arr = $admin['rights'];
      $rights = explode(",",$arr);
    ?>
    
    <div id="main-wrapper">
      
      <!-- ============================================================== -->
      <!-- Topbar header - style you can find in pages.scss -->
      <!-- ============================================================== -->
      
      <header class="topbar">
        <nav class="navbar top-navbar navbar-expand-md navbar-dark">
          <!-- ============================================================== -->
          <!-- Logo -->
          <!-- ============================================================== -->
          
          <div class="navbar-header">
            <!-- <a class="navbar-brand" href="<?php echo base_url('admin/dashboard')?>">
              <b><img src="<?php echo  base_url();?>admin-assets/images/logo_plex.jpg" alt="plex logo" class="light-logo logo_sm" /></b>
              <span><img src="<?php echo  base_url();?>admin-assets/images/logo_plex.jpg" class="light-logo logo_abs" alt="plex logo" /></span>
            </a> -->

            <a class="navbar-brand" href="<?php echo base_url('admin/dashboard')?>">
              <b>
                <img src="<?php echo base_url();?>admin-assets/images/logo_sm.png" class="light-logo logo_sm" />
              </b> 
              <span>
                <img src="<?php echo  base_url();?>admin-assets/images/plex_logo.jpg" class="light-logo logo_abs"/>
              </span>
            </a>
          </div> 
          
          <div class="navbar-collapse ">
            <ul class="navbar-nav mr-auto ">
              <!-- This is  -->
              <li class="nav-item"> <a class="nav-link nav-toggler d-block d-sm-none waves-effect waves-dark" href="javascript:void(0)"><i class="ti-menu"></i></a> </li>
              <li class="nav-item"> <a class="nav-link sidebartoggler d-none d-lg-block d-md-block waves-effect waves-dark" href="javascript:void(0)"><i class="icon-menu"></i></a> </li>
            </ul>
            
            <!-- ============================================================== -->
            <!--              Start User Profile -->
            <!-- ============================================================== -->
            <ul class="navbar-nav my-lg-0">
              <li class="nav-item dropdown u-pro">
                <a class="nav-link dropdown-toggle waves-effect waves-dark profile-pic" href="javascript:void(0)" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                  <img src="<?php echo  base_url();?>admin-assets/images/dummy-pic.png" alt="user" class="">
                  <span class="hidden-md-down"><strong><?php echo $name; ?></strong> &nbsp;
                  <i class="fa fa-angle-down"></i></span>
                </a>
                <div class="dropdown-menu dropdown-menu-right animated flipInY">
<!--                   <a href="javascript:void(0)" class="dropdown-item"><i class="ti-user"></i> My Profile</a>
                  <div class="dropdown-divider"></div>-->
                  <a href="<?php echo base_url('admin/changepassword')?>" class="dropdown-item"><i class="ti-settings"></i> CHANGE PASSWORD</a> 
                  <div class="dropdown-divider"></div>
                  <?php echo anchor('admin/logout', '<i class="fa fa-power-off"></i> LOGOUT',array('class'=>'dropdown-item')); ?>
                </div>
              </li>
            </ul>
            <!-- ============================================================== -->
            <!--              End User Profile -->
            <!-- ============================================================== -->
          </div>
        </nav>
      </header>
      
      <!-- ============================================================== -->
      <!-- End Topbar header -->
      <!-- ============================================================== -->
      
      
      <!-- ============================================================== -->
      <!-- Left Sidebar - style you can find in sidebar.scss  -->
      <!-- ============================================================== -->
      <aside class="left-sidebar">
        <div class="scroll-sidebar">
          <nav class="sidebar-nav">
            <ul id="sidebarnav">
              
              <li>
                <a class=" waves-effect waves-dark" href="<?php echo base_url('admin/dashboard')?>" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">DASHBOARD</span></a>
              </li>
              
              <!-- MANAGE ADMIN -->
              <?php if($isAdmin == 0) { ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">MANAGE ADMIN</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a class="submenu-name" href="<?php echo base_url('admin/list')?>"><span class="submenu-name">LIST ADMIN</span></a></li>
                </ul>
              </li>
              <?php } ?>
              
              <!-- MANAGE BANNER -->
              <?php if(in_array('1.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">MANAGE BANNER</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a class="submenu-name" href="<?php echo base_url('banner/list')?>"><span class="submenu-name">LIST BANNER</span></a></li>
                </ul>
              </li>
              <?php } ?> 
		
		 <!-- MANAGE UPCOMING EVENTS -->
		<?php if(in_array('18.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">UPCOMING EVENTS</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('advertise/list')?>"><span class="submenu-name">LIST EVENTS</span></a></li>
                </ul>
              </li>
              <?php } ?> 
              
              <!-- MANAGE ADVERTISE ENQUIERY -->
              <?php if(in_array('18.4', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">ADVERTISE ENQUIRY</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('advertise-enquiry/list')?>"><span class="submenu-name">LIST ENQUIRIES</span></a></li>
                </ul>
              </li>
              <?php } ?> 
              
              <!-- MANAGE TENDERS -->
              <?php if(in_array('9.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">TENDERS</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('tenders/list')?>"><span class="submenu-name">LIST TENDERS</span></a></li>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE BUSINESS / TRADE LEADS -->
              <?php if(in_array('10.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">EXPORT OPPORTUNITIES</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('business/list')?>"><span class="submenu-name">LIST ALL</span></a></li>
                </ul>
              </li>
              <?php } ?> 
              
              <!-- MANAGE COA -->
              <?php if(in_array('3.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">COA</span></a>
                <ul aria-expanded="false" class="collapse">
                  <?php if(in_array('3.2', $rights)){ ?>
                  <li><a class="submenu-name" href="<?php echo base_url('coa/designations')?>"><span class="submenu-name">DESIGNATIONS</span></a></li>
                  <?php } ?>
                  <li><a href="<?php echo base_url('coa/list')?>"><span class="submenu-name">LIST COA</span></a></li>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE NOMINEES -->
              <?php if(in_array('24.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">GOV NOMINEES</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('nominees/list')?>"><span class="submenu-name">LIST NOMINEES</span></a></li>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE SECRETARIAT -->
              <?php if(in_array('4.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">SECRETARIAT</span></a>
                <ul aria-expanded="false" class="collapse">
                  <?php if(in_array('4.2', $rights)){ ?>
                  <li><a class="submenu-name" href="<?php echo base_url('secretariat/designations')?>"><span class="submenu-name">DESIGNATIONS</span></a></li>
                  <?php } ?>
                  <li><a href="<?php echo base_url('secretariat/list')?>"><span class="submenu-name">LIST SECRETARIAT</span></a></li>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE MEMORANDUM -->
              <?php if(in_array('5.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">MEMORANDUM</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('memorandum/list')?>"><span class="submenu-name">LIST MEMORANDUM</span></a></li>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE ANNUAL REPORT -->
              <?php if(in_array('6.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">ANNUAL REPORT</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('report/list')?>"><span class="submenu-name">LIST REPORT</span></a></li>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE YEAR MASTER -->
              <?php if(in_array('13.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">YEARS MASTER</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('years/list')?>"><span class="submenu-name">LIST YEARS</span></a></li>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE EXHIBITIONS -->
              <?php if(in_array('12.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">EXHIBITIONS</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('exhibitions/list')?>"><span class="submenu-name">LIST EXHIBITIONS</span></a></li>
                  <?php if(in_array('12.4', $rights)){ ?>
                  <li><a href="<?php echo base_url('exhibitions-enquiry/list')?>"><span class="submenu-name">LIST ENQUIRIES</span></a></li>
                  <?php } ?>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE SEMINARS -->
              <?php if(in_array('15.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">SEMINARS</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('seminars/list')?>"><span class="submenu-name">LIST SEMINARS</span></a></li>
                  <?php if(in_array('15.4', $rights)){ ?>
                  <li><a href="<?php echo base_url('seminar-enquiry/list')?>"><span class="submenu-name">LIST ENQUIRIES</span></a></li>
                  <?php } ?>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE TRADE DELEGATION -->
              <?php if(in_array('14.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">TRADE DELEGATION</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('trade-delegation/list')?>"><span class="submenu-name">TRADE DELEGATIONS</span></a></li>
                  <?php if(in_array('14.4', $rights)){ ?>
                  <li><a href="<?php echo base_url('trade-delegation-enquiry/list')?>"><span class="submenu-name">LIST ENQUIRIES</span></a></li>
                  <?php } ?>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE BSM / RBSM -->
              <?php if(in_array('22.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">BSM / RBSM</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('bsm/list')?>"><span class="submenu-name">LIST BSM / RBSM</span></a></li>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE AWARDS -->
              <?php if(in_array('11.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">AWARDS</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('awards/list')?>"><span class="submenu-name">LIST AWARDS</span></a></li>
                </ul>
              </li>
              <?php } ?> 
              
              
               <!---ADDED BY SHEETAL 20/NOV/2019-->
			   <!-- MANAGE MAGAZINE ---->
              <?php if(in_array('11.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">E-MAGAZINE</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('magazine/list')?>"><span class="submenu-name">LIST E-MAGAZINE</span></a></li>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE FAQ -->
              <?php if(in_array('7.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">FAQ</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('faq/list')?>"><span class="submenu-name">LIST FAQ</span></a></li>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE CIRCULARS -->
              <?php if(in_array('20.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">CIRCULARS</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('circulars/list')?>"><span class="submenu-name">LIST CIRCULARS</span></a></li>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE STATISTICS -->
              <?php if(in_array('8.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">STATISTICS</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('statistics/list')?>"><span class="submenu-name">LIST STATISTICS</span></a></li>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE GOV REPRESENTATION -->
              <?php if(in_array('19.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">GOV REPRESENTATION</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('government/list')?>"><span class="submenu-name">LIST ALL</span></a></li>
                </ul>
              </li>
              <?php } ?> 
                
              <!-- MANAGE ARTICLES -->
              <?php if(in_array('21.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">ARTICLES</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('articles/list')?>"><span class="submenu-name">LIST ARTICLES</span></a></li>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE PRESS RELEASE -->
              <?php if(in_array('25.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">PRESS RELEASE</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('press-releases/list')?>"><span class="submenu-name">LIST PRESS RELEASES</span></a></li>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE MESSAGE -->
              <?php if(in_array('16.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">MESSAGE</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('message/list')?>"><span class="submenu-name">LIST MESSAGES</span></a></li>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE TRADE ENQUIRY -->
              <?php if(in_array('17.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">TRADE ENQUIRY</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('trade-enquiry/list')?>"><span class="submenu-name">LIST ENQUIRY</span></a></li>
                </ul>
              </li>
              <?php } ?> 
                
              <!-- MANAGE CAREERS -->
              <?php if(in_array('23.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">CAREERS</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('careers/list')?>"><span class="submenu-name">LIST CAREERS</span></a></li>
                  <?php if(in_array('23.4', $rights)){ ?>
                  <li><a href="<?php echo base_url('careers-enquiry/list')?>"><span class="submenu-name">LIST ENQUIRIES</span></a></li>
                  <?php } ?>
                </ul>
              </li>
              <?php } ?> 

              <!-- MANAGE NEWSLETTER -->
              <?php if(in_array('2.1', $rights)){ ?>
              <!-- <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">NEWSLETTER</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('newsletter/list')?>"><span class="submenu-name">LIST SUBSCRIBERS</span></a></li>
                </ul>
              </li> -->
              <?php } ?>
              
              <!-- MANAGE AUDIT -->
              <?php if(in_array('23.1', $rights)){ ?>
              <li>
                <a class="has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-layout-grid2"></i><span class="hide-menu">AUDIT LOG</span></a>
                <ul aria-expanded="false" class="collapse">
                  <li><a href="<?php echo base_url('audit/list')?>"><span class="submenu-name">LIST AUDIT</span></a></li>
                </ul>
              </li>
              <?php } ?>
            </ul>
          </nav>
        </div>
      </aside>
      <!-- ============================================================== -->
      <!-- End Left Sidebar - style you can find in sidebar.scss  -->
      <!-- ============================================================== -->
      
      
      <!-- ============================================================== -->
      <!-- Start Page wrapper  -->
      <!-- ============================================================== -->
      <div class="page-wrapper">
        <div class="container-fluid">
          <?php
            if(!isset($module)){
              $module = $this->uri->segment(1);
            }
            if(!isset($viewFile)){
              $viewFile = $this->uri->segment(2);
            }
            if( $module != '' && $viewFile != '' ){
              $path = $module. '/' . $viewFile;
              echo $this->load->view($path);
            }
          ?>
        </div>
      </div>
      <!-- ============================================================== -->
      <!-- End Page wrapper  -->
      <!-- ============================================================== -->
      
      <div class="clearfix" style="height:50px;"></div>
      
      <!-- ============================================================== -->
      <!-- Start footer -->
      <!-- ============================================================== -->
      <footer class="footer">plex @ 2019</footer>
      <!-- ============================================================== -->
      <!-- End footer -->
      <!-- ============================================================== -->
    </div>
    
    <!-- ============================================================== -->
    <!-- All Jquery -->
    <!-- ============================================================== -->
    
    <script src="<?php echo  base_url();?>admin-assets/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
    <script src="<?php echo  base_url();?>admin-assets/node_modules/popper/popper.min.js"></script>
    <script src="<?php echo  base_url();?>admin-assets/js/perfect-scrollbar.jquery.min.js"></script>
    <script src="<?php echo  base_url();?>admin-assets/js/waves.js"></script>
    <script src="<?php echo  base_url();?>admin-assets/js/sidebarmenu.js"></script>
    <script src="<?php echo  base_url();?>admin-assets/js/custom.min.js"></script>
    <script src="<?php echo  base_url();?>admin-assets/node_modules/raphael/raphael-min.js"></script>
    <script src="<?php echo  base_url();?>admin-assets/node_modules/jquery-sparkline/jquery.sparkline.min.js"></script>
    <script src="<?php echo  base_url();?>admin-assets/node_modules/toast-master/js/jquery.toast.js"></script>
    <script src="<?php echo  base_url();?>admin-assets/js/dashboard1.js"></script>
    <script src="<?php echo  base_url();?>admin-assets/node_modules/switchery/dist/switchery.min.js"></script>
    
    <script src="<?php echo base_url('admin-assets/datatables/js/jquery.dataTables.min.js')?>"></script>
    <script src="<?php echo base_url('admin-assets/datatables/js/dataTables.bootstrap.min.js')?>"></script>
    <script src="<?php echo  base_url();?>admin-assets/js/main.js"></script>
    <script src="<?php echo base_url(); ?>public/custom/js/sweetalert.min.js"></script>
    <!-- date picker -->
    <script src="https://cdn.jsdelivr.net/npm/gijgo@1.9.10/js/gijgo.min.js" type="text/javascript"></script>

    <?php if(isset($scriptFile) && !empty($scriptFile)){ ?>
    <script src="<?php echo base_url(); ?>public/custom/js/<?php echo $scriptFile; ?>.js"></script>
    <?php } ?>

    <script>
      function callDeleteFunction(db_table,col,val,page){
          swal({
            title: "Are you sure?",
            text: "Once deleted, you will not be able to recover records !",
            icon: "warning",
            buttons: true,
            dangerMode: true,
          })
          .then((willDelete) => {
            if (willDelete) {
            $.ajax({
          type:'POST',
          data:{table:db_table, col:col, val:val},
          url:CI_ROOT+"admin/deleteAction",
          dataType: "json",
          beforeSend:function(){
            $("#preloader").show(); 
          },
          success:function(result){ 
            $("#preloader").hide(); 
            if(result.status == "success"){
              $.fn.dataTable.tables( { visible: true, api: true } ).ajax.reload(null, false); 
            }else if(result.status == "deny"){
              swal({
                title: "Request Denied",
                icon: "Error",
                text: "You are not allowed to delete record."
              });
            }
          }
        });
            }
          });
      }
    </script>
  </body>
</html>