feat: admin dashboard widgets

This commit is contained in:
Björn Fromme
2026-08-25 16:31:45 +02:00
parent 578a21d327
commit 4e6aaba9ff
17 changed files with 808 additions and 6 deletions
@@ -0,0 +1,13 @@
{% set url = url ?? null %}
{% set icon = icon ?? null %}
{% set body %}
{% if icon %}{{ icon(icon, 'w-4 h-4 shrink-0') }}{% endif %}
<span class="whitespace-nowrap">{{ block('content') }}</span>
{% endset %}
<li class="py-2 first:pt-0 last:pb-0 overflow-x-hidden">
{% if url %}
<a href="{{ url }}" {{ attributes.defaults({class: 'flex items-center space-x-1'}).without('url', 'icon') }}>{{ body }}</a>
{% else %}
<div {{ attributes.defaults({class: 'flex items-center space-x-1'}).without('url', 'icon') }}>{{ body }}</div>
{% endif %}
</li>