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

<div class="row g-4">

<div class="col-md-4">
<div class="card border-0 shadow-sm">
<div class="card-body">

<h4>Tracks Without Chairs</h4>

<h1 class="text-danger">
<?= count($unassignedTracks) ?>
</h1>

</div>
</div>
</div>

<div class="col-md-4">
<div class="card border-0 shadow-sm">
<div class="card-body">

<h4>Duplicate Chair Tracks</h4>

<h1 class="text-warning">
<?= count($duplicateChairs) ?>
</h1>

</div>
</div>
</div>

<div class="col-md-4">
<div class="card border-0 shadow-sm">
<div class="card-body">

<h4>NULL Track Submissions</h4>

<h1 class="text-primary">
<?= count($nullTracks) ?>
</h1>

</div>
</div>
</div>

</div>

<br>

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

<div class="card-body">

<h3>Tracks Without Active Chairs</h3>

<table class="table table-bordered">

<tr>
<th>ID</th>
<th>Conference</th>
<th>Track</th>
<th>Submissions</th>
</tr>

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

<tr>

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

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

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

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

</tr>

<?php endforeach; ?>

</table>

</div>

</div>

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

<div class="card-body">

<h3>Tracks With Multiple Chairs</h3>

<table class="table table-bordered">

<tr>
<th>Track ID</th>
<th>Active Chairs</th>
</tr>

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

<tr>

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

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

</tr>

<?php endforeach; ?>

</table>

</div>

</div>

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

<div class="card-body">

<h3>Submissions Without Track Ownership</h3>

<table class="table table-bordered">

<tr>
<th>ID</th>
<th>Submission No</th>
<th>Title</th>
<th>Status</th>
</tr>

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

<tr>

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

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

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

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

</tr>

<?php endforeach; ?>

</table>

</div>

</div>

</div>
