 <h3 class="p-2">Project Statuses <span class="float-sm-end">
  <?php if(has_permission('ReddSettings.manageProjectStatuses')):?>
	<button type="button" class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#projectStatusModal">Add Status</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>Icon</th>
            <th>Color</th>
			<th>Name</th>
			<th></th>
		</thead>
		<tbody style="font-size:12px;">
			 <?php foreach($statuses as $status):?>
				<tr>
					<td><?= $status->id; ?></td>
                    <td><i class="<?= $status->icon; ?>"></i></td>
                    <td><span class="badge" style="background:<?= $status->color; ?>;color:#fff"><?= $status->color; ?></span></td>
					<td>
						<strong><?= $status->name; ?></strong> 
						<small class="text-muted d-flex"><?= $status->description; ?></small>
					</td>
					<td>
						<div class="btn-group">
							<button type="button" class="btn btn-sm btn-info rounded-circle me-2 editProjectStatus" data-id="<?= $status->id; ?>"><i class="bi bi-pencil"></i></button>
							<button type="button" class="btn btn-sm btn-danger rounded-circle" onclick="delete_projectstatus(<?= $status->id ?>, '<?= $status->name; ?>')"><i class="bi bi-trash"></i></button>
						</div>
					</td>
				</tr>
			<?php endforeach;?>
		</tbody>
	</table>
</div>