var/cache/dev/twig/a6/a6c88643aae58a191daf739e068e304d.php line 39

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* backend/entreprise/show_cotisation.html.twig */
  14. class __TwigTemplate_855d22ef49e9c99cd8cf16f1ee12ae3a extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "backend/base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""backend/entreprise/show_cotisation.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""backend/entreprise/show_cotisation.html.twig"));
  39.         $this->parent $this->loadTemplate("backend/base.html.twig""backend/entreprise/show_cotisation.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         echo "Cotisation entreprise ";
  55.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse3), "html"nulltrue);
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.         
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  60.     }
  61.     // line 5
  62.     public function block_content($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  69.         // line 6
  70.         echo "
  71.     ";
  72.         // line 7
  73.         $this->loadTemplate("backend/partials/_breadcrumb.html.twig""backend/entreprise/show_cotisation.html.twig"7)->display(twig_array_merge($context, ["datas" => [=> ["label" => "Entreprises""url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("advanced_search", ["entity" => "entreprise"])], => ["label" => (((twig_get_attribute($this->env$this->source,         // line 11
  74. (isset($context["entreprise"]) || array_key_exists("entreprise"$context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.'11$this->source); })()), "raisonSocial", [], "any"falsefalsefalse11) . " <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"falsefalsefalse11)) . ")</i>"), "url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_entreprise", ["id" => twig_get_attribute($this->env$this->source,         // line 12
  75. (isset($context["entreprise"]) || array_key_exists("entreprise"$context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.'12$this->source); })()), "id", [], "any"falsefalsefalse12)])], => ["label" => "Cotisation(s)"]], "buttons" => [=> ["display" => true"url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_entreprise", ["id" => twig_get_attribute($this->env$this->source,         // line 20
  76. (isset($context["entreprise"]) || array_key_exists("entreprise"$context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.'20$this->source); })()), "id", [], "any"falsefalsefalse20)]), "class" => "btn btn-sm btn-secondary""icon" => "fas fa-chevron-left""label" => "Retour"]]]));
  77.         // line 27
  78.         echo "
  79.     <div class=\"card\">
  80.         <div class=\"card-body\">
  81.             <div class=\"table-responsive\">
  82.                 <table class=\"table\">
  83.                     <thead>
  84.                         <tr>
  85.                             <th>Année</th>
  86.                             <th>Statut</th>
  87.                             <th>Total TTC</th>
  88.                             <th>Date de paiement</th>
  89.                             <th class=\"text-center\">Action(s)</th>
  90.                         </tr>
  91.                     </thead>
  92.                     <tbody>
  93.                         ";
  94.         // line 42
  95.         $context['_parent'] = $context;
  96.         $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->envtwig_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"falsefalsefalse42), 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"falsefalsefalse42) != twig_constant("App\\Entity\\Order::STATUS_ARCHIVED")); }));
  97.         foreach ($context['_seq'] as $context["key"] => $context["cotisation"]) {
  98.             // line 43
  99.             echo "                            <tr>
  100.                                 <td>
  101.                                     <a href=\"";
  102.             // line 45
  103.             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"falsefalsefalse45)]), "html"nulltrue);
  104.             echo "\">
  105.                                         ";
  106.             // line 46
  107.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cotisation"], "year", [], "any"falsefalsefalse46), "html"nulltrue);
  108.             echo "
  109.                                     </a>
  110.                                 </td>
  111.                                 <td>";
  112.             // line 49
  113.             echo $this->extensions['App\Twig\StatusExtension']->bagdeStatusCotisation(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["cotisation"], "cotisationStatut", [], "any"falsefalsefalse49), "id", [], "any"falsefalsefalse49));
  114.             echo "</td>
  115.                                 <td>";
  116.             // line 50
  117.             ((twig_get_attribute($this->env$this->source$context["cotisation"], "priceTtc", [], "any"falsefalsefalse50)) ? (print (twig_escape_filter($this->env, (twig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["cotisation"], "priceTtc", [], "any"falsefalsefalse50), 2","" ") . " €"), "html"nulltrue))) : (print ("")));
  118.             echo "</td>
  119.                                 <td>";
  120.             // line 51
  121.             ((twig_get_attribute($this->env$this->source$context["cotisation"], "datePaiement", [], "any"falsefalsefalse51)) ? (print (twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["cotisation"], "datePaiement", [], "any"falsefalsefalse51), "d/m/Y"), "html"nulltrue))) : (print ("")));
  122.             echo "</td>
  123.                                 <td class=\"text-center\">
  124.                                     <button class=\"btn btn-outline-secondary btn-icon btn-rounded dropdown-toggle custom-dropdown\" type=\"button\" id=\"dropdownMenu_";
  125.             // line 53
  126.             echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  127.             echo "\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
  128.                                         <i class=\"fa-solid fa-ellipsis\"></i>
  129.                                     </button>
  130.                                     <ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_";
  131.             // line 56
  132.             echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  133.             echo "\">
  134.                                         <li>
  135.                                             <a class=\"dropdown-item\" href=\"";
  136.             // line 58
  137.             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"falsefalsefalse58)]), "html"nulltrue);
  138.             echo "\">
  139.                                                 <i class=\"fas fa-eye\"></i> Consulter
  140.                                             </a>
  141.                                         </li>
  142.                                         ";
  143.             // line 62
  144.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  145.                 // line 63
  146.                 echo "                                            <li>
  147.                                                 <a class=\"dropdown-item\" href=\"";
  148.                 // line 64
  149.                 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"falsefalsefalse64)]), "html"nulltrue);
  150.                 echo "\">
  151.                                                     <i class=\"fas fa-edit\"></i> Editer
  152.                                                 </a>
  153.                                             </li>
  154.                                         ";
  155.             }
  156.             // line 69
  157.             echo "                                        ";
  158.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_DELETE_ENTITY")) {
  159.                 // line 70
  160.                 echo "                                            <li>
  161.                                                 <a
  162.                                                         class=\"dropdown-item\"
  163.                                                         href=\"#\"
  164.                                                         data-controller=\"confirm-delete\"
  165.                                                         data-confirm-delete-url-value=\"";
  166.                 // line 75
  167.                 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"falsefalsefalse75)]), "html"nulltrue);
  168.                 echo "\"
  169.                                                         data-confirm-delete-message-value=\"Etes-vous sûr de vouloir archiver cette cotisation ?\"
  170.                                                         data-confirm-delete-token-value=\"";
  171.                 // line 77
  172.                 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"falsefalsefalse77))), "html"nulltrue);
  173.                 echo "\"
  174.                                                         data-confirm-delete-action-value=\"reload\"
  175.                                                 >
  176.                                                     <i class=\"fas fa-archive\"></i> Archiver
  177.                                                 </a>
  178.                                             </li>
  179.                                         ";
  180.             }
  181.             // line 84
  182.             echo "                                    </ul>
  183.                                 </td>
  184.                             </tr>
  185.                         ";
  186.         }
  187.         $_parent $context['_parent'];
  188.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['cotisation'], $context['_parent'], $context['loop']);
  189.         $context array_intersect_key($context$_parent) + $_parent;
  190.         // line 88
  191.         echo "                    </tbody>
  192.                 </table>
  193.             </div>
  194.         </div>
  195.     </div>
  196.     ";
  197.         // line 94
  198.         if (twig_length_filter($this->envtwig_array_filter($this->envtwig_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"falsefalsefalse94), 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"falsefalsefalse94) == twig_constant("App\\Entity\\Order::STATUS_ARCHIVED")); }))) {
  199.             // line 95
  200.             echo "        <div class=\"card\">
  201.             <div class=\"card-body\">
  202.                 <h4 class=\"mb-4\">Cotisations archivées</h4>
  203.                 <div class=\"table-responsive\">
  204.                     <table class=\"table\">
  205.                         <thead>
  206.                             <tr>
  207.                                 <th>Année</th>
  208.                                 <th>Statut</th>
  209.                                 <th>Total TTC</th>
  210.                                 <th>Date de paiement</th>
  211.                                 <th class=\"text-center\">Action(s)</th>
  212.                             </tr>
  213.                         </thead>
  214.                         <tbody>
  215.                             ";
  216.             // line 111
  217.             $context['_parent'] = $context;
  218.             $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->envtwig_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"falsefalsefalse111), 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"falsefalsefalse111) == twig_constant("App\\Entity\\Order::STATUS_ARCHIVED")); }));
  219.             foreach ($context['_seq'] as $context["key"] => $context["cotisation"]) {
  220.                 // line 112
  221.                 echo "                                <tr>
  222.                                     <td>
  223.                                         <a href=\"";
  224.                 // line 114
  225.                 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"falsefalsefalse114)]), "html"nulltrue);
  226.                 echo "\">
  227.                                             ";
  228.                 // line 115
  229.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cotisation"], "year", [], "any"falsefalsefalse115), "html"nulltrue);
  230.                 echo "
  231.                                         </a>
  232.                                     </td>
  233.                                     <td>";
  234.                 // line 118
  235.                 echo $this->extensions['App\Twig\StatusExtension']->bagdeStatusCotisation(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["cotisation"], "cotisationStatut", [], "any"falsefalsefalse118), "id", [], "any"falsefalsefalse118));
  236.                 echo "</td>
  237.                                     <td>";
  238.                 // line 119
  239.                 ((twig_get_attribute($this->env$this->source$context["cotisation"], "priceTtc", [], "any"falsefalsefalse119)) ? (print (twig_escape_filter($this->env, (twig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["cotisation"], "priceTtc", [], "any"falsefalsefalse119), 2","" ") . " €"), "html"nulltrue))) : (print ("")));
  240.                 echo "</td>
  241.                                     <td>";
  242.                 // line 120
  243.                 ((twig_get_attribute($this->env$this->source$context["cotisation"], "datePaiement", [], "any"falsefalsefalse120)) ? (print (twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["cotisation"], "datePaiement", [], "any"falsefalsefalse120), "d/m/Y"), "html"nulltrue))) : (print ("")));
  244.                 echo "</td>
  245.                                     <td class=\"text-center\">
  246.                                         <button class=\"btn btn-outline-secondary btn-icon btn-rounded dropdown-toggle custom-dropdown\" type=\"button\" id=\"dropdownMenu_";
  247.                 // line 122
  248.                 echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  249.                 echo "\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
  250.                                             <i class=\"fa-solid fa-ellipsis\"></i>
  251.                                         </button>
  252.                                         <ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_";
  253.                 // line 125
  254.                 echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  255.                 echo "\">
  256.                                             <li>
  257.                                                 <a class=\"dropdown-item\" href=\"";
  258.                 // line 127
  259.                 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"falsefalsefalse127)]), "html"nulltrue);
  260.                 echo "\">
  261.                                                     <i class=\"fas fa-eye\"></i> Consulter
  262.                                                 </a>
  263.                                             </li>
  264.                                             ";
  265.                 // line 131
  266.                 if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  267.                     // line 132
  268.                     echo "                                                <li>
  269.                                                     <a class=\"dropdown-item\" href=\"";
  270.                     // line 133
  271.                     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"falsefalsefalse133)]), "html"nulltrue);
  272.                     echo "\">
  273.                                                         <i class=\"fas fa-edit\"></i> Editer
  274.                                                     </a>
  275.                                                 </li>
  276.                                             ";
  277.                 }
  278.                 // line 138
  279.                 echo "                                            ";
  280.                 if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_DELETE_ENTITY")) {
  281.                     // line 139
  282.                     echo "                                                <li>
  283.                                                     <a
  284.                                                             class=\"dropdown-item\"
  285.                                                             href=\"#\"
  286.                                                             data-controller=\"confirm-delete\"
  287.                                                             data-confirm-delete-url-value=\"";
  288.                     // line 144
  289.                     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"falsefalsefalse144)]), "html"nulltrue);
  290.                     echo "\"
  291.                                                             data-confirm-delete-message-value=\"Etes-vous sûr de vouloir archiver cette cotisation ?\"
  292.                                                             data-confirm-delete-token-value=\"";
  293.                     // line 146
  294.                     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"falsefalsefalse146))), "html"nulltrue);
  295.                     echo "\"
  296.                                                             data-confirm-delete-action-value=\"reload\"
  297.                                                     >
  298.                                                         <i class=\"fas fa-archive\"></i> Archiver
  299.                                                     </a>
  300.                                                 </li>
  301.                                             ";
  302.                 }
  303.                 // line 153
  304.                 echo "                                        </ul>
  305.                                     </td>
  306.                                 </tr>
  307.                             ";
  308.             }
  309.             $_parent $context['_parent'];
  310.             unset($context['_seq'], $context['_iterated'], $context['key'], $context['cotisation'], $context['_parent'], $context['loop']);
  311.             $context array_intersect_key($context$_parent) + $_parent;
  312.             // line 157
  313.             echo "                        </tbody>
  314.                     </table>
  315.                 </div>
  316.             </div>
  317.         </div>
  318.     ";
  319.         }
  320.         
  321.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  322.         
  323.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  324.     }
  325.     public function getTemplateName()
  326.     {
  327.         return "backend/entreprise/show_cotisation.html.twig";
  328.     }
  329.     public function isTraitable()
  330.     {
  331.         return false;
  332.     }
  333.     public function getDebugInfo()
  334.     {
  335.         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,);
  336.     }
  337.     public function getSourceContext()
  338.     {
  339.         return new Source("{% extends 'backend/base.html.twig' %}
  340. {% block title %}Cotisation entreprise {{ entreprise.raisonSocial }}{% endblock %}
  341. {% block content %}
  342.     {% include 'backend/partials/_breadcrumb.html.twig' with {
  343.         datas: [
  344.             {label: 'Entreprises', url: path('advanced_search', {entity: 'entreprise'})},
  345.             {
  346.                 label: entreprise.raisonSocial ~ ' <i>(#' ~ entreprise.id ~ ')</i>',
  347.                 url: path('show_entreprise', {'id': entreprise.id})
  348.             }, {
  349.                 label: 'Cotisation(s)'
  350.             }
  351.         ],
  352.         buttons: [
  353.             {
  354.                 display: true,
  355.                 url: path('show_entreprise', {'id': entreprise.id }),
  356.                 class: 'btn btn-sm btn-secondary',
  357.                 icon: 'fas fa-chevron-left',
  358.                 label: 'Retour'
  359.             }
  360.         ]
  361.     } %}
  362.     <div class=\"card\">
  363.         <div class=\"card-body\">
  364.             <div class=\"table-responsive\">
  365.                 <table class=\"table\">
  366.                     <thead>
  367.                         <tr>
  368.                             <th>Année</th>
  369.                             <th>Statut</th>
  370.                             <th>Total TTC</th>
  371.                             <th>Date de paiement</th>
  372.                             <th class=\"text-center\">Action(s)</th>
  373.                         </tr>
  374.                     </thead>
  375.                     <tbody>
  376.                         {% for key, cotisation in entreprise.cotisations|filter(el => el.status != constant('App\\\\Entity\\\\Order::STATUS_ARCHIVED')) %}
  377.                             <tr>
  378.                                 <td>
  379.                                     <a href=\"{{ path('show_cotisation',{'id': cotisation.id }) }}\">
  380.                                         {{ cotisation.year }}
  381.                                     </a>
  382.                                 </td>
  383.                                 <td>{{ bagdeStatusCotisation(cotisation.cotisationStatut.id) }}</td>
  384.                                 <td>{{ cotisation.priceTtc ? cotisation.priceTtc|number_format(2, ',', ' ') ~ ' €' }}</td>
  385.                                 <td>{{ cotisation.datePaiement ? cotisation.datePaiement|date('d/m/Y') }}</td>
  386.                                 <td class=\"text-center\">
  387.                                     <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\">
  388.                                         <i class=\"fa-solid fa-ellipsis\"></i>
  389.                                     </button>
  390.                                     <ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_{{ key }}\">
  391.                                         <li>
  392.                                             <a class=\"dropdown-item\" href=\"{{ path('show_cotisation',{'id': cotisation.id }) }}\">
  393.                                                 <i class=\"fas fa-eye\"></i> Consulter
  394.                                             </a>
  395.                                         </li>
  396.                                         {% if is_granted('ROLE_ADMIN') %}
  397.                                             <li>
  398.                                                 <a class=\"dropdown-item\" href=\"{{ path('edit_cotisation',{'id': cotisation.id }) }}\">
  399.                                                     <i class=\"fas fa-edit\"></i> Editer
  400.                                                 </a>
  401.                                             </li>
  402.                                         {% endif %}
  403.                                         {% if is_granted('ROLE_DELETE_ENTITY') %}
  404.                                             <li>
  405.                                                 <a
  406.                                                         class=\"dropdown-item\"
  407.                                                         href=\"#\"
  408.                                                         data-controller=\"confirm-delete\"
  409.                                                         data-confirm-delete-url-value=\"{{ path('archive_cotisation', {id: cotisation.id}) }}\"
  410.                                                         data-confirm-delete-message-value=\"Etes-vous sûr de vouloir archiver cette cotisation ?\"
  411.                                                         data-confirm-delete-token-value=\"{{ csrf_token('cotisation_' ~ cotisation.id) }}\"
  412.                                                         data-confirm-delete-action-value=\"reload\"
  413.                                                 >
  414.                                                     <i class=\"fas fa-archive\"></i> Archiver
  415.                                                 </a>
  416.                                             </li>
  417.                                         {% endif %}
  418.                                     </ul>
  419.                                 </td>
  420.                             </tr>
  421.                         {% endfor %}
  422.                     </tbody>
  423.                 </table>
  424.             </div>
  425.         </div>
  426.     </div>
  427.     {% if entreprise.cotisations|filter(el => el.status == constant('App\\\\Entity\\\\Order::STATUS_ARCHIVED'))|length %}
  428.         <div class=\"card\">
  429.             <div class=\"card-body\">
  430.                 <h4 class=\"mb-4\">Cotisations archivées</h4>
  431.                 <div class=\"table-responsive\">
  432.                     <table class=\"table\">
  433.                         <thead>
  434.                             <tr>
  435.                                 <th>Année</th>
  436.                                 <th>Statut</th>
  437.                                 <th>Total TTC</th>
  438.                                 <th>Date de paiement</th>
  439.                                 <th class=\"text-center\">Action(s)</th>
  440.                             </tr>
  441.                         </thead>
  442.                         <tbody>
  443.                             {% for key, cotisation in entreprise.cotisations|filter(el => el.status == constant('App\\\\Entity\\\\Order::STATUS_ARCHIVED')) %}
  444.                                 <tr>
  445.                                     <td>
  446.                                         <a href=\"{{ path('show_cotisation',{'id': cotisation.id }) }}\">
  447.                                             {{ cotisation.year }}
  448.                                         </a>
  449.                                     </td>
  450.                                     <td>{{ bagdeStatusCotisation(cotisation.cotisationStatut.id) }}</td>
  451.                                     <td>{{ cotisation.priceTtc ? cotisation.priceTtc|number_format(2, ',', ' ') ~ ' €' }}</td>
  452.                                     <td>{{ cotisation.datePaiement ? cotisation.datePaiement|date('d/m/Y') }}</td>
  453.                                     <td class=\"text-center\">
  454.                                         <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\">
  455.                                             <i class=\"fa-solid fa-ellipsis\"></i>
  456.                                         </button>
  457.                                         <ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_{{ key }}\">
  458.                                             <li>
  459.                                                 <a class=\"dropdown-item\" href=\"{{ path('show_cotisation',{'id': cotisation.id }) }}\">
  460.                                                     <i class=\"fas fa-eye\"></i> Consulter
  461.                                                 </a>
  462.                                             </li>
  463.                                             {% if is_granted('ROLE_ADMIN') %}
  464.                                                 <li>
  465.                                                     <a class=\"dropdown-item\" href=\"{{ path('edit_cotisation',{'id': cotisation.id }) }}\">
  466.                                                         <i class=\"fas fa-edit\"></i> Editer
  467.                                                     </a>
  468.                                                 </li>
  469.                                             {% endif %}
  470.                                             {% if is_granted('ROLE_DELETE_ENTITY') %}
  471.                                                 <li>
  472.                                                     <a
  473.                                                             class=\"dropdown-item\"
  474.                                                             href=\"#\"
  475.                                                             data-controller=\"confirm-delete\"
  476.                                                             data-confirm-delete-url-value=\"{{ path('archive_cotisation', {id: cotisation.id}) }}\"
  477.                                                             data-confirm-delete-message-value=\"Etes-vous sûr de vouloir archiver cette cotisation ?\"
  478.                                                             data-confirm-delete-token-value=\"{{ csrf_token('cotisation_' ~ cotisation.id) }}\"
  479.                                                             data-confirm-delete-action-value=\"reload\"
  480.                                                     >
  481.                                                         <i class=\"fas fa-archive\"></i> Archiver
  482.                                                     </a>
  483.                                                 </li>
  484.                                             {% endif %}
  485.                                         </ul>
  486.                                     </td>
  487.                                 </tr>
  488.                             {% endfor %}
  489.                         </tbody>
  490.                     </table>
  491.                 </div>
  492.             </div>
  493.         </div>
  494.     {% endif %}
  495. {% endblock %}""backend/entreprise/show_cotisation.html.twig""/var/www/html/symfony/templates/backend/entreprise/show_cotisation.html.twig");
  496.     }
  497. }