# V2_Category_Flat

    {% set categoryFlat = module('V2_Category_Flat', null, {
      bid: null,
      cid: null,
      keyword: null,
      field: null,
      order: null,
      start: '1000-01-01 00:00:00',
      end: '9999-12-31 23:59:59'
    }) %}

    {% if categoryFlat.items is not empty %}
      <div class="acms-margin-bottom-medium">
        {{ include('/admin/module/setting.twig', { moduleInfo: categoryFlat.moduleInfo }) }}
        <ul class="acms-list-group">
          {% for category in categoryFlat.items %}
            <li class="acms-list-group-item" style="padding-left: {{ (category.depth - 1) * 16 }}px">
              <a href="{{ category.url }}">
                {{ category.name }}
                {% if category.amount is not empty %}
                  <span class="acms-badge acms-float-right">{{ category.amount }}</span>
                {% endif %}
              </a>
            </li>
          {% endfor %}
        </ul>
      </div>
    {% endif %}