<?php
$title = 'Workflow Alert 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"></i>

Workflow Alert History

</h2>

<hr>

<table class="table table-hover">

<thead>

<tr>

<th>ID</th>
<th>Status</th>
<th>Resolved By</th>
<th>Resolved At</th>

</tr>

</thead>

<tbody>

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

<tr>

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

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

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

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

</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

</div>

</div>
