<div class="container-fluid">

<h2 class="fw-bold mb-4">
Enterprise Conference Performance Intelligence Center
</h2>

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

<div class="col-md-3">
<div class="card border-0 shadow-sm">
<div class="card-body text-center">
<div class="text-muted">Conferences</div>
<h2><?= (int)$stats['conferences'] ?></h2>
</div>
</div>
</div>

<div class="col-md-3">
<div class="card border-0 shadow-sm">
<div class="card-body text-center">
<div class="text-muted">Submissions</div>
<h2><?= (int)$stats['submissions'] ?></h2>
</div>
</div>
</div>

<div class="col-md-3">
<div class="card border-0 shadow-sm">
<div class="card-body text-center">
<div class="text-muted">Reviews</div>
<h2><?= (int)$stats['reviews'] ?></h2>
</div>
</div>
</div>

<div class="col-md-3">
<div class="card border-0 shadow-sm">
<div class="card-body text-center">
<div class="text-muted">Performance Index</div>
<h2><?= (int)$stats['platform_performance_index'] ?>%</h2>
</div>
</div>
</div>

</div>

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

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

<div class="card-body">

<?php foreach($findings as $f): ?>

<div class="alert alert-<?= htmlspecialchars($f['severity']) ?>">

<strong>
<?= htmlspecialchars($f['title']) ?>
</strong>

<br>

<?= htmlspecialchars($f['message']) ?>

</div>

<?php endforeach; ?>

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

<div class="alert alert-success">
Conference performance indicators are healthy.
</div>

<?php endif; ?>

</div>

</div>

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

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

<div class="table-responsive">

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

<thead>
<tr>
<th>ID</th>
<th>Conference</th>
<th>Submissions</th>
<th>Accepted</th>
<th>Published</th>
<th>Reviews</th>
<th>Acceptance %</th>
<th>Publication %</th>
<th>Performance</th>
</tr>
</thead>

<tbody>

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

<tr>

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

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

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

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

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

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

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

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

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

</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

</div>

</div>
