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

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

<div class="card-body">

<h2>
Governance Decision Engine
</h2>

<p class="text-muted">
Decision generation from governance analytics.
</p>

<h4>
Generated Decisions:
<?= (int)$generated ?>
</h4>

</div>

</div>

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

<div class="card-body">

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

<thead>

<tr>
<th>ID</th>
<th>Type</th>
<th>Title</th>
<th>Score</th>
<th>Status</th>
</tr>

</thead>

<tbody>

<?php foreach($decisions as $d): ?>

<tr>

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

<td><?= htmlspecialchars($d['decision_type']) ?></td>

<td><?= htmlspecialchars($d['decision_title']) ?></td>

<td><?= htmlspecialchars($d['decision_score']) ?></td>

<td><?= htmlspecialchars($d['decision_state']) ?></td>

</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

</div>

</div>
