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

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

<div class="card-body">

<h2>
Workflow History
</h2>

<table class="table table-bordered table-hover">

<thead>

<tr>
<th>ID</th>
<th>Conference</th>
<th>Old Status</th>
<th>New Status</th>
<th>User</th>
<th>Date</th>
</tr>

</thead>

<tbody>

<?php foreach($history as $row): ?>

<tr>

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

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

<td><?= htmlspecialchars($row['old_status'] ?? '') ?></td>

<td><?= htmlspecialchars($row['new_status'] ?? '') ?></td>

<td><?= htmlspecialchars($row['changed_by_name'] ?? '') ?></td>

<td><?= htmlspecialchars($row['created_at'] ?? '') ?></td>

</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

</div>

</div>
