{#
EXEMPLE
{% include 'bo/home/_widget_card.html.twig' with {
'widgetTitle' : "TITLE",
'widgetNumber' : "NUMBER",
'widgetRouteLink' : 'SYMFONY NAME ROUTE',
'widgetRouteQuery' : 'SYMFONY QUERY ROUTE (q)',
'widgetIncrease' : 'INCREASE NUMBER',
'bootstrapIconName' : 'BOOSTRAP ICON ex : (calendar-date-fill)',
'bootstrapIconColor' : 'BOOSTRAP COLOR ex : (success)'}%}
#}
<div class="col-lg-3 col-md-3 col-sm-6 col-12">
{% if widgetRouteLink != "" %}
{% if widgetRouteQuery != "" %}
<a href={{ path(widgetRouteLink, {'q': widgetRouteQuery}) }}>
{% else %}
<a href={{ path(widgetRouteLink) }}>
{% endif %}
{% endif %}
<div class="col-xl-12">
<div class="card custom-card">
<div class="card-body">
<div class="d-flex flex-wrap align-items-top justify-content-between">
<div class="flex-fill">
<p class="mb-0 text-muted">{{ widgetTitle }}</p>
<div class="d-flex align-items-center">
<span class="fs-5 fw-semibold">{{ widgetNumber }}</span>
{% if widgetIncrease != "" %}
<span class="fs-12 text-success ms-2"><i
class="ti ti-trending-up me-1 d-inline-block"></i>{{ widgetIncrease }}</span>
{% endif %}
</div>
</div>
<div>
<span class="avatar avatar-md avatar-rounded bg-{{ bootstrapIconColor }}-transparent text-{{ bootstrapIconColor }} fs-18">
<i class="bi bi-{{ bootstrapIconName }} fs-16"></i>
</span>
</div>
</div>
</div>
</div>
</div>
{% if widgetRouteLink != "" %}
</a>
{% endif %}
</div>