{% set items = service('event').dispatch('dashboard.get.items',[]) %} {% set items = (items is iterable) ? items : [] %} {% set column_class = column_class|default('three wide') %} {% set model = createModel('Dashboard','dashboard') %}
{{ component("dashboard::admin.dashboard.about") }}
{% for item in items %} {% if item.components is iterable %} {% for panel in item.components %} {% set visible = (hasTable('dashboard') == true) ? model.isVisible(panel.component) : true %} {% if visible == true %}
{{ component(panel.component) }}
{% endif %} {% endfor %} {% else %} {% set component_name = (item.component is not empty) ? item.component : item %} {% set visible = (hasTable('dashboard') == true) ? model.isVisible(component_name) : true %} {% if visible == true %}
{{ component(component_name,{ component_id: 'dashboard_' ~ loop.index }) }}
{% endif %} {% endif %} {% endfor %}