{# templates/service/index.html.twig #} {% extends 'base.html.twig' %} {% block title %}{{ 'app.service.page_title'|trans }}{% endblock %} {% block body %}

{{ 'app.service.page_title'|trans }}

{% set currentGroup = null %} {% for service in services %} {% set group = service.billable ? 'app.service.billable'|trans : 'app.service.not_billable'|trans %} {% if group != currentGroup %} {% if currentGroup is not null %}
{% endif %}
{{ group }}
{% set currentGroup = group %} {% endif %}
{{ service.name }}
{% if service.isArchived() %} {% else %} {% endif %}
{% if not service.isArchived() %} {% endif %}
{% else %}

{{ 'app.service.empty'|trans }}

{% endfor %} {% if currentGroup is not null %}
{% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {{ encore_entry_script_tags('crud') }} {% endblock %}