<div class="container-fluid">

<h2 class="fw-bold mb-4">
Conference Risk Radar
</h2>

<div class="row g-3 mb-4">

<div class="col-md-12">

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

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

<h6>Overall Conference Risk</h6>

<?php
$cls =
$risk['overall'] >= 70
? 'danger'
:
(
$risk['overall'] >= 40
? 'warning'
: 'success'
);
?>

<h1 class="text-<?= $cls ?>">
<?= (int)$risk['overall'] ?>%
</h1>

</div>

</div>

</div>

</div>

<div class="row g-3">

<?php

$cards = [

'Review Risk'
    => $risk['review_risk'],

'Production Risk'
    => $risk['production_risk'],

'DOI Risk'
    => $risk['doi_risk'],

'Issue Risk'
    => $risk['issue_risk'],

'Indexing Risk'
    => $risk['indexing_risk']

];

foreach($cards as $label=>$score):

$cls =
$score >= 70
? 'danger'
:
(
$score >= 40
? 'warning'
: 'success'
);

?>

<div class="col-md-4">

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

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

<h6>
<?= htmlspecialchars($label) ?>
</h6>

<h2 class="text-<?= $cls ?>">
<?= (int)$score ?>%
</h2>

</div>

</div>

</div>

<?php endforeach; ?>

</div>

</div>
