{% set isCompound = compound is defined and compound|length > 0 %}
{% set establishingYear = null %}
{% set numberOfProjects = null %}
{% set projectsInhabited = null %}
{% set projectsDelivered = null %}
{% set projectsUnderConstruction = null %}
{% set developerName = '' %}
{% set userLogo = listing.user.logo ? listing.user.logo.file : null %}
{% set logo = listing.logo ? listing.logo.file : null %}
{% set developerLogo = logo ? logo : userLogo %}
{% if isCompound %}
{% set establishingYear = compound.establishingYear %}
{% set numberOfProjects = compound.numberOfProjects %}
{% set projectsInhabited = compound.numberOfProjectsInhabited %}
{% set projectsDelivered = compound.numberOfProjectsDelivered %}
{% set projectsUnderConstruction = compound.numberOfProjectsUnderConstruction %}
{% set developerName = compound.developerName %}
{% endif %}
{% set imageSize = 56 %}
<div class="users-cards p-0">
<div class="users-card vertical no-border p-0" >
<div class="user-info d-flex w-100">
<div class="user-card__img-container user-card__img-container_ml-0 rounded-circle mt-2 ">
{% if developerLogo %}
<img class="user-card__img lazyload"
src="{{ asset('images/placeholder.svg') }}"
data-src="{{ custom_vich_uploader_asset(developerLogo, 'file') | thumbnail('logo')}}"
alt="company-logo" width="{{imageSize}}" height="{{imageSize}}">
{% else %}
<img class="user-card__img lazyload rounded-circle user-card__img_empty"
src="" data-src="{{ asset('images/emblem.svg') }}" alt="compound-logo" width="{{imageSize}}" height="{{imageSize}}">
{% endif %}
</div>
<div class="user-card__data w-80 np-border">
<div class="user-card__name">
<b class="user-card__name-text" title="{{ developerName }}">{{ developerName }}</b>
</div>
<div class="user-card__stat">
<span class="user-card__joined-text w-100">
{% if establishingYear is not null %}
{{ 'labels.compound.from'|trans }} {{ establishingYear }} ,
{% endif %}
{% if numberOfProjects is not null %}
{{ numberOfProjects }} {{ 'labels.compound.projects_title'|trans }}
{% endif %}
</span>
</div>
<div class="user-properties">
<div class="properties">
<div class="projects mt-3">
{% if projectsInhabited is not null %}
<div class="projects-details col-auto">
<label class="font-weight-bold count">{{ projectsInhabited }}</label>
<label class="font-weight-normal sub-text">{{ 'labels.compound.inhabited'|trans }}</label>
</div>
{% endif %}
{% if projectsDelivered is not null %}
<div class="projects-details col-auto">
<label class="font-weight-bold count">{{ projectsDelivered }}</label>
<label class="font-weight-normal sub-text">{{ 'labels.compound.delivered'|trans }}</label>
</div>
{% endif %}
{% if projectsUnderConstruction is not null %}
<div class="projects-details col-auto">
<label class="font-weight-bold count">{{ projectsUnderConstruction }}</label>
<label class="font-weight-normal sub-text">{{ 'labels.compound.in_progress'|trans }}</label>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>