{% set editlink = user.id is defined and profile.id == user.id ? path('profile_admin_index') : null
%}
{% embed 'network/widget/widget.html.twig'
with { title: 'Details und Kontakt'|trans, editlink: editlink }
%}
{% block content %}
<div class="flex">
<div class="w-4 mr-4">
{% include 'icons/user.svg.twig' with { class: 'w-4 h-4' } %}
</div>
<address class="flex flex-col not-italic leading-snug">
<span class="font-medium">{{ profile.name }}</span>
{% if
profile.profileType == 'company'
or (user is defined and user.id is defined and user.id == profile.id) %}
<span>{{ profile.street }} {{ profile.housenumber }}</span>
<span>{{ profile.postalCode }} {{ profile.city }}</span>
<span>{{ profile.country|country_name }}</span>
{% endif %}
</address>
</div>
{% endblock %}
{% endembed %}