{% if not opportunites|length %} {% else %}
{% set idx = 0 %} {% for opportunity in opportunites %} {% set idx = idx + 1 %}
{% if app.user and is_granted('ROLE_TRAITER_OPPORTUNITY_CRM') and opportunity.id in is_next_level and app.request.get('nature') == 'mine' %} {% elseif app.user and is_granted('ROLE_TRAITER_OPPORTUNITY_CRM') and opportunity.id in is_finish and app.request.get('nature') == 'mine' %} {% endif %}
{% include('CRM/OpportunityCRM/tabs/tab_action.html.twig') %} {% if app.user and app.request.get('nature') == 'mine' %} logo client {% elseif app.user and app.request.get('nature') == 'all' %} profile-image {% endif %}
{{ opportunity.client.abreviation }} - {{ opportunity.client.paysName }}
{{ opportunity.statutValue }}

Titre : {{ opportunity.title[:50] }} {% if opportunity.title|length > 50 %}...{% endif %}

Type : {{ opportunity.typeValue }} {% if opportunity.type == 'T02' and opportunity.typeSoumission %}- {{ opportunity.typeSoumissionAbreviation }} {% endif %}

{#% if opportunity.type == 'T02' and opportunity.typeSoumission %}

Type de soumission : {{ opportunity.typeSoumissionValue }}

{% endif %#}

Date de création : {{ opportunity.dateCreation|date('Y-m-d')}}

{% if opportunity.dateSoumission %}

Date de soumission : {{ opportunity.dateSoumission|date('Y-m-d')}}

{% endif %} {% if opportunity.projet|length %}

Projet(s) : {% for projet in opportunity.projet %} {% if cpt > 0 %} - {% endif %}{{ projet.intitule }} {% set cpt = cpt + 1 %} {% endfor %}

{% endif %} {% if opportunity.budget %}

Budget : {{ opportunity.budget|number_format(0,'',' ') }} {{ opportunity.unityAbreviation }}

{% endif %} {% if opportunity.montantCaution %}

Montant caution : {{ opportunity.montantCaution|number_format(0,'',' ') }} {{ opportunity.unityAbreviation }}

{% endif %}
{% endfor %}
{% endif %}