<div class="container-fluid">

<h2 class="fw-bold mb-4">
Platform Data Quality Center
</h2>

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

<?php

$cards = [

'Orphan Submissions'
=> $stats['orphan_submissions'],

'Orphan Reviews'
=> $stats['orphan_reviews'],

'Missing DOI'
=> $stats['missing_doi'],

'Approved Without Issue'
=> $stats['approved_without_issue'],

'Broken Issue Articles'
=> $stats['broken_issue_articles'],

'Conference Date Gaps'
=> $stats['conference_date_gaps']

];

foreach($cards as $label=>$value):

?>

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

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

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

<div class="text-muted">
<?= htmlspecialchars($label) ?>
</div>

<h3>
<?= (int)$value ?>
</h3>

</div>

</div>

</div>

<?php endforeach; ?>

</div>

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

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

<h6>
Platform Quality Score
</h6>

<h1>
<?= (int)$stats['quality_score'] ?>%
</h1>

</div>

</div>

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

<div class="card-header fw-bold">
Conference Data Health
</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>
