<div class="container-fluid">

<h2 class="fw-bold mb-4">
Conference Benchmark Center
</h2>

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

<div class="card-header fw-bold">
Conference Performance Benchmark
</div>

<div class="table-responsive">

<table class="table table-striped align-middle">

<thead>

<tr>

<th>ID</th>

<th>Conference</th>

<th>Submissions</th>

<th>Reviews</th>

<th>Accepted</th>

<th>DOI</th>

<th>Acceptance %</th>

<th>DOI %</th>

<th>Benchmark Score</th>

</tr>

</thead>

<tbody>

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

<tr>

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

<td>
<?= htmlspecialchars(
$r['short_name']
?: $r['title']
) ?>
</td>

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

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

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

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

<td>
<?= $r['acceptance_rate'] ?>%
</td>

<td>
<?= $r['doi_coverage'] ?>%
</td>

<td>

<?php

$score =
(int)$r['benchmark_score'];

$cls =
$score >= 80
? 'success'
:
(
$score >= 50
? 'warning'
: 'danger'
);

?>

<span class="badge bg-<?= $cls ?>">
<?= $score ?>
</span>

</td>

</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

</div>

</div>
