<?php foreach ($flashes ?? flashes() as $flash): ?>
<?php $error = $flash['type'] === 'error' ?>
<div class="mb-3 flex items-start gap-3 rounded-xl border px-4 py-3 text-sm <?= $error ? 'border-rose-200 bg-rose-50 text-rose-800' : 'border-emerald-200 bg-emerald-50 text-emerald-800' ?>">
<?= icon($error ? 'alert' : 'check-circle', 'mt-0.5 size-4 shrink-0', '2') ?>
<span><?= e($flash['message']) ?></span>
</div>
<?php endforeach ?>
Lisans bilgisi projenin LICENSE dosyasında.