        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="clearfix"></div>
            <div class="row">

              <div class="col-md-12 col-sm-12 col-xs-12" id="def">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>Admission</h2>
                    <ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></li>
                    </ul>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                      
<?php if ($this->session->flashdata('succes_msg')): ?>
<div class="alert alert-success">
<?php echo $this->session->flashdata('succes_msg'); ?>
</div>
<?php endif ?>

<?php if ($this->session->flashdata('error_msg')): ?>
<div class="alert alert-danger">
<?php echo $this->session->flashdata('error_msg'); ?>
</div>
<?php endif ?>

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

            </div>


            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  
                  <div class="x_content">
                    
                    <table class="table table-bordered table-hover"  id="datatable">
                        <thead>
                            <tr>
                              <th>#</th>
                              <th>Description</th>
                              <th>Action</th>
                            </tr>
                          </thead>

                          <tbody class="center">
                          <?php $i=1; 
                          if(!empty($admissions))
                          {
                          foreach ($admissions as $key => $value){ ?>
                            <tr>
                              <td><?php echo $i++; ?></td>
                             <td><img src="<?php echo base_url().$value['img'];?>" width="200px" height="100px"></td>
                             <td><?php
                                  if($edit_delete['edit']) {?>
                                    <a href="<?php echo base_url();?>web/edit_admissions/<?php echo $value['id'];?>" ><i class="fa fa-edit"></i></a>  
                               <?php }  ?></td>
                            </tr>
                            <?php }} ?>
                          </tbody>
                    </table>                    
                  </div>
                </div>
              </div>

            </div>
          </div>
        </div>
        <!-- /page content -->

        <!-- footer content -->
        <footer>
          <div class="pull-right">
            
          </div>
          <div class="clearfix"></div>
        </footer>
        <!-- /footer content -->
      </div>
    </div>

   <script src="<?php echo base_url(); ?>assets/vendors/jquery/dist/jquery.min.js"></script>
        <script src="<?php echo base_url(); ?>assets/vendors/select2/dist/js/select2.full.min.js"></script>


    
  <script>
window.setTimeout(function() {
$(".alert").fadeTo(500, 0).slideUp(500, function(){
    $(this).remove(); 
});
}, 3000);
        </script>


  </body>
</html>