 <h3 class="p-2">Carbon Pools <span class="float-sm-end">
  <?php if(has_permission('ReddSettings.manageCarbonPools')):?>
    <button type="button" class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#carbonModal">Add Carbon Pool</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></th>
		</thead>
		<tbody style="font-size:12px;">
			<?php foreach($carbon_pools as $carbon):?>
				<tr>
					<td><?= $carbon->id; ?></td>
					<td>
						<strong><?= $carbon->name; ?></strong> 
						<small class="text-muted d-flex"><?= $carbon->description; ?></small>
					</td>
					<td>
						<div class="btn-group">
							<button type="button" class="btn btn-sm btn-info rounded-circle me-2 editCarbon" data-id="<?= $carbon->id; ?>"><i class="bi bi-pencil"></i></button>
							<button type="button" class="btn btn-sm btn-danger rounded-circle" onclick="delete_carbon(<?= $carbon->id ?>, '<?= $carbon->name; ?>')"><i class="bi bi-trash"></i></button>
						</div>
					</td>
				</tr>
			<?php endforeach;?>
		</tbody>
	</table>
</div>