<style>.card .table td, .card .table th {padding-right: 1rem;padding-left: 1rem;}</style>
<table class="table table-bordered table-striped table-mailcard" id="data_Table">
	<thead>
		<tr>
			<th style="width:1% !important;">No</th>
			<th>Title</th>
			<th style="width:14%;text-align:center">Diskon Member</th>
			<th style="width:10%;text-align:center">Status</th>
			<th style="width:10%;text-align:center">Aksi</th>
		</tr>
	</thead>
	<tbody>
		<?php 
			$no = 1;
			foreach ($record as $row){
			
				if ($row['status'] == 1){ $aktif ='<i class="fa fa-check-circle text-success"></i>'; }else{ $aktif = '<i class="fa fa-minus-circle text-danger"></i>'; }
				echo "<tr><td>$no</td>
				<td><a class='btn-sm edit_member text-success' title='Edit Data' data-id='$row[id]' href='#'>$row[title]</a></td>
				<td class='text-center'>".rtrim(rtrim(number_format((float)$row['potongan_diskon'],2,'.',''),'0'),'.')."%</td>
				<td class='text-center'>$aktif</td>
				<td ><center>
				<a class='btn-sm edit_member text-success' title='Edit Data' data-id='$row[id]' href='#'><i class='fa fa-edit'></i> Edit</a>
				</center></td>
				</tr>";
				$no++;
			}
		?>
	</tbody>
</table>
<script>
	var uTable;
	$(document).ready(function() {
		uTable = $('#dataMember').DataTable();
	});
</script>
