{% extends isWidgetized ? 'empty.twig' : 'dashboard.twig' %}

{% block topcontrols %}
    {% if not isWidgetized %}
        {% include "@CoreHome/_periodSelect.twig" %}
        {% include "@CoreHome/_headerMessage.twig" %}
    {% endif %}
{% endblock %}

{% block content %}
<div class="row" id="multisites">
    <div class="col s12 m12 l10 offset-l1">
        {% if isWidgetized %}
            <div id="main">
        {% else %}
            <div id="main" class="card">
                <div class="card-content">
        {% endif %}
                <div
                    vue-entry="MultiSites.Dashboard"
                    display-revenue-column="{% if displayRevenueColumn %}true{% else %}false{%endif%}"
                    page-size="{{ limit|json_encode }}"
                    show-sparklines="{% if show_sparklines %}true{% else %}false{%endif%}"
                    date-sparkline="{{ dateSparkline|json_encode }}"
                    auto-refresh-today-report="{{ autoRefreshTodayReport|json_encode }}"
                ></div>
        {% if isWidgetized %}
            </div>
        {% else %}
            </div></div>
        {% endif %}
    </div>
</div>
{% endblock %}
