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

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

<div class="card-body">

<h2>
Review Risk Intelligence
</h2>

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

<thead>

<tr>

<th>Submission</th>
<th>Track</th>
<th>Assigned</th>
<th>Completed</th>
<th>Open</th>
<th>Overdue</th>
<th>Risk Score</th>
<th>Risk Level</th>

</tr>

</thead>

<tbody>

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

<tr>

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

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

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

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

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

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

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

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

</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

</div>

</div>
