 <h3 class="p-2">Project Types <span class="float-sm-end">
  <?php if(has_permission('ReddSettings.manageProjectTypes')):?>
	<button type="button" class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#projectTypeModal">Add Type</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($types as $type):?>
				<tr>
					<td><?= $type->id; ?></td>
					<td>
						<strong><?= $type->name; ?></strong> 
						<small class="text-muted d-flex"><?= $type->description; ?></small>
					</td>
					<td>
						<div class="btn-group">
							<button type="button" class="btn btn-sm btn-info rounded-circle me-2 editProjectType" data-id="<?= $type->id; ?>"><i class="bi bi-pencil"></i></button>
							<button type="button" class="btn btn-sm btn-danger rounded-circle" onclick="delete_projecttype(<?= $type->id ?>, '<?= $type->name; ?>')"><i class="bi bi-trash"></i></button>
						</div>
					</td>
				</tr>
			<?php endforeach;?>
		</tbody>
	</table>
</div>