<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"><?php echo $this->lang->line('main') ?></span>
                </div>
              </div>
            </div>
        <div class="row">
     <div class="col-md-12">
      <?php if(get_ap('bill_add',$this->operator_id)==1){ ?>
<div  style="float:right"><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') ?></a>  </div>
<?php } ?>
        </div>   </div>
    </div>
  <div class="">
      <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('invoices') ?> </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('name') ?></th>
                  <th><?php echo $this->lang->line('email') ?></th>
                  <th><?php echo $this->lang->line('approve') ?></th>
                </tr>
                <?php $i=0;  $count=0; foreach($all_groups as $row):?>
                <tr>
                        <td><?= ++$i; ?></td>
                        <td><?= $row['name']; ?></td>
                        <td><?= $row['email']; ?></td>
                        <td>
                          <a href="<?php base_url() ?>approve_status/<?= $row['id']; ?>/<?= $row['approve_status']; ?>">
                            <?php if ($row['approve_status'] ==1 ) { ?>
                              <button class="btn btn-success"><?php echo $this->lang->line('de-active') ?></button>
                            <?php }else { ?> 
                               <button class="btn btn-warning"><?php echo $this->lang->line('active') ?></button>
                            <?php } ?>
                          </a>
                      </td>
                </tr>
                    <?php endforeach; ?>
                
              </table>
            </div>
          </div>
          <!-- /.box -->

          
          <!-- /.box -->
        </div>
     </div>
      </div>
      <!-- /.row -->
  
