<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Callbacks</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="<?php echo base_url(); ?>admin">Home</a></li>
<li class="breadcrumb-item active">Callbacks</li>
</ol>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Main content -->
<section class="content">
<!-- Default box -->
<div class="card">
<div class="card-header">
<h3 class="card-title">All Callbacks</h3>
<div class="card-tools">
<!-- <a href="<?php echo base_url(); ?>admin" class="btn btn-sm btn-primary"><i class="fas fa-plus"></i> #</a> -->
</div>
</div>
<div class="card-body">
<?php if ($callbacks) : ?>
<table id="lc-default-dt" class="table table-bordered table-striped">
<thead>
<tr>
<th>#</th>
<th>Callback Value</th>
<th>Callback Received On</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php foreach ($callbacks as $callback) : ?>
<tr>
<td><?php if ($callback['callback_is_read'] == 0) { ?><span class="badge badge-warning">New</span> <?php } else { ?> <span class="badge badge-secondary">Read</span> <?php } ?></td>
<td><?php echo $callback['callback_value']; ?></td>
<td><?php echo $callback['callback_received_on']; ?></td>
<td><a href="<?php echo base_url(); ?>admin/callback/<?php echo $callback['id']; ?>">View</a></td>
</tr>
<?php endforeach; ?>
</tfoot>
</table>
<?php else : ?>
No Callbacks Yet!
<?php endif; ?>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->