<?php

$title = 'Homepage Content';

$items =
    $items ?? [];

?>

<div class="container py-5">

<h2 class="fw-bold mb-4">
Homepage Content Manager
</h2>

<div class="row g-4">

<?php foreach($items as $i): ?>

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

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

<div class="card-body">

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

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

</h4>

<div class="text-muted mb-3">

<?= htmlspecialchars(
(string)($i['title_ar'] ?? '')
) ?>

</div>

<div class="small text-muted mb-3">

<?= htmlspecialchars(
(string)($i['content_key'] ?? '')
) ?>

</div>

<span class="badge bg-success">
Dynamic Content
</span>

</div>

</div>

</div>

<?php endforeach; ?>

</div>

</div>
