<?php
/**
 * Empty state partial
 * $title, $desc, $cta_label, $cta_href, $icon
 */
?>
<div class="ec-card">
  <div class="ec-card-bd text-center py-5">
    <div style="font-size:44px; opacity:.9" class="mb-2">
      <i class="<?= e((string)($icon ?? 'fa-solid fa-circle-info')) ?>"></i>
    </div>
    <div class="fw-bold" style="font-size:1.15rem;"><?= e((string)($title ?? trans('no_data'))) ?></div>
    <?php if (!empty($desc)): ?><div class="text-muted mt-1"><?= e((string)$desc) ?></div><?php endif; ?>
    <?php if (!empty($cta_label) && !empty($cta_href)): ?>
      <div class="mt-3">
        <a class="btn btn-primary ec-btn" href="<?= e((string)$cta_href) ?>">
          <i class="fa-solid fa-plus me-2"></i><?= e((string)$cta_label) ?>
        </a>
      </div>
    <?php endif; ?>
  </div>
</div>
