<hr>

<h5>
Assign Reviewer
</h5>

<form
method="POST"
action="/easychair/admin/submission/assign-reviewer"
>

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

<select
name="reviewer_ids[]"
multiple
class="form-control"
>

<?php

$db =
    \App\Core\Database::getInstance();

$stmt =
    $db->query("
        SELECT
            id,
            email
        FROM users
        WHERE role_id = 4
        ORDER BY email
    ");

$reviewers =
    $stmt->fetchAll(
        PDO::FETCH_ASSOC
    );

foreach ($reviewers as $r):

?>

<option
value="<?= $r['id'] ?>"
>

<?= htmlspecialchars($r['email']) ?>

</option>

<?php endforeach; ?>

</select>

<br>

<button
class="btn btn-primary"
>

Assign Reviewer

</button>

</form>
