<div class="settings-emails__block">
	<div class="settings-emails__block-title">
		<a href="<?=admin_url('settings/accounts')?>" class="btn btn-default">Banka Hesapları</a>
	</div>
	<div class="settings-emails__block-body" style="margin-bottom:20px;">
		<table>
			<thead>
				<tr>
					<th class="settings-emails__th-name"></th>
					<th class="settings-emails__th-name"></th>
					<th class="settings-emails__th-name"></th>
					<th class="settings-emails__th-actions"></th>
				</tr>
			</thead>
			<tbody>
				<?php foreach($methods as $row): $detail = json_decode($row['method_details'], true);?>
				<tr class="settings-emails__row">
					<td>
						<div class="settings-emails__row-name"><?=$row['method_title']?><br><?=($detail['status'] == 1) ? '<span class="label label-success">Aktif</span>' : '<span class="label label-danger">Pasif</span>'; ?></div>
					</td>
					<td>
						<div class="settings-emails__row-description"><b>Görünen İsim:</b> <?=$detail['name']?></div>
					</td>
					<td>
						<div class="settings-emails__row-description"><b>Min:</b> <?=$detail['min']?><br><b>Max:</b> <?=$detail['max']?></div>
					</td>
					<td class="settings-emails__td-actions">
						<button type="button" class="btn btn-default btn-xs pull-right" data-toggle="modal" data-target="#modalDefault" data-action="get_payment" data-id="<?=$row['method_id']?>">Ayarlar</button>
					</td>
				</tr>
				<?php endforeach; ?>
			</tbody>
		</table>
	</div>
</div>