<div class="row g-2">
  <?php foreach ($entities as $key => $e): ?>
    <div class="col-6 col-md-4 col-xl-3">
      <a class="card h-100 text-decoration-none text-body" href="<?= url('/master/'.$key) ?>">
        <div class="card-body">
          <div class="d-flex align-items-start gap-2">
            <i class="bi bi-<?= e($e['icon']) ?> fs-4 text-primary"></i>
            <div class="flex-fill">
              <strong style="font-size:13.5px"><?= e($e['label']) ?></strong>
              <div class="small text-body-secondary"><?= e($e['deskripsi']) ?></div>
              <div class="mt-1"><span class="badge bg-primary-subtle text-primary-emphasis"><?= nf($e['jumlah']) ?> data</span></div>
            </div>
          </div>
        </div>
      </a>
    </div>
  <?php endforeach; ?>
</div>
