golf_backend/app/Views/credits_pack_list.php
2023-06-20 13:51:47 +05:30

71 lines
4.4 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">Credits Package</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" class="table table-striped dt-responsive nowrap w-100">
<thead>
<tr>
<th>Pack Name</th>
<th>Pack Type</th>
<th>Credits</th>
<th>Cost</th>
<th>Description</th>
<th>Offer Label</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php foreach ($PackageData as $row)
{ ?>
<tr>
<td><?php echo $row['package_name'];?></td>
<td><?php echo $row['package_type'];?></td>
<td style="text-align: center;"><?php echo $row['credit'];?></td>
<td style="text-align: center;"><?php echo $row['cost'];?></td>
<td><?php echo $row['discription'];?></td>
<td><?php echo $row['offer_label'];?></td>
<!-- <td><?php if($row['is_active'] == 1){ echo "Active"; }else{ echo "In-Active"; }?></td> -->
<td><a href="<?= base_url() ?>credits_pack_edit/<?php echo md5($row['id']);?>"><i class="mdi mdi-lead-pencil" style="font-size:18px;"></a></td>
</tr>
<?php } ?>
</tbody>
</table>
</div> <!-- end card body-->
</div> <!-- end card -->
</div><!-- end col-->
</div>
<!-- end row-->