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

<div class="card border-0 shadow-sm">

<div class="card-body">

<h2>
Governance Simulation Center
</h2>

<p class="text-muted">
Simulate governance balancing before applying changes.
</p>

<table class="table table-bordered table-hover">

<thead>

<tr>
<th>Track</th>
<th>Reviews</th>
<th>Active Chairs</th>
<th>Simulation Outcome</th>
</tr>

</thead>

<tbody>

<?php foreach($rows as $r): ?>

<tr>

<td><?= htmlspecialchars($r['track_name']) ?></td>

<td><?= (int)$r['reviews'] ?></td>

<td><?= (int)$r['active_chairs'] ?></td>

<td>

<?php if((int)$r['active_chairs']==0): ?>

Assign Chair Candidate

<?php elseif((int)$r['active_chairs']>1): ?>

Reduce Duplicate Ownership

<?php else: ?>

Stable

<?php endif; ?>

</td>

</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

</div>

</div>
