<div class="container-fluid">

<h2 class="fw-bold mb-4">
Enterprise Compliance & Accreditation Intelligence Center
</h2>

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

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

<h6>
Compliance Score
</h6>

<h1 class="text-primary">
<?= (int)$stats['compliance_score'] ?>%
</h1>

</div>

</div>

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

<div class="card-header fw-bold">
Compliance 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">
No compliance findings detected.
</div>

<?php endif; ?>

</div>

</div>

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

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

<div class="table-responsive">

<table class="table table-striped">

<thead>
<tr>
<th>ID</th>
<th>Conference</th>
<th>Submissions</th>
<th>Missing DOI</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['missing_doi'] ?></td>

</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

</div>

</div>
