{% set category = product.getCategory() %} {% set parent_category = category.getParent() %}

{{ product.name }}

{% if parent_category %} {{ parent_category }}  /  {% endif %} {{ category }}

{# CAROUSEL #} {% include 'components/product/_carousel.html.twig' with { product, category, } %} {# CITY #} {% set city = product.owner.address ? product.owner.address.subAndlocality : '' %} {% if city is not empty %}
{{ city }}
{% endif %} {# DESCRIPTION #} {% if product.description is not empty %}
{% if product.description|length > 150 %}

{{ product.description|nl2br }}

{{ 'product.info_more'|trans }} {% else %}

{{ product.description|nl2br }}

{% endif %}
{% endif %} {# AGE #} {% if product.age is not null %}
{# TODO: Remove this translation form 'security' group #}

{{ 'product.info_age'|trans }} : {{ product.age }}

{% endif %} {# DEPOSIT #} {% if product.deposit is not null and product.deposit != 0 %}

{{ 'product.info_deposit'|trans }} : {{ product.getDepositReal()|format_currency(product.currency) }}

{% endif %} {# DURATION (ONLY SERVICES) #} {% if product.duration is not null %}

{{ 'product.info_duration'|trans }}{{ product.duration }}

{% endif %} {# PREFERRED LOAN DURATION (ONLY OBJECTS) #} {% if product.preferredLoanDuration is not null %}

{{ 'product.info_loan_duration'|trans() }}{{ product.preferredLoanDuration }}

{% endif %}