<?php //print_r($usertype);exit; ?>
    <section class="content-header">
      <h1>
        Cron pay Members
      </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>
              
              </div>
               
              <div></div>
            <!-- /.box-header -->
            <div class="box-body">
              <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th>Email</th>
                  <th>Paid Date</th>
                  <th>Amount</th>
				  <th>CC Pan No.</th>
				  <th>CC Ref ID</th>
				  <th>Payment Error</th>
                  <th>Payment Status</th>
                  <!--<th>Action</th>-->
                 
                </tr>
                </thead>
                 <?php if(count($users)>0)
                {?>
                <tbody>
               <?php
                $i=1;
                foreach ($users as $data) 
                {
                ?>
                <tr>
                    <td><?php echo $data['email']; ?></td>
                   <td><?php echo $data['date']; ?></td>
					<td><?php echo number_format($data['amount']/100,2,',','.'); ?></td>
					<td><?php echo $data['card']; ?></td>
					<td><?php echo $data['cc_ref_id']; ?></td>
					<td><?php echo $data['error']; ?></td>
					<td><?php echo $data['payment_status']; ?></td>
                </tr>

               <?php $i++; } ?>

                </tbody>
                <?php } ?>
                <tfoot>
               
                </tfoot>
              </table>
              <?php if($this->uri->segment(3)!='expiredusers'){ ?>
                <div class="custom_pagination"><?php echo $link; ?></div>
              <?php } ?>  
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->
    </section>
    
    
<script>
  $(function () {
    $("#example1").DataTable();
  });
</script>