golf_backend/app/Views/transactions_list.php
2023-05-12 14:39:53 +05:30

68 lines
3.8 KiB
PHP

<!-- start page title -->
<div class="row">
<div class="col-12">
<div class="page-title-box page-title-box-alt">
<h4 class="page-title">Credit points purchase and Transaction Details</h4>
<div class="page-title-right">
<ol class="breadcrumb m-0">
<!-- <li class="breadcrumb-item">
<a href="<?= base_url() ?>credits_pack_add">
<button type="button" class="btn btn-primary waves-effect waves-light">Add</button>
</a>
</li> -->
<!-- <li class="breadcrumb-item"><a href="javascript: void(0);">Tables</a></li>
<li class="breadcrumb-item active">Datatables</li> -->
</ol>
</div>
</div>
</div>
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<!-- <h4 class="header-title">Buttons example</h4>
<p class="text-muted font-13 mb-4">
</p> -->
<table id="datatable-buttons" class="table table-striped dt-responsive nowrap w-100">
<thead>
<tr>
<th>Date</th>
<th>Purchased by</th>
<th>Points</th>
<th>Cost</th>
<th>Pack / Indidual</th>
</tr>
</thead>
<tbody>
<?php foreach ($creditsData as $row)
{ ?>
<tr>
<td><?php echo $row['created_at'];?></td>
<td><?php echo $row['member_name'];?></td>
<td><?php echo $row['credit_points'];?></td>
<td><?php echo $row['cost'];?></td>
<td><?php echo $row['package_name'];?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div> <!-- end card body-->
</div> <!-- end card -->
</div><!-- end col-->
</div>
<!-- end row-->