{% set isChild = isChild is defined and isChild %}
<fieldset class="fieldset">
    {% if isChild %}
        <legend class="lgd-collapse"><a href="javascript:void(0)"><i class="fa fa-plus"></i></a> {{ key|replace({'_': ' '})|capitalize }}</legend>
    {% else %}
        <legend>{{ key|replace({'_': ' '})|capitalize }}</legend>
    {% endif %}
    <div {{ isChild ? 'style="display: none;"' : '' }}>
        {% for key, data in data %}
            {% if data|isArray %}
                {% include '@RxConnexion/AuditTrail/details_data.html.twig' with {key: key, data: data, isChild: true} %}
            {% else %}
                <div>{{ key|replace({'_': ' '})|capitalize }}: {{ data }}</div>
            {% endif %}
        {% endfor %}
    </div>
</fieldset>