
<style> .kt-datatable.kt-datatable--default > .kt-datatable__table > .kt-datatable__head .kt-datatable__row > .kt-datatable__cell{ padding:0px!important ;}</style>



<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('products'); ?></span>
                </div>
                
              </div>
            </div>
</div>
<!-- 
        <div class="row">
     <div class="col-md-12">
<div  style="float:right">
        <?php if(get_ap('product_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-a-product') ?></a> 	</div>
     <?php } ?>
        </div>   </div>
    </div> -->
  <div class="kt-portlet kt-portlet--mobile">
                <div class="kt-portlet__head kt-portlet__head--lg">
                  <div class="kt-portlet__head-label">
                    <span class="kt-portlet__head-icon">
                      <i class="kt-font-brand flaticon2-line-chart"></i>
                    </span>
                    <h3 class="kt-portlet__head-title">
                      Basic
                    </h3>
                  </div>
                  <div class="kt-portlet__head-toolbar">
                    <div class="kt-portlet__head-wrapper">
                      <div class="kt-portlet__head-actions">
                        <div class="dropdown dropdown-inline">
                          <button type="button" class="btn btn-default btn-icon-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <i class="la la-download"></i> Export
                          </button>
                          <div class="dropdown-menu dropdown-menu-right">
                            <ul class="kt-nav">
                              <li class="kt-nav__section kt-nav__section--first">
                                <span class="kt-nav__section-text">Choose an option</span>
                              </li>
                              <li class="kt-nav__item">
                                <a href="#" class="kt-nav__link">
                                  <i class="kt-nav__link-icon la la-print"></i>
                                  <span class="kt-nav__link-text">Print</span>
                                </a>
                              </li>
                              <li class="kt-nav__item">
                                <a href="#" class="kt-nav__link">
                                  <i class="kt-nav__link-icon la la-copy"></i>
                                  <span class="kt-nav__link-text">Copy</span>
                                </a>
                              </li>
                              <li class="kt-nav__item">
                                <a href="#" class="kt-nav__link">
                                  <i class="kt-nav__link-icon la la-file-excel-o"></i>
                                  <span class="kt-nav__link-text">Excel</span>
                                </a>
                              </li>
                              <li class="kt-nav__item">
                                <a href="#" class="kt-nav__link">
                                  <i class="kt-nav__link-icon la la-file-text-o"></i>
                                  <span class="kt-nav__link-text">CSV</span>
                                </a>
                              </li>
                              <li class="kt-nav__item">
                                <a href="#" class="kt-nav__link">
                                  <i class="kt-nav__link-icon la la-file-pdf-o"></i>
                                  <span class="kt-nav__link-text">PDF</span>
                                </a>
                              </li>
                            </ul>
                          </div>
                        </div>
                        &nbsp;
                        <a href="#" class="btn btn-brand btn-elevate btn-icon-sm">
                          <i class="la la-plus"></i>
                          New Record
                        </a>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="kt-portlet__body">

                  <!--begin: Datatable -->
                  <table class="table table-striped- table-bordered table-hover table-checkable dataTable no-footer dir-inline" id="kt_table_1">
                    <thead>
                      <tr>
                        <th><?php echo $this->lang->line('sno') ?></th>
                        <th><?php echo $this->lang->line('the-name') ?></th>
                         <th><?php echo $this->lang->line('the-value') ?></th>
                         <th><?php echo $this->lang->line('status') ?></th>
                         <th ><?php echo $this->lang->line('note') ?></th>
                         <th ><?php echo $this->lang->line('attendance') ?></th>
                        <th><?php echo $this->lang->line('action') ?></th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr>
                       <?php $count=1; foreach($all_groups as $row){?>
                      <tr>
                           <td><?php echo $count++; ?></td>
                           <td><?= $row['name']; ?></td>
                          <td><?= $row['valuess']; ?></td>
                    <td><?php if($row['active']=='2')echo '<span class="btn btn-sm btn-danger" style="border-radius: 2rem;padding: 0.15rem 5px; color: #fff;!important">'. $this->lang->line('closed').'</span>'; else  echo '<span class="btn btn-sm btn-success" style="border-radius: 2rem;padding: 0.15rem 5px ;color: #fff;!important" >'.$this->lang->line('open').'</span>';?></td>
                      <td><?= $row['note']; ?> </td>
                     <td ><a href=""  ><button class="btn btn-sm btn-info" style="border-radius: 2rem;padding: 0.15rem 0.75rem; color: #ffffff;background: #5578eb;"><i class="kt-menu__link-icon flaticon-plus"></i>attendance</button></a></td>
                  <td>   
                <?php  if(get_ap('product_list',$this->operator_id)==1){ ?>
                <!-- <a  class="update btn btn-sm btn-success pull-right" href="<?= base_url(''.$this->thispage.'/show/'.$row['id'])?>"><i class="material-icons"><?php echo $this->lang->line('the-details') ?></i></a> --><div class="dropdown">
             
                  <a href="javascript:;" class="btn btn-sm btn-clean btn-icon btn-icon-md" title="Edit details">
                    <i class="la la-edit"></i>
                  </a>
                  <a href="javascript:;" class="btn btn-sm btn-clean btn-icon btn-icon-md" title="Delete">
                    <i class="la la-trash"></i>
                  </a>
                <?php } ?>
                    </td> 
                       <?php } ?>
                      </tr>
                      <tr>
                        <td>2</td>
                        <td>63629-4697</td>
                        <td>Indonesia</td>
                        <td>Cihaur</td>
                        <td>01652 Fulton Trail</td>
                        <td>Emelita Giraldez</td>
                        <td>Rosenbaum-Reichel</td>
                        <td>8/6/2017</td>
                        <td>6</td>
                        <td>3</td>
                        <td nowrap></td>
                      </tr>
                     
                    </tbody>
                  </table>

                  <!--end: Datatable -->
                </div>
              </div><!-- /.row -->
  
