<?php
$title =
'Homepage Publication History';
?>

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

<div class="card border-0 shadow-lg rounded-4">

<div class="card-body">

<h2 class="fw-bold">

<i class="fa fa-clock-rotate-left text-primary"></i>

Homepage Publication History

</h2>

<hr>

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

<div class="alert alert-info">

No publication history found.

</div>

<?php else: ?>

<table class="table table-striped">

<thead>

<tr>

<th>ID</th>

<th>Conference</th>

<th>Snapshot</th>

<th>User</th>

<th>Date</th>

</tr>

</thead>

<tbody>

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

<tr>

<td>

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

</td>

<td>

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

</td>

<td>

<?= (int)$r['snapshot_template_id'] ?>

</td>

<td>

<?= (int)$r['published_by'] ?>

</td>

<td>

<?= htmlspecialchars(
$r['published_at']
) ?>

</td>

</tr>

<?php endforeach; ?>

</tbody>

</table>

<?php endif; ?>

</div>

</div>

</div>
