<?php
$title='Reviewer Exchange Opportunities';
?>

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

<h2 class="mb-4">
<i class="fa-solid fa-right-left"></i>
Reviewer Exchange Opportunities
</h2>

<div class="card shadow-sm">

<div class="card-body table-responsive">

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

<thead>
<tr>
<th>Source Conference</th>
<th>Target Conference</th>
<th>Exchange Type</th>
<th>Score</th>
<th>Status</th>
<th>Recommendation</th>
</tr>
</thead>

<tbody>

<?php if(empty($exchanges)): ?>

<tr>
<td colspan="6" class="text-center text-muted">
No exchange opportunities available.
</td>
</tr>

<?php endif; ?>

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

<tr>

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

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

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

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

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

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

</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

</div>

</div>
