<?php if(!empty($homepageWorkflowAlerts)): ?>

<div class="card border-0 shadow-sm mb-4"
     style="border-radius:22px;">

<div class="card-body p-4">

<h5 class="fw-bold mb-3">

<i class="fa fa-triangle-exclamation text-danger"></i>

Homepage Workflow Alerts

</h5>

<div class="table-responsive">

<table class="table table-hover align-middle">

<thead>

<tr>

<th>Conference</th>
<th>Status</th>
<th>Severity</th>
<th>Message</th>

</tr>

</thead>

<tbody>

<?php foreach($homepageWorkflowAlerts as $a): ?>

<tr>

<td>

<?= htmlspecialchars(
$a['short_name']
) ?>

</td>

<td>

<?= htmlspecialchars(
$a['status']
) ?>

</td>

<td>

<span class="badge bg-danger">

<?= htmlspecialchars(
$a['severity']
) ?>

</span>

</td>

<td>

<?= htmlspecialchars(
$a['message']
) ?>

</td>

</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

<div class="mt-3">

<a
href="/easychair/admin/conference-home/automation-runner"
class="btn btn-danger">

<i class="fa fa-gears"></i>

Open Automation Runner

</a>

</div>

</div>

</div>

<?php endif; ?>
