 <div class="content-wrapper">
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0 text-dark">All Subscribers</h1>
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="<?php echo base_url() ?>admin/admin/dashboard">Dashboard</a></li>
              <li class="breadcrumb-item"><a href="#">Report</a></li>
              <li class="breadcrumb-item active">All Subscribers</li>

            </ol>
          </div>
        </div>
      </div>
    </div>
    <section class="content">
      <div class="container-fluid">
        <div class="card card-default">
          <div class="card-header">
            <h3 class="card-title">View All Subscribers</h3>
          </div>
            <div class="card-body">
              <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th>id</th>
                  <th>Email ID</th>
                  <th>Date</th>
                  <th>Email</th>
                </tr>
                </thead>
                <tbody>
                <?php $i=1; 
                foreach ($all_users as $key => $user):
                ?>
                <tr>
                  <td><?php echo $i ?></td>
                  <td><?php echo $user->user_email ?></td>
                  <td><?php echo date('d-m-Y', strtotime($user->created_at)) ?></td>
                  <td><a href="<?php echo base_url(); ?>/admin/email/send_email/<?php echo $user->user_id; ?>/2" class="btn btn-success btn-xs"><i class="fa fa-envelope" aria-hidden="true"></i> Send</a></td>
                </tr>
                <?php $i++; ?>
                <?php endforeach; ?>
                </tbody>
              </table>
            </div>
          </div>
      </div>
    </section>
  </div>
  