20 lines
896 B
PHP
20 lines
896 B
PHP
<?php
|
|
$badgeRows = is_array($badgeRows ?? null) ? $badgeRows : [];
|
|
$detailRows = is_array($detailRows ?? null) ? $detailRows : [];
|
|
?>
|
|
|
|
<?php if ($badgeRows !== []): ?>
|
|
<div class="mt-2 flex flex-wrap gap-1">
|
|
<?php foreach ($badgeRows as $badge): ?>
|
|
<span class="inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-semibold <?= e((string) ($badge['class'] ?? '')) ?>"><?= e((string) ($badge['label'] ?? '')) ?></span>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if ($detailRows !== []): ?>
|
|
<div class="mt-2 rounded-lg border border-slate-200 bg-white p-2 text-[11px] text-slate-700">
|
|
<?php foreach ($detailRows as $detail): ?>
|
|
<div><span class="font-medium"><?= e((string) ($detail['label'] ?? '')) ?>:</span> <?= e((string) ($detail['value'] ?? '')) ?></div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<?php endif; ?>
|