{% if doc.documents|length > 0 %}
{% else %}
{% endif %}
{{ icons[doc.type]|default(icons['default'])|raw }}
N°{{ doc.internalNbr }}
{{ doc.type|capitalize }}
{{ doc.status|replace({'-':' '})|capitalize }}
{% if doc.createdAt is defined %}
{{ doc.createdAt|date('d/m/Y') }}
{% endif %}
{% if doc.documents|length > 0 %}
{% for d in doc.documents %}
{% include '@admin/document/_document_tree_branch.html.twig' with {
doc: d,
icons: icons,
status_classes: status_classes,
current_id: current_id
} %}
{% endfor %}
{% endif %}