<div class="settings-emails__block">
	<?php if($active): ?>
	<div class="settings-emails__block-title">
		Aktif Eklentiler  
	</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-actions"></th>
				</tr>
			</thead>
			<tbody>
				<?php foreach($active as $row): ?>
				<tr class="settings-emails__row">

					<td>
						<div class="settings-emails__row-name"><?=$row['plugin_title']?></div>
						<div class="settings-emails__row-description"><?=$row['plugin_desc']?></div>
					</td>                        
					<td class="settings-emails__td-actions">
						<a class="btn btn-default btn-xs pull-right" style="margin-bottom:10px;" href="<?=admin_url('settings/plugins/disable/'.$row['plugin_id'])?>">Devre Dışı Bırak</a>
						<button type="button" class="btn btn-default btn-xs pull-right" data-toggle="modal" data-target="#modalDefault" data-action="get_plugin" data-id="<?=$row['plugin_id']?>">Düzenle</button>
					</td>
				</tr>
				<?php endforeach; ?>
			</tbody>
		</table>
	</div>
	<?php endif; ?>
	<?php if($disabled): ?>
	<div class="settings-emails__block-title">
		Pasif Eklentiler  
	</div>
	<div class="settings-emails__block-body">
		<table>
			<thead>
				<tr>
					<th class="settings-emails__th-name"></th>
					<th class="settings-emails__th-actions"></th>
				</tr>
			</thead>
			<tbody>
				<?php foreach($disabled as $row): ?>
				<tr class="settings-emails__row">
					<td>
						<div class="settings-emails__row-name"><?=$row['plugin_title']?></div>
						<div class="settings-emails__row-description"><?=$row['plugin_desc']?></div>
					</td>
					<td class="settings-emails__td-actions">
						<a class="btn btn-default btn-xs pull-right" href="<?=admin_url('settings/plugins/active/'.$row['plugin_id'])?>">Aktifleştir</a>
					</td>
				</tr>
				<?php endforeach; ?>
			</tbody>
		</table>
	</div>
	<?php endif; ?>
</div>