{% for representative in physicalLegalRepresentativeLoop %}
{% if not loop.first %}
<br>et
{% endif %}
{% if representative.person.type == 'LEGAL' %}
{{ representative.person.legalName }},
{% if representative.person.legalStatus|trim %}
{{ representative.person.legalStatus|readable_enum('LegalStatusTypeEnum')|trans }},
{% endif %}
{% if representative.shareCapital %}
au capital de {{ representative.shareCapital }} euros,
{% endif %}
{% if representative.person.address.fullAddress|trim %}
dont le siège social est situé au {{ representative.person.address.fullAddress }},
{% endif %}
{% if representative.person.SIRET|trim %}
immatriculée
{% if representative.person.registrationCity|trim %}
au RCS de {{ representative.person.registrationCity }},
{% endif %}
sous le numéro {{ representative.person.SIRET }},
{% endif %}
{% set firstPhysicalChildren = null %}
{% set isBreak = false %}
{% for children in representative.children %}
{% if isBreak == false and children.person.type == 'PHYSICAL' %}
{% set firstPhysicalChildren = children %}
{% set isBreak = true %}
{% endif %}
{% endfor %}
{% if firstPhysicalChildren.person.familyName|trim or firstPhysicalChildren.person.givenName|trim %}
représentée par son
{{ firstPhysicalChildren.quality|readable_enum('LegalRepresentativeQualityTypeEnum')|trans }}
{{ firstPhysicalChildren.person.honorificPrefix|readable_enum('GenderTypeEnum')|trans }}
{{ firstPhysicalChildren.person.familyName|upper }} {{ firstPhysicalChildren.person.givenName }},
{% if firstPhysicalChildren.person.address.fullAddress|trim %}
demeurant {{ firstPhysicalChildren.person.address.fullAddress }},
{% endif %}
{% endif %}
{% if loop.first %}
{% include 'documents/annexes/contrat/residence_designation_block_society.html.twig' %}
{% endif %}
{% else %}
{{ representative.person.honorificPrefix|readable_enum('GenderTypeEnum')|trans }}
{{ representative.person.familyName|upper }}
{{ representative.person.givenName }}{{ not representative.person.address.fullAddress|trim ? ',' }}
{% if representative.person.address.fullAddress|trim %}
demeurant {{ representative.person.address.fullAddress }},
{% endif %}
{% if loop.first %}
{% include 'documents/annexes/contrat/residence_designation_block_society.html.twig' %}
{% endif %}
{% endif %}
{% set quality = representative.quality|readable_enum('LegalRepresentativeQualityTypeEnum')|trans %}
en qualité de futur {{ quality }}{{ loop.last ? '.' : ',' }}
{% endfor %}