{% if not table.views.isEmpty() %}
    <nav class="navbar navbar-light">
        <div class="nav navbar-nav">
            {% for view in table.views %}
                <a
                        class="nav-item nav-link {{ view.class }} {{ view.isActive() ? 'active' }}"
                        {{ html_attributes(view.attributes) }}>
                    {{ view.icon ? icon(view.icon)|raw }}
                    {{ trans(view.getText()) }}

                    {% if view.label %}
                        <span class="tag tag-{{ view.context }}">
                                {{ trans(view.label)|raw }}
                            </span>
                    {% endif %}

                </a>
            {% endfor %}
        </div>
    </nav>
{% endif %}
