{% extends 'backend/base.html.twig' %}
{% block title %}
Cotisation {{ cotisation.year ~ (cotisation.entreprise ? ' - ' ~ cotisation.entreprise.raisonSocial) }}
{% endblock %}
{% block content %}
{% embed 'backend/partials/_breadcrumb.html.twig' with {
datas: [{
label: 'Cotisations',
url: path('advanced_search', {entity: 'cotisation'})
}, {
label: cotisation.year ~ (cotisation.entreprise ? ' - ' ~ cotisation.entreprise.raisonSocial) ~ ' (#' ~ cotisation.id ~ ')'
}],
buttons: [
{
display: is_granted('ROLE_UPDATE_ENTITY') ? true : false,
url: path('edit_cotisation', {'id': cotisation.id}),
class: 'btn btn-sm btn-primary',
icon: 'fas fa-edit',
label: 'Modifier'
}
]
} %}
{% block other_button_after %}
{% if
(cotisation.associetedOrder.status ?? '') in [
constant('App\\Entity\\Order::STATUS_WAITING_PAYMENT'),
constant('App\\Entity\\Order::STATUS_PAID'),
constant('App\\Entity\\Order::STATUS_SHIPPED'),
constant('App\\Entity\\Order::STATUS_TREATED'),
]
%}
<a
href="{{ path('download_invoice', {id: cotisation.associetedOrder.id}) }}"
target="_blank"
class="btn btn-sm btn-primary"
>
<i class="fa-solid fa-download"></i> Facture (pdf)
</a>
{% endif %}
{% endblock %}
{% endembed %}
{% include 'common/cotisation/_summary_cotisation.html.twig' with {
title: 'Cotisation ' ~ (cotisation.cotisationType is not null ? cotisation.cotisationType.name) ~ ' ' ~ cotisation.year,
displayStatus: true,
displayPaymentDate: true,
displayFirm: true,
displayComment: true,
displayProofOfPayment: true
} %}
{% endblock %}