<?php
$title='Workflow Capacity & Workload Center';
?>

<div class="container-fluid py-4">

<div class="card border-0 shadow-lg rounded-4">

<div class="card-body">

<h2 class="fw-bold">
<i class="fa fa-scale-balanced text-primary"></i>
Workflow Capacity & Workload Center
</h2>

<hr>

<table class="table table-hover">

<thead>

<tr>
<th>User</th>
<th>Role</th>
<th>Conferences</th>
<th>Open Stages</th>
<th>Overdue</th>
<th>Score</th>
</tr>

</thead>

<tbody>

<?php foreach($workloadRows as $row): ?>

<tr>

<td><?= htmlspecialchars($row['user_name']) ?></td>

<td><?= htmlspecialchars($row['assigned_role']) ?></td>

<td><?= (int)$row['assigned_conferences'] ?></td>

<td><?= (int)$row['open_stages'] ?></td>

<td><?= (int)$row['overdue_count'] ?></td>

<td><?= (int)$row['workload_score'] ?></td>

</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

</div>

</div>
