<?php

$title =
'Governance Analytics & Forecasting Center';

function gaf_h($v)
{
    return htmlspecialchars(
        (string)$v,
        ENT_QUOTES,
        'UTF-8'
    );
}

?>

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

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

<div class="card-body">

<h2 class="fw-bold">

<i class="fa fa-chart-area text-primary"></i>

Governance Analytics & Forecasting Center

</h2>

<p class="text-muted">

Predict governance risks before they become operational issues.

</p>

</div>

</div>

<div class="row g-4">

<?php foreach($forecastCards as $card): ?>

<div class="col-xl-3 col-md-6">

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

<div class="card-body text-center">

<div class="text-muted">

<?= gaf_h($card['label']) ?>

</div>

<div class="display-5 fw-bold">

<?= (int)$card['value'] ?>

</div>

</div>

</div>

</div>

<?php endforeach; ?>

</div>

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

<div class="card-body">

<h4>

Conference Governance Scores

</h4>

<table class="table table-hover">

<thead>

<tr>

<th>Conference</th>
<th>Governance Score</th>
<th>Escalations</th>
<th>Active Owners</th>

</tr>

</thead>

<tbody>

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

<tr>

<td>

<?= gaf_h($row['conference_name']) ?>

</td>

<td>

<?= (int)$row['governance_score'] ?>

</td>

<td>

<?= (int)$row['escalations'] ?>

</td>

<td>

<?= (int)$row['owners'] ?>

</td>

</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

</div>

</div>
