{% if not table.filters.isEmpty() %}
    <div class="card card-container">
        {{ form_open({'method': 'get', 'id': 'filters', 'url': url_full(), 'class': 'form-inline'}) }}
        <input type="hidden" name="{{ table.options.prefix }}limit" value="{{ table.options.limit }}">
        <input type="hidden" name="{{ table.options.prefix }}view" value="{{ table.views.active().getSlug() }}">
        <input type="hidden" name="{{ table.options.prefix }}page" value="1">

        {% for filter in table.filters %}
            <div class="form-group">
                {{ filter.input|raw }}
            </div>
        {% endfor %}

        <button type="submit" class="btn btn-success">
            {{ icon(table.options.filters.filter_icon ?: 'filter') }}
            {{ trans(table.options.filters.filter_text ?: 'streams::button.filter') }}
        </button>
        <a href="{{ url_current() }}{{ request_has('view') ? '?view=' ~ request_get('view') }}" class="btn btn-inverse">
            {{ icon(table.options.filters.clear_icon ? table.options.filters.clear_icon) }}
            {{ trans(table.options.filters.clear_text ?: 'streams::button.clear') }}
        </a>
        {{ form_close() }}
    </div>
{% endif %}
