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

<div class="row g-3">

<?php

$cards=[

['Sections',$stats['total']],

['Published',$stats['published']],

['Draft',$stats['draft']]

];

foreach(
$cards
as $c
):

?>

<div class="col">

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

<div class="card-body">

<h6>

<?= $c[0] ?>

</h6>

<h2>

<?= $c[1] ?>

</h2>

</div>

</div>

</div>

<?php endforeach; ?>

</div>

<div
class="card mt-4 rounded-4">

<div
class="card-body">

<h4>

Homepage Operations

</h4>

<hr>

<?php foreach(
$sections
as $s
): ?>

<div
class="d-flex
justify-content-between
border-bottom
py-3">

<div>

<b>

<?= htmlspecialchars(
$s[
'title_en'
]
?? ''
) ?>

</b>

</div>

<span
class="badge bg-dark">

<?= htmlspecialchars(
$s[
'publish_status'
]
?? 'draft'
) ?>

</span>

</div>

<?php endforeach; ?>

</div>

</div>

</div>
