 <h3 class="p-2">Methodologies <span class="float-sm-end">
  <?php if(has_permission('ReddSettings.manageMethodologies')):?>
    <button type="button" class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#methodologyModal">Add Methodology</button>
  <?php endif;?>
	</span>
</h3>
<div class="table-responsive">
	<table class="table table-sm table-striped">
		<thead class="bg-dark text-white" style="font-size:12px;">
			<th>#ID</th>
			<th>Name</th>
			<th>Reference Link</th>
			<th></th>
		</thead>
		<tbody style="font-size:12px;">
			<?php foreach($methodologies as $method):?>
				<tr>
					<td><?= $method->id; ?></td>
					<td>
						<strong><?= $method->name; ?></strong>
						<small class="text-muted d-flex"><?= $method->description;?></small>
					</td>
					<td><a href="<?= $method->reference_link; ?>" target="_blank"><?= $method->reference_link; ?></a></td>
					<td>
						<div class="btn-group">
							<button type="button" class="btn btn-sm btn-info rounded-circle me-2 editMethodology" data-id="<?= $method->id; ?>"><i class="bi bi-pencil"></i></button>
							<button type="button" class="btn btn-sm btn-danger rounded-circle" onclick="delete_methodology(<?= $method->id ?>, '<?= $method->name; ?>')"><i class="bi bi-trash"></i></button>
						</div>
					</td>
				</tr>
			<?php endforeach;?>
		</tbody>
	</table>
</div>