<button class="btn btn-default" style="margin-bottom:20px;" data-toggle="modal" data-toggle="modal" data-target="#modalDefault" data-action="add_bonus">Yeni Bonus Oluştur</button>
<div class="panel panel-default">
	<div class="panel-body" style="padding:0;">
		<table class="table" style="margin-bottom:0;">
			<thead>
				<tr>
					<th>ID</th>
					<th>Minimum Ödeme</th>
					<th>Ödeme Methodu</th>
					<th>Bonus Yüzdesi</th>
					<th></th>
				</tr>
			</thead>
			<tbody>
                <?php foreach($bonuses as $bonus): $payment = $db->from('payment_methods')->where('method_id', $bonus['bonus_method'])->first(); ?>
				<tr>
					<td><?=$bonus['bonus_id']?></td>
					<td><?=$bonus['bonus_from']?></td>
					<td><?=$payment['method_title']?></td>
					<td><?=$bonus['bonus_amount']?>%</td>
                    <td><button class="btn btn-sm btn-default" onclick="delete_bonus('<?=$bonus['bonus_id']?>')">Sil</button></td>
				</tr>
                <?php endforeach; ?>
			</tbody>
		</table>
	</div>
</div>