<?php //print_r($usertype);exit; ?>
    <section class="content-header">
      <h1>
        Languages
      </h1>
      <ol class="breadcrumb">
        <li><a href="<?php echo base_url().'admin';?>"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active">List</li>
      </ol>
    </section>

    <section class="content">
      <div class="row">
        <?php echo $this->utility->showMsg();?>
        <div class="col-xs-12">
          <div class="box">
            <div class="box-header">
              <h3 class="box-title">Management</h3>
              <?php if($this->uri->segment(3)!='expiredusers'){ ?>
                <a class="btn btn-primary margin-right pull-right" href="<?php echo base_url()?>admin/language/add">Add</a>
			        <?php } ?>
              </div>
               
              <div></div>
            <!-- /.box-header -->
            <div class="box-body">
              <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th>Name</th>
                  <th>Action</th>
                 
                </tr>
                </thead>
                 <?php if(count($languages)>0)
                {?>
                <tbody>
               <?php
                $i=1;
                foreach ($languages as $data) 
                {
                ?>
                <tr>
                    <td><?php echo $data['name']; ?></td>
                    <td>
                      <?php if($data['visible']==1){ ?>
                        <a href="<?php echo base_url();?>admin/language/visible/<?php echo base64_encode($data['id']);?>/2" title="Visible" onclick="return confirm('Are you sure to invisible ?');"><span class="fa fa-eye"></span></a>
                      <?php } else { ?>
                        <a href="<?php echo base_url();?>admin/language/visible/<?php echo base64_encode($data['id']);?>/1" title="Invisible" onclick="return confirm('Are you sure to visible ?');"><span class="fa fa-eye-slash"></span></a>
                      <?php } ?>
                    </td> 
                </tr>

               <?php $i++; } ?>

                </tbody>
                <?php } ?>
                <tfoot>
               
                </tfoot>
              </table>
              
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->
    </section>
    

    
<script>
  $(function () {
    $("#example1").DataTable();
  });
</script>