<div class="container-fluid">

<h2 class="fw-bold mb-4">
Enterprise Institutional Digital Twin 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">Digital Twin Index</div>
<h2><?= (int)$stats['digital_twin_index'] ?>%</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">Projected Submissions</div>
<h2><?= (int)$stats['simulation_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">Projected Reviews</div>
<h2><?= (int)$stats['simulation_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">Capacity Gap</div>
<h2><?= (int)$stats['capacity_gap'] ?></h2>
</div>
</div>
</div>

</div>

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

<div class="card-header fw-bold">
Simulation 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">
Digital twin projections indicate healthy growth.
</div>

<?php endif; ?>

</div>

</div>

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

<div class="card-header fw-bold">
Conference Growth Simulation
</div>

<div class="table-responsive">

<table class="table table-striped">

<thead>
<tr>
<th>ID</th>
<th>Conference</th>
<th>Current</th>
<th>Projected</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['projected_submissions'] ?></td>

</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

</div>

</div>
