<h3 class="mb-4">Decision Board</h3>

<table class="table table-bordered">

<tr>
    <th>ID</th>
    <th>Title</th>
    <th>Stage</th>
    <th>Status</th>
    <th>Reviews</th>
    <th>Avg Score</th>
    <th>Action</th>
</tr>

<?php foreach ($submissions as $s): ?>

<tr>

<td><?= $s['id'] ?></td>

<td><?= htmlspecialchars($s['title']) ?></td>

<td><?= $s['stage'] ?></td>

<td><?= $s['status'] ?></td>

<td><?= $s['reviews_count'] ?></td>

<td><?= $s['avg_score'] ?></td>

<td>

<form method="post" action="/easychair/admin/decision/apply">

<input type="hidden" name="submission_id"
value="<?= $s['id'] ?>">

<select name="decision" class="form-select form-select-sm mb-1">

<option value="accept">Accept</option>
<option value="minor_revision">Minor Revision</option>
<option value="major_revision">Major Revision</option>
<option value="reject">Reject</option>

</select>

<button class="btn btn-sm btn-primary">
Apply
</button>

</form>

</td>

</tr>

<?php endforeach; ?>

</table>
