{%- import '_macros_chart.html' as macros_chart with context -%}
{%- if searched %}
{{
    macros_chart.render_dashboard_panel_content(
        chart_section,
        'stats-{}'.format(chart_section.key),
        dynamic=True
    )
}}
{%- else %}
<div class="alert alert-danger d-flex align-items-center" role="alert">
    <i class="fas fa-fw fa-exclamation-triangle" aria-hidden="true"></i>
    <div class="ms-1">
        {{ _('Invalid search parameters') }}
    </div>
</div>
{%- endif %}