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

<div class="row g-4 mb-4">

<div class="col-md-4">

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

<div class="card-body text-center">

<h5>Platform Health</h5>

<h1>
<?= (float)$averageHealth ?>
%
</h1>

</div>

</div>

</div>

<div class="col-md-4">

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

<div class="card-body text-center">

<h5>Total Conferences</h5>

<h1>
<?= count($rows) ?>
</h1>

</div>

</div>

</div>

<div class="col-md-4">

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

<div class="card-body text-center">

<h5>Governance Engine</h5>

<h1>
1179
</h1>

</div>

</div>

</div>

</div>

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

<div class="card-body">

<h2>
Conference Health Engine
</h2>

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

<thead>

<tr>

<th>Conference</th>
<th>Coverage %</th>
<th>Tracks</th>
<th>Submissions</th>
<th>Reviews</th>
<th>Overdue</th>
<th>Health Score</th>
<th>Status</th>

</tr>

</thead>

<tbody>

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

<tr>

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

<td>
<?= (float)$r['coverage_percent'] ?>
</td>

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

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

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

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

<td>
<?= (float)$r['health_score'] ?>
</td>

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

</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

</div>

</div>
