
<?php $this->load->view('site/layout');  ?>
  <link href="<?php echo base_url() ?>public/plugins/custom/datatables/datatables.bundle.css" rel="stylesheet" type="text/css" />
  
<link href="<?php echo base_url() ?>public/css/custom_css.css" rel="stylesheet" type="text/css" />

    <?php $this->load->view('site/navbar');  ?>
<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="kt-container  kt-container--fluid  kt-grid__item kt-grid__item--fluid">
              <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">
                      <?php echo $this->lang->line('view-reports'); ?>
                    </h3>
                  </div> <div class="kt-portlet__head-toolbar">
                    <div class="kt-portlet__head-wrapper">
                      <div class="kt-portlet__head-actions">
                        &nbsp;
                       <a href="<?= base_url()?>/users/rep/<?=$id?>/1/ok" class="btn btn-brand btn-elevate btn-icon-sm">
                          <i class="fa fa-eye"></i>
                            <?php echo $this->lang->line('entry-and-exit') ?>
                        </a>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="kt-portlet__body">

                  <!--begin: Datatable -->
                  <table class="table table-bordered table-hover" id="list_table">
                    <thead>
                      <tr>
                         <th><?php echo $this->lang->line('sno') ?></th>
                 <th><?php echo $this->lang->line('reports') ?></th>
                  <th><?php echo $this->lang->line('aluser') ?></th>
                        <th>time</th>
                      </tr>
                    </thead>
                    <tbody>     <?php $count=1; foreach($all_groups as $row){?>
                
                   <tr>
                      <td><?php echo $count++; ?></td>
                      <td><?= $row['comment']; ?> </td>
                      <td><?= $row['user']; ?> </td>
                      <td><?= $this->booking->tissme_show($row['date']); ?></td>
                    </tr><?php } ?>
                    </tbody>
                  </table>

                  <!--end: Datatable -->
                </div>
              </div>
            </div>
  <?php $this->load->view('site/footer_2'); ?>  

    <!-- <script src="<?php echo base_url() ?>public/plugins/global/plugins.bundle.js" type="text/javascript"></script> -->
    <!-- <script src="<?php echo base_url() ?>public/js/scripts.bundle.js" type="text/javascript"></script> -->

    <!--end::Global Theme Bundle -->

    <!--begin::Page Vendors(used by this page) -->
    <!-- <script src="<?php echo base_url() ?>public/plugins/custom/datatables/datatables.bundle.js" type="text/javascript"></script> -->

    <!--end::Page Vendors -->

    <!--begin::Page Scripts(used by this page) -->
    <!--<script src="<?php echo base_url() ?>public/js/pages/crud/datatables/basic/basic.js" type="text/javascript"></script>  -->

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

  }
  
}
 $(function () {
        $("#list_table").DataTable({dom: 'Bfrtip',
            destroy: true,
            buttons: [
                {
                    extend: 'excelHtml5',
                    charset: 'UTF-16LE',
                    fieldSeparator: '\t',
                    bom: true
                },
                {
                    extend: 'csvHtml5',
                    charset: 'UTF-16LE',
                    fieldSeparator: '\t',
                    bom: true
                },
                {
                    extend: 'pdfHtml5',
                    charset: 'UTF-16LE',
                    fieldSeparator: '\t',
                    bom: true
                },
                {
                    extend: 'print',
                    autoPrint: false,
                    footer: true
                }

            ]
        });
//            buttons: [
//                'copyHtml5',
//                'excelHtml5',
//                'csvHtml5',
//                'pdfHtml5'
//            ]
    });


</script>