




<div class="kt-content  kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor" id="kt_content">
  
            <!-- begin:: Content Head -->
            <div class="kt-subheader  kt-grid__item" id="kt_subheader">
              <div class="kt-container  kt-container--fluid ">
                <div class="kt-subheader__main">
                  <h3 class="kt-subheader__title"><a href="<?php echo base_url() ?>Dashboard/"><?php echo $this->lang->line('dashboard'); ?></a></h3>
                  <span class="kt-subheader__separator kt-subheader__separator--v"></span>
                  <span class="kt-subheader__desc"><a href="<?php echo base_url() ?>language/"><?php echo $this->lang->line('language'); ?></a></span>
                </div>
              </div>
          </div>

        <div class="row">
     <div class="col-md-12">
<div  style="float:right">
  <?php  if(get_ap('lang_add',$this->operator_id)==1){ ?>
       
  <div  style="margin-left:10px"><a href="<?= base_url()?>/<?=$this->thispage?>/add/" class="btn btn-block btn-primary"  style="margin-bottom:5px"><i class="icon-pencil  icon-white"> </i><?php echo $this->lang->line('add') ?> <?php echo $this->lang->line('language') ?></a> 	</div>
<?php } ?>
        </div>   </div>
    </div>
  
  <div class="row">
    <!-- Main content -->
   
      <div class="row">
        <div class="col-md-12">
          <div class="box">
            <div class="box-header with-border">
              <h3 class="box-title"><?php echo $this->lang->line('language') ?> <?php echo $this->lang->line('list') ?></h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <table class="table table-bordered">
                <tr>
                  <th><?php echo $this->lang->line('sno') ?></th>
                  <th><?php echo $this->lang->line('english') ?></th>
                  <th><?php echo $this->lang->line('arabic') ?></th>
                  <th><?php echo $this->lang->line('label') ?></th>
                  <th><?php echo $this->lang->line('action') ?></th>
                     
                    <?php $count=0; foreach($result as $row){?>
                <tr>
                    <td><?php echo $count +=1; ?></td>
                    <td><?php echo $row->english ;?></td>
                    <td><?php echo $row->arabic ;?></td>
                    <td> <?php echo $row->label ;?></td>
                     <td>
                    <?php  if(get_ap('lang_edit',$this->operator_id)==1){ ?>
                      <a  class="update btn btn-sm btn-warning pull-right" href="<?= base_url(''.$this->thispage.'/edit/'.$row->id)?>"><i class="material-icons"><?php echo $this->lang->line('edit') ?></i></a>
                    <?php }  if(get_ap('lang_del',$this->operator_id)==1){ ?>
                      <button  class=" m-1 mr-1 btn btn-sm btn-warning pull-right" style="margin-right:5px;" onclick="alertfunction(<?php echo $row->id ?>)"><i class="fa fa-trash"></i><?php echo $this->lang->line('delete') ?></button>
                    <?php }?>
                    </td>
                </tr>
              <?php } ?>
              </table>
            </div>
            <!-- /.box-body -->
                       <?php if($all_count>1): ?>
        <div class="box-footer clearfix">
              <ul class="pagination pagination-sm no-margin pull-right">
                  
   <?php for($count=1;$count<$all_count;$count++):?>
                <li><a href="<?= base_url(''.$this->thispage.'/all/'.$count); ?>"><?=$count?></a></li>
          
          <?php endfor; ?>
              </ul>
            </div>
                <?php endif; ?>   
          </div>
          <!-- /.box -->

          
          <!-- /.box -->
        </div>
     </div>
      </div>
      <!-- /.row -->
    
<script>function alertfunction(id) { 
  var result= confirm("Are You Confirm!")
  if(result){
    window.location.href = "<?= base_url(''.$this->thispage.'/delete/')?>" + id;

  }
  
}</script>
