feat: admin dashboard widgets
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user