<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* backend/entreprise/show_cotisation.html.twig */
class __TwigTemplate_855d22ef49e9c99cd8cf16f1ee12ae3a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "backend/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "backend/entreprise/show_cotisation.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "backend/entreprise/show_cotisation.html.twig"));
$this->parent = $this->loadTemplate("backend/base.html.twig", "backend/entreprise/show_cotisation.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Cotisation entreprise ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 3, $this->source); })()), "raisonSocial", [], "any", false, false, false, 3), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 5
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 6
echo "
";
// line 7
$this->loadTemplate("backend/partials/_breadcrumb.html.twig", "backend/entreprise/show_cotisation.html.twig", 7)->display(twig_array_merge($context, ["datas" => [0 => ["label" => "Entreprises", "url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("advanced_search", ["entity" => "entreprise"])], 1 => ["label" => (((twig_get_attribute($this->env, $this->source, // line 11
(isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 11, $this->source); })()), "raisonSocial", [], "any", false, false, false, 11) . " <i>(#") . twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 11, $this->source); })()), "id", [], "any", false, false, false, 11)) . ")</i>"), "url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_entreprise", ["id" => twig_get_attribute($this->env, $this->source, // line 12
(isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 12, $this->source); })()), "id", [], "any", false, false, false, 12)])], 2 => ["label" => "Cotisation(s)"]], "buttons" => [0 => ["display" => true, "url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_entreprise", ["id" => twig_get_attribute($this->env, $this->source, // line 20
(isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 20, $this->source); })()), "id", [], "any", false, false, false, 20)]), "class" => "btn btn-sm btn-secondary", "icon" => "fas fa-chevron-left", "label" => "Retour"]]]));
// line 27
echo "
<div class=\"card\">
<div class=\"card-body\">
<div class=\"table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>Année</th>
<th>Statut</th>
<th>Total TTC</th>
<th>Date de paiement</th>
<th class=\"text-center\">Action(s)</th>
</tr>
</thead>
<tbody>
";
// line 42
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 42, $this->source); })()), "cotisations", [], "any", false, false, false, 42), function ($__el__) use ($context, $macros) { $context["el"] = $__el__; return (twig_get_attribute($this->env, $this->source, (isset($context["el"]) || array_key_exists("el", $context) ? $context["el"] : (function () { throw new RuntimeError('Variable "el" does not exist.', 42, $this->source); })()), "status", [], "any", false, false, false, 42) != twig_constant("App\\Entity\\Order::STATUS_ARCHIVED")); }));
foreach ($context['_seq'] as $context["key"] => $context["cotisation"]) {
// line 43
echo " <tr>
<td>
<a href=\"";
// line 45
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_cotisation", ["id" => twig_get_attribute($this->env, $this->source, $context["cotisation"], "id", [], "any", false, false, false, 45)]), "html", null, true);
echo "\">
";
// line 46
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotisation"], "year", [], "any", false, false, false, 46), "html", null, true);
echo "
</a>
</td>
<td>";
// line 49
echo $this->extensions['App\Twig\StatusExtension']->bagdeStatusCotisation(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotisation"], "cotisationStatut", [], "any", false, false, false, 49), "id", [], "any", false, false, false, 49));
echo "</td>
<td>";
// line 50
((twig_get_attribute($this->env, $this->source, $context["cotisation"], "priceTtc", [], "any", false, false, false, 50)) ? (print (twig_escape_filter($this->env, (twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotisation"], "priceTtc", [], "any", false, false, false, 50), 2, ",", " ") . " €"), "html", null, true))) : (print ("")));
echo "</td>
<td>";
// line 51
((twig_get_attribute($this->env, $this->source, $context["cotisation"], "datePaiement", [], "any", false, false, false, 51)) ? (print (twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotisation"], "datePaiement", [], "any", false, false, false, 51), "d/m/Y"), "html", null, true))) : (print ("")));
echo "</td>
<td class=\"text-center\">
<button class=\"btn btn-outline-secondary btn-icon btn-rounded dropdown-toggle custom-dropdown\" type=\"button\" id=\"dropdownMenu_";
// line 53
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
<i class=\"fa-solid fa-ellipsis\"></i>
</button>
<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_";
// line 56
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\">
<li>
<a class=\"dropdown-item\" href=\"";
// line 58
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_cotisation", ["id" => twig_get_attribute($this->env, $this->source, $context["cotisation"], "id", [], "any", false, false, false, 58)]), "html", null, true);
echo "\">
<i class=\"fas fa-eye\"></i> Consulter
</a>
</li>
";
// line 62
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 63
echo " <li>
<a class=\"dropdown-item\" href=\"";
// line 64
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edit_cotisation", ["id" => twig_get_attribute($this->env, $this->source, $context["cotisation"], "id", [], "any", false, false, false, 64)]), "html", null, true);
echo "\">
<i class=\"fas fa-edit\"></i> Editer
</a>
</li>
";
}
// line 69
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_DELETE_ENTITY")) {
// line 70
echo " <li>
<a
class=\"dropdown-item\"
href=\"#\"
data-controller=\"confirm-delete\"
data-confirm-delete-url-value=\"";
// line 75
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("archive_cotisation", ["id" => twig_get_attribute($this->env, $this->source, $context["cotisation"], "id", [], "any", false, false, false, 75)]), "html", null, true);
echo "\"
data-confirm-delete-message-value=\"Etes-vous sûr de vouloir archiver cette cotisation ?\"
data-confirm-delete-token-value=\"";
// line 77
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken(("cotisation_" . twig_get_attribute($this->env, $this->source, $context["cotisation"], "id", [], "any", false, false, false, 77))), "html", null, true);
echo "\"
data-confirm-delete-action-value=\"reload\"
>
<i class=\"fas fa-archive\"></i> Archiver
</a>
</li>
";
}
// line 84
echo " </ul>
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['cotisation'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 88
echo " </tbody>
</table>
</div>
</div>
</div>
";
// line 94
if (twig_length_filter($this->env, twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 94, $this->source); })()), "cotisations", [], "any", false, false, false, 94), function ($__el__) use ($context, $macros) { $context["el"] = $__el__; return (twig_get_attribute($this->env, $this->source, (isset($context["el"]) || array_key_exists("el", $context) ? $context["el"] : (function () { throw new RuntimeError('Variable "el" does not exist.', 94, $this->source); })()), "status", [], "any", false, false, false, 94) == twig_constant("App\\Entity\\Order::STATUS_ARCHIVED")); }))) {
// line 95
echo " <div class=\"card\">
<div class=\"card-body\">
<h4 class=\"mb-4\">Cotisations archivées</h4>
<div class=\"table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>Année</th>
<th>Statut</th>
<th>Total TTC</th>
<th>Date de paiement</th>
<th class=\"text-center\">Action(s)</th>
</tr>
</thead>
<tbody>
";
// line 111
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 111, $this->source); })()), "cotisations", [], "any", false, false, false, 111), function ($__el__) use ($context, $macros) { $context["el"] = $__el__; return (twig_get_attribute($this->env, $this->source, (isset($context["el"]) || array_key_exists("el", $context) ? $context["el"] : (function () { throw new RuntimeError('Variable "el" does not exist.', 111, $this->source); })()), "status", [], "any", false, false, false, 111) == twig_constant("App\\Entity\\Order::STATUS_ARCHIVED")); }));
foreach ($context['_seq'] as $context["key"] => $context["cotisation"]) {
// line 112
echo " <tr>
<td>
<a href=\"";
// line 114
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_cotisation", ["id" => twig_get_attribute($this->env, $this->source, $context["cotisation"], "id", [], "any", false, false, false, 114)]), "html", null, true);
echo "\">
";
// line 115
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotisation"], "year", [], "any", false, false, false, 115), "html", null, true);
echo "
</a>
</td>
<td>";
// line 118
echo $this->extensions['App\Twig\StatusExtension']->bagdeStatusCotisation(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotisation"], "cotisationStatut", [], "any", false, false, false, 118), "id", [], "any", false, false, false, 118));
echo "</td>
<td>";
// line 119
((twig_get_attribute($this->env, $this->source, $context["cotisation"], "priceTtc", [], "any", false, false, false, 119)) ? (print (twig_escape_filter($this->env, (twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotisation"], "priceTtc", [], "any", false, false, false, 119), 2, ",", " ") . " €"), "html", null, true))) : (print ("")));
echo "</td>
<td>";
// line 120
((twig_get_attribute($this->env, $this->source, $context["cotisation"], "datePaiement", [], "any", false, false, false, 120)) ? (print (twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotisation"], "datePaiement", [], "any", false, false, false, 120), "d/m/Y"), "html", null, true))) : (print ("")));
echo "</td>
<td class=\"text-center\">
<button class=\"btn btn-outline-secondary btn-icon btn-rounded dropdown-toggle custom-dropdown\" type=\"button\" id=\"dropdownMenu_";
// line 122
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
<i class=\"fa-solid fa-ellipsis\"></i>
</button>
<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_";
// line 125
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\">
<li>
<a class=\"dropdown-item\" href=\"";
// line 127
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_cotisation", ["id" => twig_get_attribute($this->env, $this->source, $context["cotisation"], "id", [], "any", false, false, false, 127)]), "html", null, true);
echo "\">
<i class=\"fas fa-eye\"></i> Consulter
</a>
</li>
";
// line 131
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 132
echo " <li>
<a class=\"dropdown-item\" href=\"";
// line 133
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edit_cotisation", ["id" => twig_get_attribute($this->env, $this->source, $context["cotisation"], "id", [], "any", false, false, false, 133)]), "html", null, true);
echo "\">
<i class=\"fas fa-edit\"></i> Editer
</a>
</li>
";
}
// line 138
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_DELETE_ENTITY")) {
// line 139
echo " <li>
<a
class=\"dropdown-item\"
href=\"#\"
data-controller=\"confirm-delete\"
data-confirm-delete-url-value=\"";
// line 144
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("archive_cotisation", ["id" => twig_get_attribute($this->env, $this->source, $context["cotisation"], "id", [], "any", false, false, false, 144)]), "html", null, true);
echo "\"
data-confirm-delete-message-value=\"Etes-vous sûr de vouloir archiver cette cotisation ?\"
data-confirm-delete-token-value=\"";
// line 146
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken(("cotisation_" . twig_get_attribute($this->env, $this->source, $context["cotisation"], "id", [], "any", false, false, false, 146))), "html", null, true);
echo "\"
data-confirm-delete-action-value=\"reload\"
>
<i class=\"fas fa-archive\"></i> Archiver
</a>
</li>
";
}
// line 153
echo " </ul>
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['cotisation'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 157
echo " </tbody>
</table>
</div>
</div>
</div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "backend/entreprise/show_cotisation.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 334 => 157, 325 => 153, 315 => 146, 310 => 144, 303 => 139, 300 => 138, 292 => 133, 289 => 132, 287 => 131, 280 => 127, 275 => 125, 269 => 122, 264 => 120, 260 => 119, 256 => 118, 250 => 115, 246 => 114, 242 => 112, 238 => 111, 220 => 95, 218 => 94, 210 => 88, 201 => 84, 191 => 77, 186 => 75, 179 => 70, 176 => 69, 168 => 64, 165 => 63, 163 => 62, 156 => 58, 151 => 56, 145 => 53, 140 => 51, 136 => 50, 132 => 49, 126 => 46, 122 => 45, 118 => 43, 114 => 42, 97 => 27, 95 => 20, 94 => 12, 93 => 11, 92 => 7, 89 => 6, 79 => 5, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'backend/base.html.twig' %}
{% block title %}Cotisation entreprise {{ entreprise.raisonSocial }}{% endblock %}
{% block content %}
{% include 'backend/partials/_breadcrumb.html.twig' with {
datas: [
{label: 'Entreprises', url: path('advanced_search', {entity: 'entreprise'})},
{
label: entreprise.raisonSocial ~ ' <i>(#' ~ entreprise.id ~ ')</i>',
url: path('show_entreprise', {'id': entreprise.id})
}, {
label: 'Cotisation(s)'
}
],
buttons: [
{
display: true,
url: path('show_entreprise', {'id': entreprise.id }),
class: 'btn btn-sm btn-secondary',
icon: 'fas fa-chevron-left',
label: 'Retour'
}
]
} %}
<div class=\"card\">
<div class=\"card-body\">
<div class=\"table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>Année</th>
<th>Statut</th>
<th>Total TTC</th>
<th>Date de paiement</th>
<th class=\"text-center\">Action(s)</th>
</tr>
</thead>
<tbody>
{% for key, cotisation in entreprise.cotisations|filter(el => el.status != constant('App\\\\Entity\\\\Order::STATUS_ARCHIVED')) %}
<tr>
<td>
<a href=\"{{ path('show_cotisation',{'id': cotisation.id }) }}\">
{{ cotisation.year }}
</a>
</td>
<td>{{ bagdeStatusCotisation(cotisation.cotisationStatut.id) }}</td>
<td>{{ cotisation.priceTtc ? cotisation.priceTtc|number_format(2, ',', ' ') ~ ' €' }}</td>
<td>{{ cotisation.datePaiement ? cotisation.datePaiement|date('d/m/Y') }}</td>
<td class=\"text-center\">
<button class=\"btn btn-outline-secondary btn-icon btn-rounded dropdown-toggle custom-dropdown\" type=\"button\" id=\"dropdownMenu_{{ key }}\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
<i class=\"fa-solid fa-ellipsis\"></i>
</button>
<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_{{ key }}\">
<li>
<a class=\"dropdown-item\" href=\"{{ path('show_cotisation',{'id': cotisation.id }) }}\">
<i class=\"fas fa-eye\"></i> Consulter
</a>
</li>
{% if is_granted('ROLE_ADMIN') %}
<li>
<a class=\"dropdown-item\" href=\"{{ path('edit_cotisation',{'id': cotisation.id }) }}\">
<i class=\"fas fa-edit\"></i> Editer
</a>
</li>
{% endif %}
{% if is_granted('ROLE_DELETE_ENTITY') %}
<li>
<a
class=\"dropdown-item\"
href=\"#\"
data-controller=\"confirm-delete\"
data-confirm-delete-url-value=\"{{ path('archive_cotisation', {id: cotisation.id}) }}\"
data-confirm-delete-message-value=\"Etes-vous sûr de vouloir archiver cette cotisation ?\"
data-confirm-delete-token-value=\"{{ csrf_token('cotisation_' ~ cotisation.id) }}\"
data-confirm-delete-action-value=\"reload\"
>
<i class=\"fas fa-archive\"></i> Archiver
</a>
</li>
{% endif %}
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% if entreprise.cotisations|filter(el => el.status == constant('App\\\\Entity\\\\Order::STATUS_ARCHIVED'))|length %}
<div class=\"card\">
<div class=\"card-body\">
<h4 class=\"mb-4\">Cotisations archivées</h4>
<div class=\"table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>Année</th>
<th>Statut</th>
<th>Total TTC</th>
<th>Date de paiement</th>
<th class=\"text-center\">Action(s)</th>
</tr>
</thead>
<tbody>
{% for key, cotisation in entreprise.cotisations|filter(el => el.status == constant('App\\\\Entity\\\\Order::STATUS_ARCHIVED')) %}
<tr>
<td>
<a href=\"{{ path('show_cotisation',{'id': cotisation.id }) }}\">
{{ cotisation.year }}
</a>
</td>
<td>{{ bagdeStatusCotisation(cotisation.cotisationStatut.id) }}</td>
<td>{{ cotisation.priceTtc ? cotisation.priceTtc|number_format(2, ',', ' ') ~ ' €' }}</td>
<td>{{ cotisation.datePaiement ? cotisation.datePaiement|date('d/m/Y') }}</td>
<td class=\"text-center\">
<button class=\"btn btn-outline-secondary btn-icon btn-rounded dropdown-toggle custom-dropdown\" type=\"button\" id=\"dropdownMenu_{{ key }}\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
<i class=\"fa-solid fa-ellipsis\"></i>
</button>
<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_{{ key }}\">
<li>
<a class=\"dropdown-item\" href=\"{{ path('show_cotisation',{'id': cotisation.id }) }}\">
<i class=\"fas fa-eye\"></i> Consulter
</a>
</li>
{% if is_granted('ROLE_ADMIN') %}
<li>
<a class=\"dropdown-item\" href=\"{{ path('edit_cotisation',{'id': cotisation.id }) }}\">
<i class=\"fas fa-edit\"></i> Editer
</a>
</li>
{% endif %}
{% if is_granted('ROLE_DELETE_ENTITY') %}
<li>
<a
class=\"dropdown-item\"
href=\"#\"
data-controller=\"confirm-delete\"
data-confirm-delete-url-value=\"{{ path('archive_cotisation', {id: cotisation.id}) }}\"
data-confirm-delete-message-value=\"Etes-vous sûr de vouloir archiver cette cotisation ?\"
data-confirm-delete-token-value=\"{{ csrf_token('cotisation_' ~ cotisation.id) }}\"
data-confirm-delete-action-value=\"reload\"
>
<i class=\"fas fa-archive\"></i> Archiver
</a>
</li>
{% endif %}
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endif %}
{% endblock %}", "backend/entreprise/show_cotisation.html.twig", "/var/www/html/symfony/templates/backend/entreprise/show_cotisation.html.twig");
}
}