{% if form.fields.isEmpty() %}

    <div class="card">
        <div class="card-block card-body">
            {{ trans("streams::message.no_fields_available") }}
        </div>
    </div>

{% else %}

    {% if not form.sections.isEmpty() %}

        {% for section in form.sections %}
            {% if section.view %}
                {% include section.view %}
            {% elseif section.html %}
                {{ section.html|raw }}
            {% else %}
                {% include "streams::form/partials/section" %}
            {% endif %}
        {% endfor %}

    {% else %}
        {% include "streams::form/partials/default" %}
    {% endif %}

{% endif %}
