var/cache/dev/twig/a5/a5d9e6193b4185eddf030680068456c8.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.html.twig */
  14. class __TwigTemplate_25a474b06d0dc556026b372817da6bd6 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.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.html.twig"));
  39.         $this->parent $this->loadTemplate("backend/base.html.twig""backend/entreprise/show.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 "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/entreprise/show.html.twig""backend/entreprise/show.html.twig"7"1086627597")->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 10
  74. (isset($context["entreprise"]) || array_key_exists("entreprise"$context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.'10$this->source); })()), "raisonSocial", [], "any"falsefalsefalse10) . " <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.'10$this->source); })()), "id", [], "any"falsefalsefalse10)) . ")</i>")]], "buttons" => [=> ["display" => (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_UPDATE_ENTITY")) ? (true) : (false)), "url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edit_entreprise", ["id" => twig_get_attribute($this->env$this->source,         // line 15
  75. (isset($context["entreprise"]) || array_key_exists("entreprise"$context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.'15$this->source); })()), "id", [], "any"falsefalsefalse15)]), "class" => "btn btn-sm btn-primary""icon" => "fas fa-edit""label" => "Modifier"]]]));
  76.         // line 68
  77.         echo "
  78.     <div class=\"row justify-content-md-center mb-4\">
  79.         <div class=\"col-12 col-lg-6\">
  80.             <div class=\"card h-100\">
  81.                 <div class=\"card-header card-header-dark\">
  82.                     Informations générales
  83.                     <span class=\"mx-2 float-end badge bg-";
  84.         // line 75
  85.         echo ((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.'75$this->source); })()), "isMember", [], "any"falsefalsefalse75)) ? ("success") : ("danger"));
  86.         echo " p-2\">
  87.                         ";
  88.         // line 76
  89.         echo twig_escape_filter($this->envtwig_upper_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.'76$this->source); })()), "isMember", [], "any"falsefalsefalse76)) ? ("adhésion payée") : ("adhésion non payée"))), "html"nulltrue);
  90.         echo "
  91.                     </span>
  92.                     <span class=\"float-end badge bg-";
  93.         // line 79
  94.         (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["entreprise"] ?? null), "firmType", [], "any"falsetruefalse79), "color", [], "any"truetruefalse79) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["entreprise"] ?? null), "firmType", [], "any"falsetruefalse79), "color", [], "any"falsefalsefalse79)))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["entreprise"] ?? null), "firmType", [], "any"falsetruefalse79), "color", [], "any"falsefalsefalse79), "html"nulltrue))) : (print ("secondary")));
  95.         echo " p-2\">
  96.                         ";
  97.         // line 80
  98.         echo twig_escape_filter($this->envtwig_upper_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'80$this->source); })()), "firmType", [], "any"falsefalsefalse80), "name", [], "any"falsefalsefalse80)), "html"nulltrue);
  99.         echo "
  100.                     </span>
  101.                     ";
  102.         // line 83
  103.         echo $this->extensions['App\Twig\StatusExtension']->bagdeStatusFirm(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.'83$this->source); })()), "status", [], "any"falsefalsefalse83), "float-end mx-2");
  104.         echo "
  105.                 </div>
  106.                 <div class=\"card-body\">
  107.                     <div class=\"row mb-3\">
  108.                         <div class=\"col-3 text-bold\">Raison sociale</div>
  109.                         <div class=\"col-9\">";
  110.         // line 88
  111.         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.'88$this->source); })()), "raisonSocial", [], "any"falsefalsefalse88), "html"nulltrue);
  112.         echo "</div>
  113.                     </div>
  114.                     <div class=\"row mb-3\">
  115.                         <div class=\"col-3 text-bold\">Téléphone bureau</div>
  116.                         <div class=\"col-9\">";
  117.         // line 92
  118.         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.'92$this->source); })()), "tel1", [], "any"falsefalsefalse92), "html"nulltrue);
  119.         echo "</div>
  120.                     </div>
  121.                     <div class=\"row mb-3\">
  122.                         <div class=\"col-3 text-bold\">Email</div>
  123.                         <div class=\"col-9\">";
  124.         // line 96
  125.         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.'96$this->source); })()), "email", [], "any"falsefalsefalse96), "html"nulltrue);
  126.         echo "</div>
  127.                     </div>
  128.                     <div class=\"row mb-3\">
  129.                         <div class=\"col-3 text-bold\">N° APE</div>
  130.                         <div class=\"col-9\">";
  131.         // line 100
  132.         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.'100$this->source); })()), "codeApe", [], "any"falsefalsefalse100), "html"nulltrue);
  133.         echo "</div>
  134.                     </div>
  135.                     <div class=\"row mb-3\">
  136.                         <div class=\"col-3 text-bold\">N° Siret</div>
  137.                         <div class=\"col-9\">";
  138.         // line 104
  139.         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.'104$this->source); })()), "codeSiren", [], "any"falsefalsefalse104), "html"nulltrue);
  140.         echo "</div>
  141.                     </div>
  142.                     <div class=\"row mb-3\">
  143.                         <div class=\"col-3 text-bold\">N° TVA Intracom</div>
  144.                         <div class=\"col-9\">";
  145.         // line 108
  146.         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.'108$this->source); })()), "numTvaIntracom", [], "any"falsefalsefalse108), "html"nulltrue);
  147.         echo "</div>
  148.                     </div>
  149.                     <div class=\"row mb-3\">
  150.                         <div class=\"col-3 text-bold\">RC</div>
  151.                         <div class=\"col-9\">";
  152.         // line 112
  153.         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.'112$this->source); })()), "numEdeCentre", [], "any"falsefalsefalse112), "html"nulltrue);
  154.         echo "</div>
  155.                     </div>
  156.                     ";
  157.         // line 114
  158.         if (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.'114$this->source); })()), "dateCessation", [], "any"falsefalsefalse114)) {
  159.             // line 115
  160.             echo "                        <div class=\"row mb-3\">
  161.                             <div class=\"col-3 text-bold\">Date cessation activité</div>
  162.                             <div class=\"col-9\">";
  163.             // line 117
  164.             ((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.'117$this->source); })()), "dateCessation", [], "any"falsefalsefalse117)) ? (print (twig_escape_filter($this->envtwig_date_format_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.'117$this->source); })()), "dateCessation", [], "any"falsefalsefalse117), "d/m/Y"), "html"nulltrue))) : (print ("")));
  165.             echo "</div>
  166.                         </div>
  167.                     ";
  168.         }
  169.         // line 120
  170.         echo "                    <div class=\"row mb-3 d-none\">
  171.                         <div class=\"col-3 text-bold\">Identifiant comptable</div>
  172.                         <div class=\"col-9\">";
  173.         // line 122
  174.         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.'122$this->source); })()), "identifiantCompta", [], "any"falsefalsefalse122), "html"nulltrue);
  175.         echo "</div>
  176.                     </div>
  177.                 </div>
  178.             </div>
  179.         </div>
  180.         <div class=\"col-12 col-lg-6 mt-4 mt-lg-0\">
  181.             <div class=\"h-100\">
  182.                 <div class=\"card\">
  183.                     <div class=\"card-header card-header-dark\">
  184.                         <div class=\"pb-2\">Adresse du siège social</div>
  185.                     </div>
  186.                     <div class=\"card-body\">
  187.                         <div class=\"mb-2\">
  188.                             <span class=\"text-bold show-label\">Adresse:</span>
  189.                             <span>";
  190.         // line 136
  191.         (( !twig_test_empty(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.'136$this->source); })()), "adresse", [], "any"falsefalsefalse136))) ? (print (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.'136$this->source); })()), "adresse", [], "any"falsefalsefalse136), "html"nulltrue))) : (print ("")));
  192.         echo "</span>
  193.                         </div>
  194.                         <div class=\"mb-2\">
  195.                             <span class=\"text-bold show-label\">Adresse compl.:</span>
  196.                             <span>";
  197.         // line 140
  198.         (( !twig_test_empty(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.'140$this->source); })()), "adresse2", [], "any"falsefalsefalse140))) ? (print (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.'140$this->source); })()), "adresse2", [], "any"falsefalsefalse140), "html"nulltrue))) : (print ("")));
  199.         echo "</span>
  200.                         </div>
  201.                         <div class=\"mb-2\">
  202.                             <span class=\"text-bold show-label\">Code postal:</span>
  203.                             <span>";
  204.         // line 144
  205.         (( !twig_test_empty(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.'144$this->source); })()), "codePostal", [], "any"falsefalsefalse144))) ? (print (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.'144$this->source); })()), "codePostal", [], "any"falsefalsefalse144), "html"nulltrue))) : (print ("")));
  206.         echo "</span>
  207.                         </div>
  208.                         <div class=\"mb-2\">
  209.                             <span class=\"text-bold show-label\">Ville:</span>
  210.                             <span>";
  211.         // line 148
  212.         (( !twig_test_empty(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.'148$this->source); })()), "ville", [], "any"falsefalsefalse148))) ? (print (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.'148$this->source); })()), "ville", [], "any"falsefalsefalse148), "html"nulltrue))) : (print ("")));
  213.         echo "</span>
  214.                         </div>
  215.                         <div class=\"mb-2\">
  216.                             <span class=\"text-bold show-label\">Département:</span>
  217.                             <span>";
  218.         // line 152
  219.         (( !(null === 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.'152$this->source); })()), "departement", [], "any"falsefalsefalse152))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'152$this->source); })()), "departement", [], "any"falsefalsefalse152), "nom", [], "any"falsefalsefalse152), "html"nulltrue))) : (print ("")));
  220.         echo "</span>
  221.                         </div>
  222.                         <div class=\"mb-2\">
  223.                             <span class=\"text-bold show-label\">Région:</span>
  224.                             <span>";
  225.         // line 156
  226.         ((( !(null === 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.'156$this->source); })()), "departement", [], "any"falsefalsefalse156)) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_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.'156$this->source); })()), "departement", [], "any"falsefalsefalse156), "regions", [], "any"falsefalsefalse156)))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'156$this->source); })()), "departement", [], "any"falsefalsefalse156), "regions", [], "any"falsefalsefalse156), "first", [], "any"falsefalsefalse156), "nom", [], "any"falsefalsefalse156), "html"nulltrue))) : (print ("")));
  227.         echo "</span>
  228.                         </div>
  229.                     </div>
  230.                 </div>
  231.                 <div class=\"card mb-0\">
  232.                     <div class=\"card-header card-header-dark\">
  233.                         Fédération
  234.                     </div>
  235.                     <div class=\"card-body\">
  236.                         <div class=\"row mb-3\">
  237.                             <div class=\"col-3 text-bold\">Syndicat de rattachement</div>
  238.                             <div class=\"col-9\">";
  239.         // line 167
  240.         ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["entreprise"] ?? null), "syndicat", [], "any"falsetruefalse167), "nom", [], "any"truetruefalse167)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'167$this->source); })()), "syndicat", [], "any"falsefalsefalse167), "nom", [], "any"falsefalsefalse167), "html"nulltrue))) : (print ("")));
  241.         echo "</div>
  242.                         </div>
  243.                         <div class=\"row mb-3\">
  244.                             <div class=\"col-3 text-bold\">Région de rattachement</div>
  245.                             <div class=\"col-9\">";
  246.         // line 171
  247.         ((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.'171$this->source); })()), "homeRegion", [], "any"falsefalsefalse171)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'171$this->source); })()), "homeRegion", [], "any"falsefalsefalse171), "nom", [], "any"falsefalsefalse171), "html"nulltrue))) : (print ("")));
  248.         echo "</div>
  249.                         </div>
  250.                         <div class=\"row mb-3\">
  251.                             <div class=\"col-3 text-bold\">Groupe entreprise</div>
  252.                             <div class=\"col-9\">";
  253.         // line 176
  254.         ((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.'176$this->source); })()), "groupeEntreprise", [], "any"falsefalsefalse176)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'176$this->source); })()), "groupeEntreprise", [], "any"falsefalsefalse176), "nom", [], "any"falsefalsefalse176), "html"nulltrue))) : (print ("")));
  255.         echo "</div>
  256.                         </div>
  257.                         <div class=\"row mb-3\">
  258.                             <div class=\"col-3 text-bold\">Commission</div>
  259.                             <div class=\"col-9\">";
  260.         // line 180
  261.         ((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.'180$this->source); })()), "commission", [], "any"falsefalsefalse180)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'180$this->source); })()), "commission", [], "any"falsefalsefalse180), "nom", [], "any"falsefalsefalse180), "html"nulltrue))) : (print ("")));
  262.         echo "</div>
  263.                         </div>
  264.                     </div>
  265.                 </div>
  266.             </div>
  267.         </div>
  268.     </div>
  269.     ";
  270.         // line 188
  271.         if (twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_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.'188$this->source); })()), "firmType", [], "any"falsefalsefalse188), "tag", [], "any"falsefalsefalse188), [=> "trader"=> "transporter"])) {
  272.             // line 189
  273.             echo "        <div class=\"card mb-4\">
  274.             <div class=\"card-header card-header-dark\">
  275.                 Etablissement(s) / Centres de rassemblement
  276.                 ";
  277.             // line 192
  278.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  279.                 // line 193
  280.                 echo "                    <a href=\"";
  281.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("add_establishment", ["id" => 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.'193$this->source); })()), "id", [], "any"falsefalsefalse193)]), "html"nulltrue);
  282.                 echo "\" class=\"float-end text-white\">
  283.                         <i class=\"fas fa-plus fa-2x\"></i>
  284.                     </a>
  285.                 ";
  286.             }
  287.             // line 197
  288.             echo "            </div>
  289.             <div class=\"card-body\">
  290.                 <div class=\"table-responsive\">
  291.                     <table class=\"table\">
  292.                         <thead>
  293.                             <tr>
  294.                                 <th>Type</th>
  295.                                 <th>Tél</th>
  296.                                 <th>Email</th>
  297.                                 <th>N° siret</th>
  298.                                 <th>Code EDE</th>
  299.                                 <th>Adresse</th>
  300.                                 <th>Département</th>
  301.                                 <th>Date de cessation</th>
  302.                                 <th class=\"text-center\">Actions</th>
  303.                             </tr>
  304.                         </thead>
  305.                         <tbody>
  306.                             ";
  307.             // line 215
  308.             $context['_parent'] = $context;
  309.             $context['_seq'] = twig_ensure_traversable(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.'215$this->source); })()), "etablissements", [], "any"falsefalsefalse215));
  310.             foreach ($context['_seq'] as $context["key"] => $context["etablissement"]) {
  311.                 // line 216
  312.                 echo "                                <tr>
  313.                                     <td>";
  314.                 // line 217
  315.                 echo ((twig_get_attribute($this->env$this->source$context["etablissement"], "siegeSocial", [], "any"falsefalsefalse217)) ? ("<strong class=\"text-primary\">Siège social</strong>") : ("Etablissement"));
  316.                 echo "</td>
  317.                                     <td>";
  318.                 // line 218
  319.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["etablissement"], "telBureau1", [], "any"falsefalsefalse218), "html"nulltrue);
  320.                 echo "</td>
  321.                                     <td>";
  322.                 // line 219
  323.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["etablissement"], "emailBureau", [], "any"falsefalsefalse219), "html"nulltrue);
  324.                 echo "</td>
  325.                                     <td>";
  326.                 // line 220
  327.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["etablissement"], "codeSiret", [], "any"falsefalsefalse220), "html"nulltrue);
  328.                 echo "</td>
  329.                                     <td>";
  330.                 // line 221
  331.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["etablissement"], "codeEde", [], "any"falsefalsefalse221), "html"nulltrue);
  332.                 echo "</td>
  333.                                     <td>
  334.                                         ";
  335.                 // line 223
  336.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["etablissement"], "adresse", [], "any"falsefalsefalse223), "html"nulltrue);
  337.                 echo "<br>
  338.                                         ";
  339.                 // line 224
  340.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["etablissement"], "codePostal", [], "any"falsefalsefalse224), "html"nulltrue);
  341.                 echo "<br>
  342.                                         ";
  343.                 // line 225
  344.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["etablissement"], "ville", [], "any"falsefalsefalse225), "html"nulltrue);
  345.                 echo "
  346.                                     </td>
  347.                                     <td>";
  348.                 // line 227
  349.                 ((twig_get_attribute($this->env$this->source$context["etablissement"], "departement", [], "any"falsefalsefalse227)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["etablissement"], "departement", [], "any"falsefalsefalse227), "nom", [], "any"falsefalsefalse227), "html"nulltrue))) : (print ("")));
  350.                 echo "</td>
  351.                                     <td>";
  352.                 // line 228
  353.                 ((twig_get_attribute($this->env$this->source$context["etablissement"], "dateCessation", [], "any"falsefalsefalse228)) ? (print (twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["etablissement"], "dateCessation", [], "any"falsefalsefalse228), "d/m/Y"), "html"nulltrue))) : (print ("")));
  354.                 echo "</td>
  355.                                     <td class=\"text-center\">
  356.                                         <button class=\"btn btn-outline-secondary btn-icon btn-rounded dropdown-toggle custom-dropdown\" type=\"button\" id=\"dropdownMenu_";
  357.                 // line 230
  358.                 echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  359.                 echo "\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
  360.                                             <i class=\"fa-solid fa-ellipsis\"></i>
  361.                                         </button>
  362.                                         <ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_";
  363.                 // line 233
  364.                 echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  365.                 echo "\">
  366.                                             <li>
  367.                                                 <a class=\"dropdown-item\" href=\"";
  368.                 // line 235
  369.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_establishment", ["id" => twig_get_attribute($this->env$this->source$context["etablissement"], "id", [], "any"falsefalsefalse235)]), "html"nulltrue);
  370.                 echo "\">
  371.                                                     <i class=\"fas fa-eye\"></i> Visualiser
  372.                                                 </a>
  373.                                             </li>
  374.                                             ";
  375.                 // line 239
  376.                 if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  377.                     // line 240
  378.                     echo "                                            <li>
  379.                                                 <a class=\"dropdown-item\" href=\"";
  380.                     // line 241
  381.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edit_establishment", ["id" => twig_get_attribute($this->env$this->source$context["etablissement"], "id", [], "any"falsefalsefalse241)]), "html"nulltrue);
  382.                     echo "\">
  383.                                                     <i class=\"fas fa-edit\"></i> Editer
  384.                                                 </a>
  385.                                             </li>
  386.                                             <li>
  387.                                                 <a
  388.                                                         class=\"dropdown-item\"
  389.                                                         href=\"";
  390.                     // line 248
  391.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("delete_establishment", ["id" => twig_get_attribute($this->env$this->source$context["etablissement"], "id", [], "any"falsefalsefalse248)]), "html"nulltrue);
  392.                     echo "\"
  393.                                                         data-controller=\"confirm-delete\"
  394.                                                         data-confirm-delete-url-value=\"";
  395.                     // line 250
  396.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("delete_establishment", ["id" => twig_get_attribute($this->env$this->source$context["etablissement"], "id", [], "any"falsefalsefalse250)]), "html"nulltrue);
  397.                     echo "\"
  398.                                                         data-confirm-delete-message-value=\"Etes-vous sûr de vouloir supprimer cet établissement ?\"
  399.                                                         data-confirm-delete-token-value=\"";
  400.                     // line 252
  401.                     echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken(("etablissement_" twig_get_attribute($this->env$this->source$context["etablissement"], "id", [], "any"falsefalsefalse252))), "html"nulltrue);
  402.                     echo "\"
  403.                                                         data-confirm-delete-action-value=\"delete_line\"
  404.                                                 >
  405.                                                     <i class=\"fas fa-trash\"></i> Supprimer
  406.                                                 </a>
  407.                                             </li>
  408.                                             ";
  409.                 }
  410.                 // line 259
  411.                 echo "                                        </ul>
  412.                                     </td>
  413.                                 </tr>
  414.                             ";
  415.             }
  416.             $_parent $context['_parent'];
  417.             unset($context['_seq'], $context['_iterated'], $context['key'], $context['etablissement'], $context['_parent'], $context['loop']);
  418.             $context array_intersect_key($context$_parent) + $_parent;
  419.             // line 263
  420.             echo "                        </tbody>
  421.                     </table>
  422.                 </div>
  423.             </div>
  424.         </div>
  425.     ";
  426.         }
  427.         // line 269
  428.         echo "
  429.     ";
  430.         // line 270
  431.         if ((((twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 271
  432. (isset($context["entreprise"]) || array_key_exists("entreprise"$context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.'271$this->source); })()), "firmType", [], "any"falsefalsefalse271), "tag", [], "any"falsefalsefalse271), [=> "trader"=> "transporter"]) && ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_BOARD_DIRECTOR") == false)) && ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_REGIONAL_AGENT") == false)) && ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_UNION_PRESIDENT") == false))) {
  433.             // line 276
  434.             echo "        <div class=\"card mb-4\">
  435.         <div class=\"card-header card-header-dark\">
  436.             Secteur d'activité
  437.         </div>
  438.         <div class=\"card-body\">
  439.             ";
  440.             // line 281
  441.             $context["totalSpecies"] = 0;
  442.             // line 282
  443.             echo "            <div class=\"row mb-3\">
  444.                 <div class=\"col-3 col-lg-1 text-bold\">Espèce(s)</div>
  445.                 <div class=\"col-9 col-lg-11\">
  446.                     ";
  447.             // line 285
  448.             if ((twig_length_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.'285$this->source); })()), "entrepriseActivities", [], "any"falsefalsefalse285)) == 0)) {
  449.                 // line 286
  450.                 echo "                        Aucune espèce
  451.                     ";
  452.             } else {
  453.                 // line 288
  454.                 echo "                        ";
  455.                 $context['_parent'] = $context;
  456.                 $context['_seq'] = twig_ensure_traversable(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.'288$this->source); })()), "entrepriseActivities", [], "any"falsefalsefalse288));
  457.                 foreach ($context['_seq'] as $context["_key"] => $context["firmActivity"]) {
  458.                     // line 289
  459.                     echo "                            ";
  460.                     if ((twig_get_attribute($this->env$this->source$context["firmActivity"], "checked", [], "any"falsefalsefalse289) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["firmActivity"], "activity", [], "any"falsefalsefalse289), "isEnabled", [], "any"falsefalsefalse289))) {
  461.                         // line 290
  462.                         echo "                                ";
  463.                         // line 291
  464.                         echo "                                <span class=\"badge bg-primary p-2\">";
  465.                         echo twig_escape_filter($this->env, (twig_capitalize_string_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["firmActivity"], "activity", [], "any"falsefalsefalse291), "nom", [], "any"falsefalsefalse291)) . (((twig_get_attribute($this->env$this->sourcetwig_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.'291$this->source); })()), "firmType", [], "any"falsefalsefalse291), "tag", [], "any"falsefalsefalse291) == "trader")) ? ((" - " twig_get_attribute($this->env$this->source$context["firmActivity"], "number", [], "any"falsefalsefalse291))) : (""))), "html"nulltrue);
  466.                         echo "</span>
  467.                                 ";
  468.                         // line 292
  469.                         $context["totalSpecies"] = ((isset($context["totalSpecies"]) || array_key_exists("totalSpecies"$context) ? $context["totalSpecies"] : (function () { throw new RuntimeError('Variable "totalSpecies" does not exist.'292$this->source); })()) + twig_get_attribute($this->env$this->source$context["firmActivity"], "number", [], "any"falsefalsefalse292));
  470.                         // line 293
  471.                         echo "                            ";
  472.                     }
  473.                     // line 294
  474.                     echo "                        ";
  475.                 }
  476.                 $_parent $context['_parent'];
  477.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['firmActivity'], $context['_parent'], $context['loop']);
  478.                 $context array_intersect_key($context$_parent) + $_parent;
  479.                 // line 295
  480.                 echo "                    ";
  481.             }
  482.             // line 296
  483.             echo "                </div>
  484.             </div>
  485.             <div class=\"row mb-3\">
  486.                 <div class=\"col-3 col-lg-1 text-bold\">Volume total</div>
  487.                 <div class=\"col-9 col-lg-11\">";
  488.             // line 301
  489.             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.'301$this->source); })()), "totalCountSpecies", [], "any"falsefalsefalse301), "html"nulltrue);
  490.             echo "</div>
  491.             </div>
  492.             ";
  493.             // line 304
  494.             if ((twig_get_attribute($this->env$this->sourcetwig_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.'304$this->source); })()), "firmType", [], "any"falsefalsefalse304), "tag", [], "any"falsefalsefalse304) == "transporter")) {
  495.                 // line 305
  496.                 echo "                <hr>
  497.                 <div class=\"row\">
  498.                     <div class=\"col-12 col-lg-3 d-none\">
  499.                         <div class=\"row mb-3\">
  500.                             <div class=\"col-5 text-bold\">Autre activité</div>
  501.                             <div class=\"col-7\">
  502.                                 ";
  503.                 // line 312
  504.                 (((twig_get_attribute($this->env$this->source, ($context["entreprise"] ?? null), "autreActivite", [], "any"truetruefalse312) &&  !(null === twig_get_attribute($this->env$this->source, ($context["entreprise"] ?? null), "autreActivite", [], "any"falsefalsefalse312)))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, ($context["entreprise"] ?? null), "autreActivite", [], "any"falsefalsefalse312), "html"nulltrue))) : (print ("<i><small>Aucune</small></i>")));
  505.                 echo "
  506.                             </div>
  507.                         </div>
  508.                     </div>
  509.                     <div class=\"col-12 col-lg-3\">
  510.                         <div class=\"row mb-3\">
  511.                             <div class=\"col-5 text-bold\">N° agrément transport</div>
  512.                             <div class=\"col-7\">
  513.                                 ";
  514.                 // line 320
  515.                 ((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.'320$this->source); })()), "transporteur", [], "any"falsefalsefalse320)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'320$this->source); })()), "transporteur", [], "any"falsefalsefalse320), "numAgrementTransport", [], "any"falsefalsefalse320), "html"nulltrue))) : (print ("")));
  516.                 echo "
  517.                             </div>
  518.                         </div>
  519.                     </div>
  520.                     <div class=\"col-12 col-lg-3\">
  521.                         <div class=\"row mb-3\">
  522.                             <div class=\"col-5 text-bold\">Nb de Licence Transport interne</div>
  523.                             <div class=\"col-7\">
  524.                                 ";
  525.                 // line 328
  526.                 ((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.'328$this->source); })()), "transporteur", [], "any"falsefalsefalse328)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'328$this->source); })()), "transporteur", [], "any"falsefalsefalse328), "nombreLicenseInterne", [], "any"falsefalsefalse328), "html"nulltrue))) : (print ("")));
  527.                 echo "
  528.                             </div>
  529.                         </div>
  530.                     </div>
  531.                     <div class=\"col-12 col-lg-3\">
  532.                         <div class=\"row mb-3\">
  533.                             <div class=\"col-5 text-bold\">Nb de Licence intracommunautaire</div>
  534.                             <div class=\"col-7\">
  535.                                 ";
  536.                 // line 336
  537.                 ((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.'336$this->source); })()), "transporteur", [], "any"falsefalsefalse336)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'336$this->source); })()), "transporteur", [], "any"falsefalsefalse336), "nombreLicenceIntracom", [], "any"falsefalsefalse336), "html"nulltrue))) : (print ("")));
  538.                 echo "
  539.                             </div>
  540.                         </div>
  541.                     </div>
  542.                 </div>
  543.             ";
  544.             } else {
  545.                 // line 342
  546.                 echo "                ";
  547.                 if (((isset($context["totalSpecies"]) || array_key_exists("totalSpecies"$context) ? $context["totalSpecies"] : (function () { throw new RuntimeError('Variable "totalSpecies" does not exist.'342$this->source); })()) != 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.'342$this->source); })()), "totalCountSpecies", [], "any"falsefalsefalse342))) {
  548.                     // line 343
  549.                     echo "                    <div class=\"alert alert-warning\">
  550.                         Le volume total est différent de la somme des volumes par espèce
  551.                     </div>
  552.                 ";
  553.                 }
  554.                 // line 347
  555.                 echo "
  556.                 <hr>
  557.                 <div class=\"row\">
  558.                     <div class=\"col-12 col-lg-3\">
  559.                         <div class=\"row mb-3\">
  560.                             <div class=\"col-5 text-bold\">Autre activité</div>
  561.                             <div class=\"col-7\">
  562.                                 ";
  563.                 // line 355
  564.                 (((twig_get_attribute($this->env$this->source, ($context["entreprise"] ?? null), "autreActivite", [], "any"truetruefalse355) &&  !(null === twig_get_attribute($this->env$this->source, ($context["entreprise"] ?? null), "autreActivite", [], "any"falsefalsefalse355)))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, ($context["entreprise"] ?? null), "autreActivite", [], "any"falsefalsefalse355), "html"nulltrue))) : (print ("<i><small>Aucune</small></i>")));
  565.                 echo "
  566.                             </div>
  567.                         </div>
  568.                     </div>
  569.                     <div class=\"col-12 col-lg-3 d-none\">
  570.                         <div class=\"row mb-3\">
  571.                             <div class=\"col-5 text-bold\">Volume d'animaux</div>
  572.                             <div class=\"col-7\">
  573.                                 ";
  574.                 // line 363
  575.                 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.'363$this->source); })()), "volumeAnimaux", [], "any"falsefalsefalse363), "html"nulltrue);
  576.                 echo "
  577.                             </div>
  578.                         </div>
  579.                     </div>
  580.                     <div class=\"col-12 col-lg-3 d-none\">
  581.                         <div class=\"row mb-3\">
  582.                             <div class=\"col-5 text-bold\">Autre spécialité</div>
  583.                             <div class=\"col-7\">
  584.                                 ";
  585.                 // line 371
  586.                 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.'371$this->source); })()), "autreSpecialite", [], "any"falsefalsefalse371), "html"nulltrue);
  587.                 echo "
  588.                             </div>
  589.                         </div>
  590.                     </div>
  591.                     <div class=\"col-12 col-lg-3\">
  592.                         <div class=\"row mb-3\">
  593.                             <div class=\"col-5 text-bold\">Transport pour autrui</div>
  594.                             <div class=\"col-7\">
  595.                                 ";
  596.                 // line 379
  597.                 ((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.'379$this->source); })()), "transportPourAutrui", [], "any"falsefalsefalse379)) ? (print (twig_escape_filter($this->envtwig_upper_filter($this->env"oui"), "html"nulltrue))) : (print ("non")));
  598.                 echo "
  599.                             </div>
  600.                         </div>
  601.                     </div>
  602.                 </div>
  603.                 ";
  604.                 // line 414
  605.                 echo "            ";
  606.             }
  607.             // line 415
  608.             echo "
  609.             <hr>
  610.             <div class=\"row mb-3\">
  611.                 <div class=\"col-3 col-lg-1 text-bold\">Nb employés</div>
  612.                 <div class=\"col-9 col-lg-11\">
  613.                     ";
  614.             // line 421
  615.             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.'421$this->source); })()), "nombreEmployes", [], "any"falsefalsefalse421), "html"nulltrue);
  616.             echo "
  617.                 </div>
  618.             </div>
  619.         </div>
  620.     </div>
  621.     ";
  622.         }
  623.         // line 427
  624.         echo "
  625.     <div class=\"card mb-4\">
  626.         <div class=\"card-header card-header-dark\">
  627.             Contacts
  628.             ";
  629.         // line 431
  630.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  631.             // line 432
  632.             echo "                <a href=\"";
  633.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("add_contact_from_firm", ["id" => 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.'432$this->source); })()), "id", [], "any"falsefalsefalse432)]), "html"nulltrue);
  634.             echo "\" class=\"float-end text-white\">
  635.                     <i class=\"fas fa-plus fa-2x\"></i>
  636.                 </a>
  637.             ";
  638.         }
  639.         // line 436
  640.         echo "        </div>
  641.         <div class=\"card-body\">
  642.             <div class=\"table-responsive\">
  643.                 <table class=\"table\">
  644.                     <thead>
  645.                         <tr>
  646.                             <th>Type</th>
  647.                             <th>Nom</th>
  648.                             <th>Prénom</th>
  649.                             <th>Email</th>
  650.                             <th>Tél. portable</th>
  651.                             <th>Commission</th>
  652.                             <th>Conseil admin.</th>
  653.                             <th>Repères</th>
  654.                             <th>Privil.</th>
  655.                             <th>Utilisateur extranet ?</th>
  656.                             <th class=\"text-center\">Action(s)</th>
  657.                         </tr>
  658.                     </thead>
  659.                     <tbody>
  660.                         ";
  661.         // line 456
  662.         $context['_parent'] = $context;
  663.         $context['_seq'] = twig_ensure_traversable(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.'456$this->source); })()), "contacts", [], "any"falsefalsefalse456));
  664.         foreach ($context['_seq'] as $context["key"] => $context["contact"]) {
  665.             // line 457
  666.             echo "                            ";
  667.             if ((twig_get_attribute($this->env$this->source$context["contact"], "status", [], "any"falsefalsefalse457) != twig_constant("App\\Entity\\Contact::STATUS_ARCHIVED"))) {
  668.                 // line 458
  669.                 echo "                                <tr>
  670.                                     <td class=\"text-bold\">";
  671.                 // line 459
  672.                 echo ((twig_get_attribute($this->env$this->source$context["contact"], "isResponsible", [], "any"falsefalsefalse459)) ? ("<span class=\"text-success\">Responsable</span>") : ("Employé"));
  673.                 echo "</td>
  674.                                     <td>";
  675.                 // line 460
  676.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["contact"], "nom", [], "any"falsefalsefalse460), "html"nulltrue);
  677.                 echo "</td>
  678.                                     <td>";
  679.                 // line 461
  680.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["contact"], "prenom", [], "any"falsefalsefalse461), "html"nulltrue);
  681.                 echo "</td>
  682.                                     <td>";
  683.                 // line 462
  684.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["contact"], "emailContact", [], "any"falsefalsefalse462), "html"nulltrue);
  685.                 echo "</td>
  686.                                     <td>";
  687.                 // line 463
  688.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["contact"], "telPortable", [], "any"falsefalsefalse463), "html"nulltrue);
  689.                 echo "</td><td>
  690.                                         <ul class=\"\">
  691.                                             ";
  692.                 // line 465
  693.                 $context['_parent'] = $context;
  694.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["contact"], "commissionsContacts", [], "any"falsefalsefalse465));
  695.                 foreach ($context['_seq'] as $context["_key"] => $context["commission"]) {
  696.                     // line 466
  697.                     echo "                                                <li>";
  698.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["commission"], "commission", [], "any"falsefalsefalse466), "nom", [], "any"falsefalsefalse466), "html"nulltrue);
  699.                     echo "</li>
  700.                                             ";
  701.                 }
  702.                 $_parent $context['_parent'];
  703.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['commission'], $context['_parent'], $context['loop']);
  704.                 $context array_intersect_key($context$_parent) + $_parent;
  705.                 // line 468
  706.                 echo "                                        </ul>
  707.                                     </td>
  708.                                     <td>
  709.                                         <ul class=\"\">
  710.                                             ";
  711.                 // line 472
  712.                 $context['_parent'] = $context;
  713.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["contact"], "contactConseilAdministrations", [], "any"falsefalsefalse472));
  714.                 foreach ($context['_seq'] as $context["_key"] => $context["contactConseilAdministration"]) {
  715.                     // line 473
  716.                     echo "                                                <li>";
  717.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["contactConseilAdministration"], "conseilAdministration", [], "any"falsefalsefalse473), "role", [], "any"falsefalsefalse473), "html"nulltrue);
  718.                     echo "</li>
  719.                                             ";
  720.                 }
  721.                 $_parent $context['_parent'];
  722.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['contactConseilAdministration'], $context['_parent'], $context['loop']);
  723.                 $context array_intersect_key($context$_parent) + $_parent;
  724.                 // line 475
  725.                 echo "                                        </ul>
  726.                                     </td>
  727.                                     <td>
  728.                                         <ul class=\"\">
  729.                                             ";
  730.                 // line 479
  731.                 $context['_parent'] = $context;
  732.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["contact"], "repere", [], "any"falsefalsefalse479));
  733.                 foreach ($context['_seq'] as $context["_key"] => $context["repere"]) {
  734.                     // line 480
  735.                     echo "                                                <li>";
  736.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["repere"], "nom", [], "any"falsefalsefalse480), "html"nulltrue);
  737.                     echo "</li>
  738.                                             ";
  739.                 }
  740.                 $_parent $context['_parent'];
  741.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['repere'], $context['_parent'], $context['loop']);
  742.                 $context array_intersect_key($context$_parent) + $_parent;
  743.                 // line 482
  744.                 echo "                                        </ul>
  745.                                     </td>
  746.                                     <td class=\"text-bold\">";
  747.                 // line 484
  748.                 echo ((twig_get_attribute($this->env$this->source$context["contact"], "isPrivileged", [], "any"falsefalsefalse484)) ? ("Oui") : ("Non"));
  749.                 echo "</td>
  750.                                     <td class=\"text-bold\">";
  751.                 // line 485
  752.                 (( !(null === twig_get_attribute($this->env$this->source$context["contact"], "user", [], "any"falsefalsefalse485))) ? (print (twig_escape_filter($this->env, (("Oui (#" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["contact"], "user", [], "any"falsefalsefalse485), "id", [], "any"falsefalsefalse485)) . ")"), "html"nulltrue))) : (print ("Non")));
  753.                 echo "</td>
  754.                                     <td class=\"text-center\">
  755.                                         <button class=\"btn btn-outline-secondary btn-icon btn-rounded dropdown-toggle custom-dropdown\" type=\"button\" id=\"dropdownMenu_";
  756.                 // line 487
  757.                 echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  758.                 echo "\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
  759.                                             <i class=\"fa-solid fa-ellipsis\"></i>
  760.                                         </button>
  761.                                         <ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_";
  762.                 // line 490
  763.                 echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  764.                 echo "\">
  765.                                             <li>
  766.                                                 <a class=\"dropdown-item\" href=\"";
  767.                 // line 492
  768.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_contact", ["id" => twig_get_attribute($this->env$this->source$context["contact"], "id", [], "any"falsefalsefalse492)]), "html"nulltrue);
  769.                 echo "\">
  770.                                                     <i class=\"fas fa-eye\"></i> Visualiser
  771.                                                 </a>
  772.                                             </li>
  773.                                             ";
  774.                 // line 496
  775.                 if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  776.                     // line 497
  777.                     echo "                                                <li>
  778.                                                     <a class=\"dropdown-item\" href=\"";
  779.                     // line 498
  780.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edit_contact_from_firm", ["id" => twig_get_attribute($this->env$this->source$context["contact"], "id", [], "any"falsefalsefalse498)]), "html"nulltrue);
  781.                     echo "\">
  782.                                                         <i class=\"fas fa-edit\"></i> Editer
  783.                                                     </a>
  784.                                                 </li>
  785.                                                 <li>
  786.                                                     <a
  787.                                                             class=\"dropdown-item\"
  788.                                                             href=\"#\"
  789.                                                             data-controller=\"confirm-delete\"
  790.                                                             data-confirm-delete-url-value=\"";
  791.                     // line 507
  792.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("archive_contact", ["id" => twig_get_attribute($this->env$this->source$context["contact"], "id", [], "any"falsefalsefalse507)]), "html"nulltrue);
  793.                     echo "\"
  794.                                                             data-confirm-delete-message-value=\"Etes-vous sûr de vouloir archiver ce contact ?\"
  795.                                                             data-confirm-delete-token-value=\"";
  796.                     // line 509
  797.                     echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken(("contact_" twig_get_attribute($this->env$this->source$context["contact"], "id", [], "any"falsefalsefalse509))), "html"nulltrue);
  798.                     echo "\"
  799.                                                             data-confirm-delete-action-value=\"delete_line\"
  800.                                                     >
  801.                                                         <i class=\"fas fa-archive\"></i> Archiver
  802.                                                     </a>
  803.                                                 </li>
  804.                                             ";
  805.                 }
  806.                 // line 516
  807.                 echo "                                        </ul>
  808.                                     </td>
  809.                                 </tr>
  810.                             ";
  811.             }
  812.             // line 521
  813.             echo "                        ";
  814.         }
  815.         $_parent $context['_parent'];
  816.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['contact'], $context['_parent'], $context['loop']);
  817.         $context array_intersect_key($context$_parent) + $_parent;
  818.         // line 522
  819.         echo "                    </tbody>
  820.                 </table>
  821.             </div>
  822.         </div>
  823.     </div>
  824.     ";
  825.         // line 528
  826.         if ((((twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 529
  827. (isset($context["entreprise"]) || array_key_exists("entreprise"$context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.'529$this->source); })()), "firmType", [], "any"falsefalsefalse529), "tag", [], "any"falsefalsefalse529), [=> "trader"=> "transporter"]) && ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_BOARD_DIRECTOR") == false)) && ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_REGIONAL_AGENT") == false)) && ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_UNION_PRESIDENT") == false))) {
  828.             // line 534
  829.             echo "        <div class=\"card mb-4 d-none\">
  830.             <div class=\"card-header card-header-dark\">
  831.                 Adhésion
  832.             </div>
  833.             <div class=\"card-body\">
  834.                 <div class=\"row\">
  835.                     <div class=\"col-12 col-lg-6\">
  836.                         <div class=\"row mb-3\">
  837.                             <div class=\"col-3 text-bold\">Souhaite adhérer ?</div>
  838.                             <div class=\"col-9\">
  839.                                 ";
  840.             // line 544
  841.             echo ((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.'544$this->source); })()), "souhaiteAdherer", [], "any"falsefalsefalse544)) ? ("<span class=\"text-bold text-success\">Oui</span>") : ("Non"));
  842.             echo "
  843.                             </div>
  844.                         </div>
  845.                     </div>
  846.                     <div class=\"col-12 col-lg-6\">
  847.                         <div class=\"row mb-3\">
  848.                             <div class=\"col-3 text-bold\">Figurer dans l'annuaire ?</div>
  849.                             <div class=\"col-9\">
  850.                                 ";
  851.             // line 552
  852.             echo ((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.'552$this->source); })()), "figurerAnnuaireAdherents", [], "any"falsefalsefalse552)) ? ("<span class=\"text-bold text-success\">Oui</span>") : ("Non"));
  853.             echo "
  854.                             </div>
  855.                         </div>
  856.                     </div>
  857.                 </div>
  858.                 ";
  859.             // line 557
  860.             if (( !(null === 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.'557$this->source); })()), "raisonNonAdhesion", [], "any"falsefalsefalse557)) && (twig_trim_filter(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.'557$this->source); })()), "raisonNonAdhesion", [], "any"falsefalsefalse557)) != ""))) {
  861.                 // line 558
  862.                 echo "                <div class=\"row mt-3\">
  863.                     <div class=\"col-12 col-lg-6\">
  864.                         <div class=\"row mb-3\">
  865.                             <div class=\"col-3 text-bold\">Raison de non adhésion</div>
  866.                             <div class=\"col-9\">
  867.                                 ";
  868.                 // line 563
  869.                 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.'563$this->source); })()), "raisonNonAdhesion", [], "any"falsefalsefalse563), "html"nulltrue);
  870.                 echo "
  871.                             </div>
  872.                         </div>
  873.                     </div>
  874.                     <div class=\"col-12 col-lg-6\">
  875.                         <div class=\"row mb-3\">
  876.                             <div class=\"col-3 text-bold\"></div>
  877.                             <div class=\"col-9\">
  878.                                 ";
  879.                 // line 571
  880.                 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.'571$this->source); })()), "raisonNonAdhesionAutre", [], "any"falsefalsefalse571), "html"nulltrue);
  881.                 echo "
  882.                             </div>
  883.                         </div>
  884.                     </div>
  885.                 </div>
  886.                 ";
  887.             }
  888.             // line 577
  889.             echo "            </div>
  890.         </div>
  891.     ";
  892.         }
  893.         // line 580
  894.         echo "
  895.     ";
  896.         // line 581
  897.         if (twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_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.'581$this->source); })()), "firmType", [], "any"falsefalsefalse581), "tag", [], "any"falsefalsefalse581), [=> "trader"=> "transporter"])) {
  898.             // line 582
  899.             echo "        <div class=\"card mb-4\">
  900.             <div class=\"card-header card-header-dark\">
  901.                 QUALI NEGOCE
  902.             </div>
  903.             <div class=\"card-body\">
  904.                 <div class=\"row mb-3\">
  905.                     <div class=\"col-3 text-bold\">Quali Négoce ?</div>
  906.                     <div class=\"col-9\">
  907.                         ";
  908.             // line 590
  909.             echo ((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.'590$this->source); })()), "isQualiNegoce", [], "any"falsefalsefalse590)) ? ("<span class=\"text-bold text-success\">Oui</span>") : ("Non"));
  910.             echo "
  911.                     </div>
  912.                 </div>
  913.                 <div class=\"row\">
  914.                     <div class=\"col-12 col-lg-4 mb-3\">
  915.                         <div class=\"row\">
  916.                             <div class=\"col-3 text-bold\">Date de certification</div>
  917.                             <div class=\"col-9\">
  918.                                 ";
  919.             // line 598
  920.             ((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.'598$this->source); })()), "qualiNegoceCertificationDate", [], "any"falsefalsefalse598)) ? (print (twig_escape_filter($this->envtwig_date_format_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.'598$this->source); })()), "qualiNegoceCertificationDate", [], "any"falsefalsefalse598), "d/m/Y"), "html"nulltrue))) : (print ("")));
  921.             echo "
  922.                             </div>
  923.                         </div>
  924.                     </div>
  925.                     <div class=\"col-12 col-lg-4 mb-3\">
  926.                         <div class=\"row\">
  927.                             <div class=\"col-3 text-bold\">Date pre audit</div>
  928.                             <div class=\"col-9\">
  929.                                 ";
  930.             // line 606
  931.             ((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.'606$this->source); })()), "qualiNegocePreAuditDate", [], "any"falsefalsefalse606)) ? (print (twig_escape_filter($this->envtwig_date_format_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.'606$this->source); })()), "qualiNegocePreAuditDate", [], "any"falsefalsefalse606), "d/m/Y"), "html"nulltrue))) : (print ("")));
  932.             echo "
  933.                             </div>
  934.                         </div>
  935.                     </div>
  936.                     <div class=\"col-12 col-lg-4 mb-3\">
  937.                         <div class=\"row\">
  938.                             <div class=\"col-3 text-bold\">Date d’audit intermédiaire</div>
  939.                             <div class=\"col-9\">
  940.                                 ";
  941.             // line 614
  942.             ((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.'614$this->source); })()), "qualiNegoceCertificationDate", [], "any"falsefalsefalse614)) ? (print (twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_date_modify_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.'614$this->source); })()), "qualiNegoceCertificationDate", [], "any"falsefalsefalse614), "+18 month"), "d/m/Y"), "html"nulltrue))) : (print ("")));
  943.             echo "
  944.                             </div>
  945.                         </div>
  946.                     </div>
  947.                 </div>
  948.                 <hr class=\"mb-4\">
  949.                 <h4 class=\"mt-4 mb-3\">Nom du / des référent(s)</h4>
  950.                 <div class=\"table-responsive\">
  951.                     <table class=\"w-100\" id=\"quali-negoce-contacts\">
  952.                         <tbody>
  953.                         ";
  954.             // line 627
  955.             $context['_parent'] = $context;
  956.             $context['_seq'] = twig_ensure_traversable(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.'627$this->source); })()), "firmContactQualiNegoces", [], "any"falsefalsefalse627));
  957.             foreach ($context['_seq'] as $context["_key"] => $context["firmContactQualiNegoce"]) {
  958.                 // line 628
  959.                 echo "                            <tr>
  960.                                 <td>
  961.                                     ";
  962.                 // line 630
  963.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["firmContactQualiNegoce"], "contact", [], "any"falsefalsefalse630), "fullname", [], "any"falsefalsefalse630), "html"nulltrue);
  964.                 echo "
  965.                                 </td>
  966.                             </tr>
  967.                         ";
  968.             }
  969.             $_parent $context['_parent'];
  970.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['firmContactQualiNegoce'], $context['_parent'], $context['loop']);
  971.             $context array_intersect_key($context$_parent) + $_parent;
  972.             // line 634
  973.             echo "                        </tbody>
  974.                     </table>
  975.                 </div>
  976.                 <hr class=\"mb-4\">
  977.                 <h4 class=\"mt-4 mb-3\">Mes documents Quali Negoce</h4>
  978.                 <div class=\"table-responsive\">
  979.                     <table class=\"w-100\" id=\"quali-negoce-document\">
  980.                         <tbody>
  981.                             ";
  982.             // line 645
  983.             $context['_parent'] = $context;
  984.             $context['_seq'] = twig_ensure_traversable(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.'645$this->source); })()), "firmQualiNegoceDocuments", [], "any"falsefalsefalse645));
  985.             foreach ($context['_seq'] as $context["_key"] => $context["document"]) {
  986.                 // line 646
  987.                 echo "                                <tr>
  988.                                     <td>
  989.                                         <a href=\"";
  990.                 // line 648
  991.                 echo twig_escape_filter($this->env$this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset($context["document"], "documentFile"), "html"nulltrue);
  992.                 echo "\" target=\"_blank\">";
  993.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["document"], "originalFileName", [], "any"falsefalsefalse648), "html"nulltrue);
  994.                 echo "</a>
  995.                                     </td>
  996.                                 </tr>
  997.                             ";
  998.             }
  999.             $_parent $context['_parent'];
  1000.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['document'], $context['_parent'], $context['loop']);
  1001.             $context array_intersect_key($context$_parent) + $_parent;
  1002.             // line 652
  1003.             echo "                        </tbody>
  1004.                     </table>
  1005.                 </div>
  1006.             </div>
  1007.         </div>
  1008.     ";
  1009.         }
  1010.         // line 658
  1011.         echo "
  1012.     ";
  1013.         // line 659
  1014.         if ((((twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 660
  1015. (isset($context["entreprise"]) || array_key_exists("entreprise"$context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.'660$this->source); })()), "firmType", [], "any"falsefalsefalse660), "tag", [], "any"falsefalsefalse660), [=> "trader"=> "transporter"]) && ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_BOARD_DIRECTOR") == false)) && ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_REGIONAL_AGENT") == false)) && ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_UNION_PRESIDENT") == false))) {
  1016.             // line 665
  1017.             echo "        <div class=\"card mb-4\">
  1018.             <div class=\"card-header card-header-dark\">
  1019.                 Chiffre d'affaires des 3 dernières années
  1020.             </div>
  1021.             <div class=\"card-body\">
  1022.                 ";
  1023.             // line 670
  1024.             $context["year"] = $this->extensions['App\Twig\CastExtension']->castToInt(twig_date_format_filter($this->env"now""Y"));
  1025.             // line 671
  1026.             echo "                <div class=\"table-responsive\">
  1027.                     <table class=\"table\">
  1028.                         <thead>
  1029.                             <tr>
  1030.                                 <th>Année</th>
  1031.                                 <th>Chiffre d'affaire</th>
  1032.                                 <th>Type cotisation</th>
  1033.                                 <th>Montant cotisation</th>
  1034.                                 <th>Option(s)</th>
  1035.                             </tr>
  1036.                         </thead>
  1037.                         <tbody>
  1038.                             ";
  1039.             // line 683
  1040.             $context['_parent'] = $context;
  1041.             $context['_seq'] = twig_ensure_traversable([=> 0=> 1=> 2]);
  1042.             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  1043.                 // line 684
  1044.                 echo "                                ";
  1045.                 $context["cotisation"] = 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.'684$this->source); })()), "getCotisationByYear", [=> ((isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'684$this->source); })()) - $context["i"])], "method"falsefalsefalse684);
  1046.                 // line 685
  1047.                 echo "                                <tr>
  1048.                                     <td>";
  1049.                 // line 686
  1050.                 echo twig_escape_filter($this->env, ((isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'686$this->source); })()) - $context["i"]), "html"nulltrue);
  1051.                 echo "</td>
  1052.                                     <td>";
  1053.                 // line 687
  1054.                 echo twig_escape_filter($this->env, ((((isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'687$this->source); })()) && (twig_get_attribute($this->env$this->source, (isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'687$this->source); })()), "revenue", [], "any"falsefalsefalse687) > 0))) ? ((twig_number_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'687$this->source); })()), "revenue", [], "any"falsefalsefalse687), 2","" ") . " €")) : (("Pas de chiffre d'affaire renseigné pour l'année " . ((isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'687$this->source); })()) - $context["i"])))), "html"nulltrue);
  1055.                 echo "</td>
  1056.                                     <td>";
  1057.                 // line 688
  1058.                 ((((isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'688$this->source); })()) && twig_get_attribute($this->env$this->source, (isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'688$this->source); })()), "cotisationType", [], "any"falsefalsefalse688))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'688$this->source); })()), "cotisationType", [], "any"falsefalsefalse688), "name", [], "any"falsefalsefalse688), "html"nulltrue))) : (print ("")));
  1059.                 echo "</td>
  1060.                                     <td>";
  1061.                 // line 689
  1062.                 (((isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'689$this->source); })())) ? (print (twig_escape_filter($this->env, (twig_number_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'689$this->source); })()), "priceTtc", [], "any"falsefalsefalse689), 2","" ") . " €"), "html"nulltrue))) : (print ("")));
  1063.                 echo "</td>
  1064.                                     <td>
  1065.                                         ";
  1066.                 // line 691
  1067.                 if ((isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'691$this->source); })())) {
  1068.                     // line 692
  1069.                     echo "                                            <div>Import / Export: ";
  1070.                     echo (((twig_get_attribute($this->env$this->source, (isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'692$this->source); })()), "optionImportExport", [], "any"falsefalsefalse692) > 0)) ? ("Oui") : ("Non"));
  1071.                     echo "</div>
  1072.                                             <div>Mapa: ";
  1073.                     // line 693
  1074.                     echo ((twig_get_attribute($this->env$this->source, (isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'693$this->source); })()), "optionMapa", [], "any"falsefalsefalse693)) ? ("Oui") : ("Non"));
  1075.                     echo "</div>
  1076.                                         ";
  1077.                 }
  1078.                 // line 695
  1079.                 echo "                                    </td>
  1080.                                 </tr>
  1081.                             ";
  1082.             }
  1083.             $_parent $context['_parent'];
  1084.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  1085.             $context array_intersect_key($context$_parent) + $_parent;
  1086.             // line 698
  1087.             echo "                        </tbody>
  1088.                     </table>
  1089.                 </div>
  1090.             </div>
  1091.         </div>
  1092.     ";
  1093.         }
  1094.         // line 704
  1095.         echo "
  1096.     ";
  1097.         // line 705
  1098.         if (((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_BOARD_DIRECTOR") == false) && ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_REGIONAL_AGENT") == false)) && ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_UNION_PRESIDENT") == false))) {
  1099.             // line 710
  1100.             echo "        <div class=\"card mb-4\">
  1101.             <div class=\"card-header card-header-dark\">
  1102.                 Commentaire
  1103.             </div>
  1104.             <div class=\"card-body\">
  1105.                 <div class=\"mb-2\">
  1106.                     <div class=\"text-bold show-label\">Commentaire:</div>
  1107.                     <div class=\"mt-3\">";
  1108.             // line 717
  1109.             echo 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.'717$this->source); })()), "commentaires", [], "any"falsefalsefalse717);
  1110.             echo "</div>
  1111.                 </div>
  1112.             </div>
  1113.         </div>
  1114.     ";
  1115.         }
  1116.         // line 722
  1117.         echo "
  1118.     <div class=\"card mb-4\">
  1119.         <div class=\"card-header card-header-dark\">
  1120.             Liaison(s) entreprise
  1121.         </div>
  1122.         <div class=\"card-body\">
  1123.             <div class=\"table-responsive\">
  1124.                 <table class=\"table\">
  1125.                     <thead>
  1126.                         <tr>
  1127.                             <th>Entreprise source</th>
  1128.                             <th>Type</th>
  1129.                             <th>Entreprise cible</th>
  1130.                             <th>Date</th>
  1131.                             <th>Commentaire</th>
  1132.                         </tr>
  1133.                     </thead>
  1134.                     <tbody>
  1135.                         ";
  1136.         // line 740
  1137.         $context['_parent'] = $context;
  1138.         $context['_seq'] = twig_ensure_traversable((isset($context["linkedFirmWithFromMe"]) || array_key_exists("linkedFirmWithFromMe"$context) ? $context["linkedFirmWithFromMe"] : (function () { throw new RuntimeError('Variable "linkedFirmWithFromMe" does not exist.'740$this->source); })()));
  1139.         foreach ($context['_seq'] as $context["_key"] => $context["fromMe"]) {
  1140.             // line 741
  1141.             echo "                            <tr>
  1142.                                 <td>
  1143.                                     <a href=\"";
  1144.             // line 743
  1145.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_entreprise", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["fromMe"], "fromFirm", [], "any"falsefalsefalse743), "id", [], "any"falsefalsefalse743)]), "html"nulltrue);
  1146.             echo "\">
  1147.                                         ";
  1148.             // line 744
  1149.             echo twig_escape_filter($this->env, (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["fromMe"], "fromFirm", [], "any"falsefalsefalse744), "raisonSocial", [], "any"falsefalsefalse744) . " (#") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["fromMe"], "fromFirm", [], "any"falsefalsefalse744), "id", [], "any"falsefalsefalse744)) . ")"), "html"nulltrue);
  1150.             echo "
  1151.                                     </a>
  1152.                                 </td>
  1153.                                 <td>";
  1154.             // line 747
  1155.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["fromMe"], "type", [], "any"falsefalsefalse747), "name", [], "any"falsefalsefalse747), "html"nulltrue);
  1156.             echo "</td>
  1157.                                 <td>
  1158.                                     <a href=\"";
  1159.             // line 749
  1160.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_entreprise", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["fromMe"], "toFirm", [], "any"falsefalsefalse749), "id", [], "any"falsefalsefalse749)]), "html"nulltrue);
  1161.             echo "\">
  1162.                                         ";
  1163.             // line 750
  1164.             echo twig_escape_filter($this->env, (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["fromMe"], "toFirm", [], "any"falsefalsefalse750), "raisonSocial", [], "any"falsefalsefalse750) . " (#") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["fromMe"], "toFirm", [], "any"falsefalsefalse750), "id", [], "any"falsefalsefalse750)) . ")"), "html"nulltrue);
  1165.             echo "
  1166.                                     </a>
  1167.                                 </td>
  1168.                                 <td>";
  1169.             // line 753
  1170.             ((twig_get_attribute($this->env$this->source$context["fromMe"], "date", [], "any"falsefalsefalse753)) ? (print (twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["fromMe"], "date", [], "any"falsefalsefalse753), "d/m/Y"), "html"nulltrue))) : (print ("")));
  1171.             echo "</td>
  1172.                                 <td>";
  1173.             // line 754
  1174.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["fromMe"], "comment", [], "any"falsefalsefalse754), "html"nulltrue);
  1175.             echo "</td>
  1176.                             </tr>
  1177.                         ";
  1178.         }
  1179.         $_parent $context['_parent'];
  1180.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['fromMe'], $context['_parent'], $context['loop']);
  1181.         $context array_intersect_key($context$_parent) + $_parent;
  1182.         // line 757
  1183.         echo "                        ";
  1184.         $context['_parent'] = $context;
  1185.         $context['_seq'] = twig_ensure_traversable((isset($context["linkedFirmWithToMe"]) || array_key_exists("linkedFirmWithToMe"$context) ? $context["linkedFirmWithToMe"] : (function () { throw new RuntimeError('Variable "linkedFirmWithToMe" does not exist.'757$this->source); })()));
  1186.         foreach ($context['_seq'] as $context["_key"] => $context["toMe"]) {
  1187.             // line 758
  1188.             echo "                            <tr>
  1189.                                 <td>
  1190.                                     <a href=\"";
  1191.             // line 760
  1192.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_entreprise", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["toMe"], "fromFirm", [], "any"falsefalsefalse760), "id", [], "any"falsefalsefalse760)]), "html"nulltrue);
  1193.             echo "\">
  1194.                                         ";
  1195.             // line 761
  1196.             echo twig_escape_filter($this->env, (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["toMe"], "fromFirm", [], "any"falsefalsefalse761), "raisonSocial", [], "any"falsefalsefalse761) . " (#") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["toMe"], "fromFirm", [], "any"falsefalsefalse761), "id", [], "any"falsefalsefalse761)) . ")"), "html"nulltrue);
  1197.             echo "
  1198.                                     </a>
  1199.                                 </td>
  1200.                                 <td>";
  1201.             // line 764
  1202.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["toMe"], "type", [], "any"falsefalsefalse764), "name", [], "any"falsefalsefalse764), "html"nulltrue);
  1203.             echo "</td>
  1204.                                 <td>
  1205.                                     <a href=\"";
  1206.             // line 766
  1207.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_entreprise", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["toMe"], "toFirm", [], "any"falsefalsefalse766), "id", [], "any"falsefalsefalse766)]), "html"nulltrue);
  1208.             echo "\">
  1209.                                         ";
  1210.             // line 767
  1211.             echo twig_escape_filter($this->env, (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["toMe"], "toFirm", [], "any"falsefalsefalse767), "raisonSocial", [], "any"falsefalsefalse767) . " (#") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["toMe"], "toFirm", [], "any"falsefalsefalse767), "id", [], "any"falsefalsefalse767)) . ")"), "html"nulltrue);
  1212.             echo "
  1213.                                     </a>
  1214.                                 </td>
  1215.                                 <td>";
  1216.             // line 770
  1217.             ((twig_get_attribute($this->env$this->source$context["toMe"], "date", [], "any"falsefalsefalse770)) ? (print (twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["toMe"], "date", [], "any"falsefalsefalse770), "d/m/Y"), "html"nulltrue))) : (print ("")));
  1218.             echo "</td>
  1219.                                 <td>";
  1220.             // line 771
  1221.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["toMe"], "comment", [], "any"falsefalsefalse771), "html"nulltrue);
  1222.             echo "</td>
  1223.                             </tr>
  1224.                         ";
  1225.         }
  1226.         $_parent $context['_parent'];
  1227.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['toMe'], $context['_parent'], $context['loop']);
  1228.         $context array_intersect_key($context$_parent) + $_parent;
  1229.         // line 774
  1230.         echo "                    </tbody>
  1231.                 </table>
  1232.             </div>
  1233.         </div>
  1234.     </div>
  1235. ";
  1236.         
  1237.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1238.         
  1239.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1240.     }
  1241.     public function getTemplateName()
  1242.     {
  1243.         return "backend/entreprise/show.html.twig";
  1244.     }
  1245.     public function isTraitable()
  1246.     {
  1247.         return false;
  1248.     }
  1249.     public function getDebugInfo()
  1250.     {
  1251.         return array (  1268 => 774,  1259 => 771,  1255 => 770,  1249 => 767,  1245 => 766,  1240 => 764,  1234 => 761,  1230 => 760,  1226 => 758,  1221 => 757,  1212 => 754,  1208 => 753,  1202 => 750,  1198 => 749,  1193 => 747,  1187 => 744,  1183 => 743,  1179 => 741,  1175 => 740,  1155 => 722,  1147 => 717,  1138 => 710,  1136 => 705,  1133 => 704,  1125 => 698,  1117 => 695,  1112 => 693,  1107 => 692,  1105 => 691,  1100 => 689,  1096 => 688,  1092 => 687,  1088 => 686,  1085 => 685,  1082 => 684,  1078 => 683,  1064 => 671,  1062 => 670,  1055 => 665,  1053 => 660,  1052 => 659,  1049 => 658,  1041 => 652,  1029 => 648,  1025 => 646,  1021 => 645,  1008 => 634,  998 => 630,  994 => 628,  990 => 627,  974 => 614,  963 => 606,  952 => 598,  941 => 590,  931 => 582,  929 => 581,  926 => 580,  921 => 577,  912 => 571,  901 => 563,  894 => 558,  892 => 557,  884 => 552,  873 => 544,  861 => 534,  859 => 529,  858 => 528,  850 => 522,  844 => 521,  837 => 516,  827 => 509,  822 => 507,  810 => 498,  807 => 497,  805 => 496,  798 => 492,  793 => 490,  787 => 487,  782 => 485,  778 => 484,  774 => 482,  765 => 480,  761 => 479,  755 => 475,  746 => 473,  742 => 472,  736 => 468,  727 => 466,  723 => 465,  718 => 463,  714 => 462,  710 => 461,  706 => 460,  702 => 459,  699 => 458,  696 => 457,  692 => 456,  670 => 436,  662 => 432,  660 => 431,  654 => 427,  645 => 421,  637 => 415,  634 => 414,  625 => 379,  614 => 371,  603 => 363,  592 => 355,  582 => 347,  576 => 343,  573 => 342,  564 => 336,  553 => 328,  542 => 320,  531 => 312,  522 => 305,  520 => 304,  514 => 301,  507 => 296,  504 => 295,  498 => 294,  495 => 293,  493 => 292,  488 => 291,  486 => 290,  483 => 289,  478 => 288,  474 => 286,  472 => 285,  467 => 282,  465 => 281,  458 => 276,  456 => 271,  455 => 270,  452 => 269,  444 => 263,  435 => 259,  425 => 252,  420 => 250,  415 => 248,  405 => 241,  402 => 240,  400 => 239,  393 => 235,  388 => 233,  382 => 230,  377 => 228,  373 => 227,  368 => 225,  364 => 224,  360 => 223,  355 => 221,  351 => 220,  347 => 219,  343 => 218,  339 => 217,  336 => 216,  332 => 215,  312 => 197,  304 => 193,  302 => 192,  297 => 189,  295 => 188,  284 => 180,  277 => 176,  269 => 171,  262 => 167,  248 => 156,  241 => 152,  234 => 148,  227 => 144,  220 => 140,  213 => 136,  196 => 122,  192 => 120,  186 => 117,  182 => 115,  180 => 114,  175 => 112,  168 => 108,  161 => 104,  154 => 100,  147 => 96,  140 => 92,  133 => 88,  125 => 83,  119 => 80,  115 => 79,  109 => 76,  105 => 75,  96 => 68,  94 => 15,  93 => 10,  92 => 7,  89 => 6,  79 => 5,  59 => 3,  36 => 1,);
  1252.     }
  1253.     public function getSourceContext()
  1254.     {
  1255.         return new Source("{% extends 'backend/base.html.twig' %}
  1256. {% block title %}Entreprise {{ entreprise.raisonSocial }}{% endblock %}
  1257. {% block content %}
  1258.     {% embed 'backend/partials/_breadcrumb.html.twig' with {
  1259.         datas: [
  1260.             {label: 'Entreprises', url: path('advanced_search', {entity: 'entreprise'})},
  1261.             {label: entreprise.raisonSocial ~ ' <i>(#' ~ entreprise.id ~ ')</i>'}
  1262.         ],
  1263.         buttons: [
  1264.             {
  1265.                 display: is_granted('ROLE_UPDATE_ENTITY') ? true : false,
  1266.                 url: path('edit_entreprise', {'id': entreprise.id }),
  1267.                 class: 'btn btn-sm btn-primary',
  1268.                 icon: 'fas fa-edit',
  1269.                 label: 'Modifier'
  1270.             }
  1271.         ]
  1272.     } %}
  1273.         {% block other_button_after %}
  1274.             {% if is_granted('ROLE_ADMIN') %}
  1275.                 <a href=\"{{ path('show_entreprise_cotisation', {id: entreprise.id}) }}\" class=\"btn btn-sm btn-primary\">
  1276.                     <i class=\"fas fa-eye\"></i> Voir les cotisations
  1277.                 </a>
  1278.                 <a href=\"{{ path('show_history_entreprise', {id: entreprise.id}) }}\" class=\"btn btn-sm btn-primary\">
  1279.                     <i class=\"fas fa-archive\"></i> Historique des modifications
  1280.                 </a>
  1281.                 <a href=\"{{ path('duplicate_entreprise', {id: entreprise.id}) }}\" class=\"btn btn-sm btn-warning\">
  1282.                     <i class=\"fa-regular fa-copy\"></i> Dupliquer
  1283.                 </a>
  1284.                 {% if entreprise.status != constant('App\\\\Entity\\\\Entreprise::STATUS_MERGED') %}
  1285.                     <a href=\"#\" class=\"btn btn-sm btn-warning\" data-bs-toggle=\"modal\" data-bs-target=\"#fusionModal\">
  1286.                         <i class=\"fa-solid fa-code-merge\"></i> Fusionner
  1287.                     </a>
  1288.                 {% endif %}
  1289.                 <div class=\"modal fade\" id=\"fusionModal\" tabindex=\"-1\" aria-labelledby=\"fusionModalLabel\" aria-hidden=\"true\">
  1290.                     <div class=\"modal-dialog\">
  1291.                         <div class=\"modal-content\">
  1292.                             {{ form_start(formFusion) }}
  1293.                                 <div class=\"modal-header\">
  1294.                                     <h1 class=\"modal-title fs-5\" id=\"fusionModalLabel\">Fusionner</h1>
  1295.                                     <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
  1296.                                 </div>
  1297.                                 <div class=\"modal-body text-start\">
  1298.                                         {{ form_row(formFusion.toFirm) }}
  1299.                                         {{ form_row(formFusion.date) }}
  1300.                                         {{ form_row(formFusion.type) }}
  1301.                                         {{ form_row(formFusion.comment) }}
  1302.                                 </div>
  1303.                                 <div class=\"modal-footer\">
  1304.                                     <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Annuler</button>
  1305.                                     <button type=\"submit\" class=\"btn btn-primary\">Valider</button>
  1306.                                 </div>
  1307.                             {{ form_end(formFusion) }}
  1308.                         </div>
  1309.                     </div>
  1310.                 </div>
  1311.             {% endif %}
  1312.         {% endblock %}
  1313.     {% endembed %}
  1314.     <div class=\"row justify-content-md-center mb-4\">
  1315.         <div class=\"col-12 col-lg-6\">
  1316.             <div class=\"card h-100\">
  1317.                 <div class=\"card-header card-header-dark\">
  1318.                     Informations générales
  1319.                     <span class=\"mx-2 float-end badge bg-{{ entreprise.isMember ? 'success' : 'danger' }} p-2\">
  1320.                         {{ (entreprise.isMember ? 'adhésion payée' : 'adhésion non payée')|upper }}
  1321.                     </span>
  1322.                     <span class=\"float-end badge bg-{{ entreprise.firmType.color ?? 'secondary' }} p-2\">
  1323.                         {{ entreprise.firmType.name|upper }}
  1324.                     </span>
  1325.                     {{ bagdeStatusFirm(entreprise.status, 'float-end mx-2') }}
  1326.                 </div>
  1327.                 <div class=\"card-body\">
  1328.                     <div class=\"row mb-3\">
  1329.                         <div class=\"col-3 text-bold\">Raison sociale</div>
  1330.                         <div class=\"col-9\">{{ entreprise.raisonSocial }}</div>
  1331.                     </div>
  1332.                     <div class=\"row mb-3\">
  1333.                         <div class=\"col-3 text-bold\">Téléphone bureau</div>
  1334.                         <div class=\"col-9\">{{ entreprise.tel1 }}</div>
  1335.                     </div>
  1336.                     <div class=\"row mb-3\">
  1337.                         <div class=\"col-3 text-bold\">Email</div>
  1338.                         <div class=\"col-9\">{{ entreprise.email }}</div>
  1339.                     </div>
  1340.                     <div class=\"row mb-3\">
  1341.                         <div class=\"col-3 text-bold\">N° APE</div>
  1342.                         <div class=\"col-9\">{{ entreprise.codeApe }}</div>
  1343.                     </div>
  1344.                     <div class=\"row mb-3\">
  1345.                         <div class=\"col-3 text-bold\">N° Siret</div>
  1346.                         <div class=\"col-9\">{{ entreprise.codeSiren }}</div>
  1347.                     </div>
  1348.                     <div class=\"row mb-3\">
  1349.                         <div class=\"col-3 text-bold\">N° TVA Intracom</div>
  1350.                         <div class=\"col-9\">{{ entreprise.numTvaIntracom }}</div>
  1351.                     </div>
  1352.                     <div class=\"row mb-3\">
  1353.                         <div class=\"col-3 text-bold\">RC</div>
  1354.                         <div class=\"col-9\">{{ entreprise.numEdeCentre }}</div>
  1355.                     </div>
  1356.                     {% if entreprise.dateCessation %}
  1357.                         <div class=\"row mb-3\">
  1358.                             <div class=\"col-3 text-bold\">Date cessation activité</div>
  1359.                             <div class=\"col-9\">{{ entreprise.dateCessation ? entreprise.dateCessation|date('d/m/Y') : '' }}</div>
  1360.                         </div>
  1361.                     {% endif %}
  1362.                     <div class=\"row mb-3 d-none\">
  1363.                         <div class=\"col-3 text-bold\">Identifiant comptable</div>
  1364.                         <div class=\"col-9\">{{ entreprise.identifiantCompta }}</div>
  1365.                     </div>
  1366.                 </div>
  1367.             </div>
  1368.         </div>
  1369.         <div class=\"col-12 col-lg-6 mt-4 mt-lg-0\">
  1370.             <div class=\"h-100\">
  1371.                 <div class=\"card\">
  1372.                     <div class=\"card-header card-header-dark\">
  1373.                         <div class=\"pb-2\">Adresse du siège social</div>
  1374.                     </div>
  1375.                     <div class=\"card-body\">
  1376.                         <div class=\"mb-2\">
  1377.                             <span class=\"text-bold show-label\">Adresse:</span>
  1378.                             <span>{{ entreprise.adresse is not empty ? entreprise.adresse : '' }}</span>
  1379.                         </div>
  1380.                         <div class=\"mb-2\">
  1381.                             <span class=\"text-bold show-label\">Adresse compl.:</span>
  1382.                             <span>{{ entreprise.adresse2 is not empty ? entreprise.adresse2 : '' }}</span>
  1383.                         </div>
  1384.                         <div class=\"mb-2\">
  1385.                             <span class=\"text-bold show-label\">Code postal:</span>
  1386.                             <span>{{ entreprise.codePostal is not empty ? entreprise.codePostal : '' }}</span>
  1387.                         </div>
  1388.                         <div class=\"mb-2\">
  1389.                             <span class=\"text-bold show-label\">Ville:</span>
  1390.                             <span>{{ entreprise.ville is not empty ? entreprise.ville : '' }}</span>
  1391.                         </div>
  1392.                         <div class=\"mb-2\">
  1393.                             <span class=\"text-bold show-label\">Département:</span>
  1394.                             <span>{{ entreprise.departement is not null ? entreprise.departement.nom : '' }}</span>
  1395.                         </div>
  1396.                         <div class=\"mb-2\">
  1397.                             <span class=\"text-bold show-label\">Région:</span>
  1398.                             <span>{{ entreprise.departement is not null and entreprise.departement.regions is not null ? entreprise.departement.regions.first.nom : '' }}</span>
  1399.                         </div>
  1400.                     </div>
  1401.                 </div>
  1402.                 <div class=\"card mb-0\">
  1403.                     <div class=\"card-header card-header-dark\">
  1404.                         Fédération
  1405.                     </div>
  1406.                     <div class=\"card-body\">
  1407.                         <div class=\"row mb-3\">
  1408.                             <div class=\"col-3 text-bold\">Syndicat de rattachement</div>
  1409.                             <div class=\"col-9\">{{ entreprise.syndicat.nom is defined ? entreprise.syndicat.nom : '' }}</div>
  1410.                         </div>
  1411.                         <div class=\"row mb-3\">
  1412.                             <div class=\"col-3 text-bold\">Région de rattachement</div>
  1413.                             <div class=\"col-9\">{{ entreprise.homeRegion ? entreprise.homeRegion.nom : '' }}</div>
  1414.                         </div>
  1415.                         <div class=\"row mb-3\">
  1416.                             <div class=\"col-3 text-bold\">Groupe entreprise</div>
  1417.                             <div class=\"col-9\">{{ entreprise.groupeEntreprise ? entreprise.groupeEntreprise.nom : '' }}</div>
  1418.                         </div>
  1419.                         <div class=\"row mb-3\">
  1420.                             <div class=\"col-3 text-bold\">Commission</div>
  1421.                             <div class=\"col-9\">{{ entreprise.commission ? entreprise.commission.nom : '' }}</div>
  1422.                         </div>
  1423.                     </div>
  1424.                 </div>
  1425.             </div>
  1426.         </div>
  1427.     </div>
  1428.     {% if entreprise.firmType.tag in ['trader', 'transporter'] %}
  1429.         <div class=\"card mb-4\">
  1430.             <div class=\"card-header card-header-dark\">
  1431.                 Etablissement(s) / Centres de rassemblement
  1432.                 {% if is_granted('ROLE_ADMIN') %}
  1433.                     <a href=\"{{ path('add_establishment', {id: entreprise.id}) }}\" class=\"float-end text-white\">
  1434.                         <i class=\"fas fa-plus fa-2x\"></i>
  1435.                     </a>
  1436.                 {% endif %}
  1437.             </div>
  1438.             <div class=\"card-body\">
  1439.                 <div class=\"table-responsive\">
  1440.                     <table class=\"table\">
  1441.                         <thead>
  1442.                             <tr>
  1443.                                 <th>Type</th>
  1444.                                 <th>Tél</th>
  1445.                                 <th>Email</th>
  1446.                                 <th>N° siret</th>
  1447.                                 <th>Code EDE</th>
  1448.                                 <th>Adresse</th>
  1449.                                 <th>Département</th>
  1450.                                 <th>Date de cessation</th>
  1451.                                 <th class=\"text-center\">Actions</th>
  1452.                             </tr>
  1453.                         </thead>
  1454.                         <tbody>
  1455.                             {% for key, etablissement in entreprise.etablissements %}
  1456.                                 <tr>
  1457.                                     <td>{{ etablissement.siegeSocial ? '<strong class=\"text-primary\">Siège social</strong>'|raw : 'Etablissement' }}</td>
  1458.                                     <td>{{ etablissement.telBureau1 }}</td>
  1459.                                     <td>{{ etablissement.emailBureau }}</td>
  1460.                                     <td>{{ etablissement.codeSiret }}</td>
  1461.                                     <td>{{ etablissement.codeEde }}</td>
  1462.                                     <td>
  1463.                                         {{ etablissement.adresse }}<br>
  1464.                                         {{ etablissement.codePostal }}<br>
  1465.                                         {{ etablissement.ville }}
  1466.                                     </td>
  1467.                                     <td>{{ etablissement.departement ? etablissement.departement.nom : '' }}</td>
  1468.                                     <td>{{ etablissement.dateCessation ? etablissement.dateCessation|date('d/m/Y') }}</td>
  1469.                                     <td class=\"text-center\">
  1470.                                         <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\">
  1471.                                             <i class=\"fa-solid fa-ellipsis\"></i>
  1472.                                         </button>
  1473.                                         <ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_{{ key }}\">
  1474.                                             <li>
  1475.                                                 <a class=\"dropdown-item\" href=\"{{ path('show_establishment', {id: etablissement.id }) }}\">
  1476.                                                     <i class=\"fas fa-eye\"></i> Visualiser
  1477.                                                 </a>
  1478.                                             </li>
  1479.                                             {% if is_granted('ROLE_ADMIN') %}
  1480.                                             <li>
  1481.                                                 <a class=\"dropdown-item\" href=\"{{ path('edit_establishment', {id: etablissement.id}) }}\">
  1482.                                                     <i class=\"fas fa-edit\"></i> Editer
  1483.                                                 </a>
  1484.                                             </li>
  1485.                                             <li>
  1486.                                                 <a
  1487.                                                         class=\"dropdown-item\"
  1488.                                                         href=\"{{ path('delete_establishment', {id: etablissement.id}) }}\"
  1489.                                                         data-controller=\"confirm-delete\"
  1490.                                                         data-confirm-delete-url-value=\"{{ path('delete_establishment', {id: etablissement.id}) }}\"
  1491.                                                         data-confirm-delete-message-value=\"Etes-vous sûr de vouloir supprimer cet établissement ?\"
  1492.                                                         data-confirm-delete-token-value=\"{{ csrf_token('etablissement_' ~ etablissement.id) }}\"
  1493.                                                         data-confirm-delete-action-value=\"delete_line\"
  1494.                                                 >
  1495.                                                     <i class=\"fas fa-trash\"></i> Supprimer
  1496.                                                 </a>
  1497.                                             </li>
  1498.                                             {% endif %}
  1499.                                         </ul>
  1500.                                     </td>
  1501.                                 </tr>
  1502.                             {% endfor %}
  1503.                         </tbody>
  1504.                     </table>
  1505.                 </div>
  1506.             </div>
  1507.         </div>
  1508.     {% endif %}
  1509.     {% if
  1510.         entreprise.firmType.tag in ['trader', 'transporter'] and
  1511.         is_granted('ROLE_BOARD_DIRECTOR') == false and
  1512.         is_granted('ROLE_REGIONAL_AGENT') == false and
  1513.         is_granted('ROLE_UNION_PRESIDENT') == false
  1514.     %}
  1515.         <div class=\"card mb-4\">
  1516.         <div class=\"card-header card-header-dark\">
  1517.             Secteur d'activité
  1518.         </div>
  1519.         <div class=\"card-body\">
  1520.             {% set totalSpecies = 0 %}
  1521.             <div class=\"row mb-3\">
  1522.                 <div class=\"col-3 col-lg-1 text-bold\">Espèce(s)</div>
  1523.                 <div class=\"col-9 col-lg-11\">
  1524.                     {% if entreprise.entrepriseActivities|length == 0 %}
  1525.                         Aucune espèce
  1526.                     {% else %}
  1527.                         {% for firmActivity in entreprise.entrepriseActivities %}
  1528.                             {% if firmActivity.checked and firmActivity.activity.isEnabled %}
  1529.                                 {# <span class=\"badge bg-primary p-2\">{{firmActivity.activity.nom|capitalize ~ (entreprise.isTransporter == false ? ' - ' ~ firmActivity.number)}}</span> #}
  1530.                                 <span class=\"badge bg-primary p-2\">{{firmActivity.activity.nom|capitalize ~ (entreprise.firmType.tag == 'trader' ? ' - ' ~ firmActivity.number)}}</span>
  1531.                                 {% set totalSpecies = totalSpecies + firmActivity.number %}
  1532.                             {% endif %}
  1533.                         {% endfor %}
  1534.                     {% endif %}
  1535.                 </div>
  1536.             </div>
  1537.             <div class=\"row mb-3\">
  1538.                 <div class=\"col-3 col-lg-1 text-bold\">Volume total</div>
  1539.                 <div class=\"col-9 col-lg-11\">{{ entreprise.totalCountSpecies }}</div>
  1540.             </div>
  1541.             {% if entreprise.firmType.tag == 'transporter' %}
  1542.                 <hr>
  1543.                 <div class=\"row\">
  1544.                     <div class=\"col-12 col-lg-3 d-none\">
  1545.                         <div class=\"row mb-3\">
  1546.                             <div class=\"col-5 text-bold\">Autre activité</div>
  1547.                             <div class=\"col-7\">
  1548.                                 {{ entreprise.autreActivite ?? '<i><small>Aucune</small></i>'  }}
  1549.                             </div>
  1550.                         </div>
  1551.                     </div>
  1552.                     <div class=\"col-12 col-lg-3\">
  1553.                         <div class=\"row mb-3\">
  1554.                             <div class=\"col-5 text-bold\">N° agrément transport</div>
  1555.                             <div class=\"col-7\">
  1556.                                 {{ entreprise.transporteur ? entreprise.transporteur.numAgrementTransport  }}
  1557.                             </div>
  1558.                         </div>
  1559.                     </div>
  1560.                     <div class=\"col-12 col-lg-3\">
  1561.                         <div class=\"row mb-3\">
  1562.                             <div class=\"col-5 text-bold\">Nb de Licence Transport interne</div>
  1563.                             <div class=\"col-7\">
  1564.                                 {{ entreprise.transporteur ? entreprise.transporteur.nombreLicenseInterne  }}
  1565.                             </div>
  1566.                         </div>
  1567.                     </div>
  1568.                     <div class=\"col-12 col-lg-3\">
  1569.                         <div class=\"row mb-3\">
  1570.                             <div class=\"col-5 text-bold\">Nb de Licence intracommunautaire</div>
  1571.                             <div class=\"col-7\">
  1572.                                 {{ entreprise.transporteur ? entreprise.transporteur.nombreLicenceIntracom }}
  1573.                             </div>
  1574.                         </div>
  1575.                     </div>
  1576.                 </div>
  1577.             {% else %}
  1578.                 {% if totalSpecies != entreprise.totalCountSpecies %}
  1579.                     <div class=\"alert alert-warning\">
  1580.                         Le volume total est différent de la somme des volumes par espèce
  1581.                     </div>
  1582.                 {% endif %}
  1583.                 <hr>
  1584.                 <div class=\"row\">
  1585.                     <div class=\"col-12 col-lg-3\">
  1586.                         <div class=\"row mb-3\">
  1587.                             <div class=\"col-5 text-bold\">Autre activité</div>
  1588.                             <div class=\"col-7\">
  1589.                                 {{ entreprise.autreActivite ?? '<i><small>Aucune</small></i>'  }}
  1590.                             </div>
  1591.                         </div>
  1592.                     </div>
  1593.                     <div class=\"col-12 col-lg-3 d-none\">
  1594.                         <div class=\"row mb-3\">
  1595.                             <div class=\"col-5 text-bold\">Volume d'animaux</div>
  1596.                             <div class=\"col-7\">
  1597.                                 {{ entreprise.volumeAnimaux  }}
  1598.                             </div>
  1599.                         </div>
  1600.                     </div>
  1601.                     <div class=\"col-12 col-lg-3 d-none\">
  1602.                         <div class=\"row mb-3\">
  1603.                             <div class=\"col-5 text-bold\">Autre spécialité</div>
  1604.                             <div class=\"col-7\">
  1605.                                 {{ entreprise.autreSpecialite  }}
  1606.                             </div>
  1607.                         </div>
  1608.                     </div>
  1609.                     <div class=\"col-12 col-lg-3\">
  1610.                         <div class=\"row mb-3\">
  1611.                             <div class=\"col-5 text-bold\">Transport pour autrui</div>
  1612.                             <div class=\"col-7\">
  1613.                                 {{ entreprise.transportPourAutrui ? \"oui\"|upper : \"non\"  }}
  1614.                             </div>
  1615.                         </div>
  1616.                     </div>
  1617.                 </div>
  1618.                 {#
  1619.                 <hr>
  1620.                 <div class=\"row\">
  1621.                     <div class=\"col-12 col-lg-3\">
  1622.                         <div class=\"row mb-3\">
  1623.                             <div class=\"col-5 text-bold\">EDE Négoce</div>
  1624.                             <div class=\"col-7\">
  1625.                                 {{ entreprise.numEdeNegoce  }}
  1626.                             </div>
  1627.                         </div>
  1628.                     </div>
  1629.                     <div class=\"col-12 col-lg-3\">
  1630.                         <div class=\"row mb-3\">
  1631.                             <div class=\"col-5 text-bold\">EDE Centre Rassemblement</div>
  1632.                             <div class=\"col-7\">
  1633.                                 {{ entreprise.numEdeCentre }}
  1634.                             </div>
  1635.                         </div>
  1636.                     </div>
  1637.                     <div class=\"col-12 col-lg-3\">
  1638.                         <div class=\"row mb-3\">
  1639.                             <div class=\"col-5 text-bold\">EDE Elevage</div>
  1640.                             <div class=\"col-7\">
  1641.                                 {{ entreprise.numEdeElevage }}
  1642.                             </div>
  1643.                         </div>
  1644.                     </div>
  1645.                 </div>
  1646.                 #}
  1647.             {% endif %}
  1648.             <hr>
  1649.             <div class=\"row mb-3\">
  1650.                 <div class=\"col-3 col-lg-1 text-bold\">Nb employés</div>
  1651.                 <div class=\"col-9 col-lg-11\">
  1652.                     {{ entreprise.nombreEmployes  }}
  1653.                 </div>
  1654.             </div>
  1655.         </div>
  1656.     </div>
  1657.     {% endif %}
  1658.     <div class=\"card mb-4\">
  1659.         <div class=\"card-header card-header-dark\">
  1660.             Contacts
  1661.             {% if is_granted('ROLE_ADMIN') %}
  1662.                 <a href=\"{{ path('add_contact_from_firm', {id: entreprise.id}) }}\" class=\"float-end text-white\">
  1663.                     <i class=\"fas fa-plus fa-2x\"></i>
  1664.                 </a>
  1665.             {% endif %}
  1666.         </div>
  1667.         <div class=\"card-body\">
  1668.             <div class=\"table-responsive\">
  1669.                 <table class=\"table\">
  1670.                     <thead>
  1671.                         <tr>
  1672.                             <th>Type</th>
  1673.                             <th>Nom</th>
  1674.                             <th>Prénom</th>
  1675.                             <th>Email</th>
  1676.                             <th>Tél. portable</th>
  1677.                             <th>Commission</th>
  1678.                             <th>Conseil admin.</th>
  1679.                             <th>Repères</th>
  1680.                             <th>Privil.</th>
  1681.                             <th>Utilisateur extranet ?</th>
  1682.                             <th class=\"text-center\">Action(s)</th>
  1683.                         </tr>
  1684.                     </thead>
  1685.                     <tbody>
  1686.                         {% for key, contact in entreprise.contacts %}
  1687.                             {% if contact.status != constant('App\\\\Entity\\\\Contact::STATUS_ARCHIVED') %}
  1688.                                 <tr>
  1689.                                     <td class=\"text-bold\">{{ (contact.isResponsible ? '<span class=\"text-success\">Responsable</span>' : 'Employé')|raw }}</td>
  1690.                                     <td>{{ contact.nom }}</td>
  1691.                                     <td>{{ contact.prenom }}</td>
  1692.                                     <td>{{ contact.emailContact }}</td>
  1693.                                     <td>{{ contact.telPortable }}</td><td>
  1694.                                         <ul class=\"\">
  1695.                                             {% for commission in contact.commissionsContacts %}
  1696.                                                 <li>{{ commission.commission.nom }}</li>
  1697.                                             {% endfor %}
  1698.                                         </ul>
  1699.                                     </td>
  1700.                                     <td>
  1701.                                         <ul class=\"\">
  1702.                                             {% for contactConseilAdministration in contact.contactConseilAdministrations %}
  1703.                                                 <li>{{ contactConseilAdministration.conseilAdministration.role }}</li>
  1704.                                             {% endfor %}
  1705.                                         </ul>
  1706.                                     </td>
  1707.                                     <td>
  1708.                                         <ul class=\"\">
  1709.                                             {% for repere in contact.repere %}
  1710.                                                 <li>{{ repere.nom }}</li>
  1711.                                             {% endfor %}
  1712.                                         </ul>
  1713.                                     </td>
  1714.                                     <td class=\"text-bold\">{{ contact.isPrivileged ? 'Oui' : 'Non' }}</td>
  1715.                                     <td class=\"text-bold\">{{ contact.user is not null ? 'Oui (#' ~ contact.user.id ~ ')' : 'Non' }}</td>
  1716.                                     <td class=\"text-center\">
  1717.                                         <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\">
  1718.                                             <i class=\"fa-solid fa-ellipsis\"></i>
  1719.                                         </button>
  1720.                                         <ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_{{ key }}\">
  1721.                                             <li>
  1722.                                                 <a class=\"dropdown-item\" href=\"{{ path('show_contact', {id: contact.id }) }}\">
  1723.                                                     <i class=\"fas fa-eye\"></i> Visualiser
  1724.                                                 </a>
  1725.                                             </li>
  1726.                                             {% if is_granted('ROLE_ADMIN') %}
  1727.                                                 <li>
  1728.                                                     <a class=\"dropdown-item\" href=\"{{ path('edit_contact_from_firm', {id: contact.id}) }}\">
  1729.                                                         <i class=\"fas fa-edit\"></i> Editer
  1730.                                                     </a>
  1731.                                                 </li>
  1732.                                                 <li>
  1733.                                                     <a
  1734.                                                             class=\"dropdown-item\"
  1735.                                                             href=\"#\"
  1736.                                                             data-controller=\"confirm-delete\"
  1737.                                                             data-confirm-delete-url-value=\"{{ path('archive_contact', {id: contact.id}) }}\"
  1738.                                                             data-confirm-delete-message-value=\"Etes-vous sûr de vouloir archiver ce contact ?\"
  1739.                                                             data-confirm-delete-token-value=\"{{ csrf_token('contact_' ~ contact.id) }}\"
  1740.                                                             data-confirm-delete-action-value=\"delete_line\"
  1741.                                                     >
  1742.                                                         <i class=\"fas fa-archive\"></i> Archiver
  1743.                                                     </a>
  1744.                                                 </li>
  1745.                                             {% endif %}
  1746.                                         </ul>
  1747.                                     </td>
  1748.                                 </tr>
  1749.                             {% endif %}
  1750.                         {% endfor %}
  1751.                     </tbody>
  1752.                 </table>
  1753.             </div>
  1754.         </div>
  1755.     </div>
  1756.     {% if
  1757.         entreprise.firmType.tag in ['trader', 'transporter'] and
  1758.         is_granted('ROLE_BOARD_DIRECTOR') == false and
  1759.         is_granted('ROLE_REGIONAL_AGENT') == false and
  1760.         is_granted('ROLE_UNION_PRESIDENT') == false
  1761.     %}
  1762.         <div class=\"card mb-4 d-none\">
  1763.             <div class=\"card-header card-header-dark\">
  1764.                 Adhésion
  1765.             </div>
  1766.             <div class=\"card-body\">
  1767.                 <div class=\"row\">
  1768.                     <div class=\"col-12 col-lg-6\">
  1769.                         <div class=\"row mb-3\">
  1770.                             <div class=\"col-3 text-bold\">Souhaite adhérer ?</div>
  1771.                             <div class=\"col-9\">
  1772.                                 {{ entreprise.souhaiteAdherer ? '<span class=\"text-bold text-success\">Oui</span>' : 'Non'  }}
  1773.                             </div>
  1774.                         </div>
  1775.                     </div>
  1776.                     <div class=\"col-12 col-lg-6\">
  1777.                         <div class=\"row mb-3\">
  1778.                             <div class=\"col-3 text-bold\">Figurer dans l'annuaire ?</div>
  1779.                             <div class=\"col-9\">
  1780.                                 {{ entreprise.figurerAnnuaireAdherents ? '<span class=\"text-bold text-success\">Oui</span>' : 'Non'  }}
  1781.                             </div>
  1782.                         </div>
  1783.                     </div>
  1784.                 </div>
  1785.                 {% if entreprise.raisonNonAdhesion is not null and entreprise.raisonNonAdhesion|trim != '' %}
  1786.                 <div class=\"row mt-3\">
  1787.                     <div class=\"col-12 col-lg-6\">
  1788.                         <div class=\"row mb-3\">
  1789.                             <div class=\"col-3 text-bold\">Raison de non adhésion</div>
  1790.                             <div class=\"col-9\">
  1791.                                 {{ entreprise.raisonNonAdhesion  }}
  1792.                             </div>
  1793.                         </div>
  1794.                     </div>
  1795.                     <div class=\"col-12 col-lg-6\">
  1796.                         <div class=\"row mb-3\">
  1797.                             <div class=\"col-3 text-bold\"></div>
  1798.                             <div class=\"col-9\">
  1799.                                 {{ entreprise.raisonNonAdhesionAutre  }}
  1800.                             </div>
  1801.                         </div>
  1802.                     </div>
  1803.                 </div>
  1804.                 {% endif %}
  1805.             </div>
  1806.         </div>
  1807.     {% endif %}
  1808.     {% if entreprise.firmType.tag in ['trader', 'transporter'] %}
  1809.         <div class=\"card mb-4\">
  1810.             <div class=\"card-header card-header-dark\">
  1811.                 QUALI NEGOCE
  1812.             </div>
  1813.             <div class=\"card-body\">
  1814.                 <div class=\"row mb-3\">
  1815.                     <div class=\"col-3 text-bold\">Quali Négoce ?</div>
  1816.                     <div class=\"col-9\">
  1817.                         {{ entreprise.isQualiNegoce ? '<span class=\"text-bold text-success\">Oui</span>' : 'Non'  }}
  1818.                     </div>
  1819.                 </div>
  1820.                 <div class=\"row\">
  1821.                     <div class=\"col-12 col-lg-4 mb-3\">
  1822.                         <div class=\"row\">
  1823.                             <div class=\"col-3 text-bold\">Date de certification</div>
  1824.                             <div class=\"col-9\">
  1825.                                 {{ entreprise.qualiNegoceCertificationDate ? entreprise.qualiNegoceCertificationDate|date('d/m/Y')  }}
  1826.                             </div>
  1827.                         </div>
  1828.                     </div>
  1829.                     <div class=\"col-12 col-lg-4 mb-3\">
  1830.                         <div class=\"row\">
  1831.                             <div class=\"col-3 text-bold\">Date pre audit</div>
  1832.                             <div class=\"col-9\">
  1833.                                 {{ entreprise.qualiNegocePreAuditDate ? entreprise.qualiNegocePreAuditDate|date('d/m/Y')  }}
  1834.                             </div>
  1835.                         </div>
  1836.                     </div>
  1837.                     <div class=\"col-12 col-lg-4 mb-3\">
  1838.                         <div class=\"row\">
  1839.                             <div class=\"col-3 text-bold\">Date d’audit intermédiaire</div>
  1840.                             <div class=\"col-9\">
  1841.                                 {{ entreprise.qualiNegoceCertificationDate ? entreprise.qualiNegoceCertificationDate|date_modify(\"+18 month\")|date('d/m/Y')  }}
  1842.                             </div>
  1843.                         </div>
  1844.                     </div>
  1845.                 </div>
  1846.                 <hr class=\"mb-4\">
  1847.                 <h4 class=\"mt-4 mb-3\">Nom du / des référent(s)</h4>
  1848.                 <div class=\"table-responsive\">
  1849.                     <table class=\"w-100\" id=\"quali-negoce-contacts\">
  1850.                         <tbody>
  1851.                         {% for firmContactQualiNegoce in entreprise.firmContactQualiNegoces %}
  1852.                             <tr>
  1853.                                 <td>
  1854.                                     {{ firmContactQualiNegoce.contact.fullname }}
  1855.                                 </td>
  1856.                             </tr>
  1857.                         {% endfor %}
  1858.                         </tbody>
  1859.                     </table>
  1860.                 </div>
  1861.                 <hr class=\"mb-4\">
  1862.                 <h4 class=\"mt-4 mb-3\">Mes documents Quali Negoce</h4>
  1863.                 <div class=\"table-responsive\">
  1864.                     <table class=\"w-100\" id=\"quali-negoce-document\">
  1865.                         <tbody>
  1866.                             {% for document in entreprise.firmQualiNegoceDocuments %}
  1867.                                 <tr>
  1868.                                     <td>
  1869.                                         <a href=\"{{ vich_uploader_asset(document, 'documentFile') }}\" target=\"_blank\">{{ document.originalFileName }}</a>
  1870.                                     </td>
  1871.                                 </tr>
  1872.                             {% endfor %}
  1873.                         </tbody>
  1874.                     </table>
  1875.                 </div>
  1876.             </div>
  1877.         </div>
  1878.     {% endif %}
  1879.     {% if
  1880.         entreprise.firmType.tag in ['trader', 'transporter'] and
  1881.         is_granted('ROLE_BOARD_DIRECTOR') == false and
  1882.         is_granted('ROLE_REGIONAL_AGENT') == false and
  1883.         is_granted('ROLE_UNION_PRESIDENT') == false
  1884.     %}
  1885.         <div class=\"card mb-4\">
  1886.             <div class=\"card-header card-header-dark\">
  1887.                 Chiffre d'affaires des 3 dernières années
  1888.             </div>
  1889.             <div class=\"card-body\">
  1890.                 {% set year = 'now'|date('Y')|cast_to_int %}
  1891.                 <div class=\"table-responsive\">
  1892.                     <table class=\"table\">
  1893.                         <thead>
  1894.                             <tr>
  1895.                                 <th>Année</th>
  1896.                                 <th>Chiffre d'affaire</th>
  1897.                                 <th>Type cotisation</th>
  1898.                                 <th>Montant cotisation</th>
  1899.                                 <th>Option(s)</th>
  1900.                             </tr>
  1901.                         </thead>
  1902.                         <tbody>
  1903.                             {% for i in [0, 1, 2] %}
  1904.                                 {% set cotisation = entreprise.getCotisationByYear(year - i) %}
  1905.                                 <tr>
  1906.                                     <td>{{ year - i }}</td>
  1907.                                     <td>{{ cotisation and cotisation.revenue > 0 ? cotisation.revenue|number_format(2, ',', ' ') ~ ' €' : 'Pas de chiffre d\\'affaire renseigné pour l\\'année ' ~ (year - i) }}</td>
  1908.                                     <td>{{ cotisation and cotisation.cotisationType ? cotisation.cotisationType.name }}</td>
  1909.                                     <td>{{ cotisation ? cotisation.priceTtc|number_format(2, ',', ' ') ~ ' €' }}</td>
  1910.                                     <td>
  1911.                                         {% if cotisation %}
  1912.                                             <div>Import / Export: {{ cotisation.optionImportExport > 0 ? 'Oui' : 'Non' }}</div>
  1913.                                             <div>Mapa: {{ cotisation.optionMapa ? 'Oui' : 'Non' }}</div>
  1914.                                         {% endif %}
  1915.                                     </td>
  1916.                                 </tr>
  1917.                             {% endfor %}
  1918.                         </tbody>
  1919.                     </table>
  1920.                 </div>
  1921.             </div>
  1922.         </div>
  1923.     {% endif %}
  1924.     {% if
  1925.         is_granted('ROLE_BOARD_DIRECTOR') == false and
  1926.         is_granted('ROLE_REGIONAL_AGENT') == false and
  1927.         is_granted('ROLE_UNION_PRESIDENT') == false
  1928.     %}
  1929.         <div class=\"card mb-4\">
  1930.             <div class=\"card-header card-header-dark\">
  1931.                 Commentaire
  1932.             </div>
  1933.             <div class=\"card-body\">
  1934.                 <div class=\"mb-2\">
  1935.                     <div class=\"text-bold show-label\">Commentaire:</div>
  1936.                     <div class=\"mt-3\">{{ entreprise.commentaires|raw }}</div>
  1937.                 </div>
  1938.             </div>
  1939.         </div>
  1940.     {% endif %}
  1941.     <div class=\"card mb-4\">
  1942.         <div class=\"card-header card-header-dark\">
  1943.             Liaison(s) entreprise
  1944.         </div>
  1945.         <div class=\"card-body\">
  1946.             <div class=\"table-responsive\">
  1947.                 <table class=\"table\">
  1948.                     <thead>
  1949.                         <tr>
  1950.                             <th>Entreprise source</th>
  1951.                             <th>Type</th>
  1952.                             <th>Entreprise cible</th>
  1953.                             <th>Date</th>
  1954.                             <th>Commentaire</th>
  1955.                         </tr>
  1956.                     </thead>
  1957.                     <tbody>
  1958.                         {% for fromMe in linkedFirmWithFromMe %}
  1959.                             <tr>
  1960.                                 <td>
  1961.                                     <a href=\"{{ path('show_entreprise', {id: fromMe.fromFirm.id}) }}\">
  1962.                                         {{ fromMe.fromFirm.raisonSocial ~ ' (#' ~ fromMe.fromFirm.id ~ ')' }}
  1963.                                     </a>
  1964.                                 </td>
  1965.                                 <td>{{ fromMe.type.name }}</td>
  1966.                                 <td>
  1967.                                     <a href=\"{{ path('show_entreprise', {id: fromMe.toFirm.id}) }}\">
  1968.                                         {{ fromMe.toFirm.raisonSocial ~ ' (#' ~ fromMe.toFirm.id ~ ')' }}
  1969.                                     </a>
  1970.                                 </td>
  1971.                                 <td>{{ fromMe.date ? fromMe.date|date('d/m/Y') }}</td>
  1972.                                 <td>{{ fromMe.comment }}</td>
  1973.                             </tr>
  1974.                         {% endfor %}
  1975.                         {% for toMe in linkedFirmWithToMe %}
  1976.                             <tr>
  1977.                                 <td>
  1978.                                     <a href=\"{{ path('show_entreprise', {id: toMe.fromFirm.id}) }}\">
  1979.                                         {{ toMe.fromFirm.raisonSocial ~ ' (#' ~ toMe.fromFirm.id ~ ')' }}
  1980.                                     </a>
  1981.                                 </td>
  1982.                                 <td>{{ toMe.type.name }}</td>
  1983.                                 <td>
  1984.                                     <a href=\"{{ path('show_entreprise', {id: toMe.toFirm.id}) }}\">
  1985.                                         {{ toMe.toFirm.raisonSocial ~ ' (#' ~ toMe.toFirm.id ~ ')' }}
  1986.                                     </a>
  1987.                                 </td>
  1988.                                 <td>{{ toMe.date ? toMe.date|date('d/m/Y') }}</td>
  1989.                                 <td>{{ toMe.comment }}</td>
  1990.                             </tr>
  1991.                         {% endfor %}
  1992.                     </tbody>
  1993.                 </table>
  1994.             </div>
  1995.         </div>
  1996.     </div>
  1997. {% endblock %}""backend/entreprise/show.html.twig""/var/www/html/symfony/templates/backend/entreprise/show.html.twig");
  1998.     }
  1999. }
  2000. /* backend/entreprise/show.html.twig */
  2001. class __TwigTemplate_25a474b06d0dc556026b372817da6bd6___1086627597 extends Template
  2002. {
  2003.     private $source;
  2004.     private $macros = [];
  2005.     public function __construct(Environment $env)
  2006.     {
  2007.         parent::__construct($env);
  2008.         $this->source $this->getSourceContext();
  2009.         $this->blocks = [
  2010.             'other_button_after' => [$this'block_other_button_after'],
  2011.         ];
  2012.     }
  2013.     protected function doGetParent(array $context)
  2014.     {
  2015.         // line 7
  2016.         return "backend/partials/_breadcrumb.html.twig";
  2017.     }
  2018.     protected function doDisplay(array $context, array $blocks = [])
  2019.     {
  2020.         $macros $this->macros;
  2021.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  2022.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""backend/entreprise/show.html.twig"));
  2023.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2024.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""backend/entreprise/show.html.twig"));
  2025.         $this->parent $this->loadTemplate("backend/partials/_breadcrumb.html.twig""backend/entreprise/show.html.twig"7);
  2026.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  2027.         
  2028.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  2029.         
  2030.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  2031.     }
  2032.     // line 22
  2033.     public function block_other_button_after($context, array $blocks = [])
  2034.     {
  2035.         $macros $this->macros;
  2036.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  2037.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""other_button_after"));
  2038.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2039.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""other_button_after"));
  2040.         // line 23
  2041.         echo "            ";
  2042.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  2043.             // line 24
  2044.             echo "                <a href=\"";
  2045.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_entreprise_cotisation", ["id" => 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.'24$this->source); })()), "id", [], "any"falsefalsefalse24)]), "html"nulltrue);
  2046.             echo "\" class=\"btn btn-sm btn-primary\">
  2047.                     <i class=\"fas fa-eye\"></i> Voir les cotisations
  2048.                 </a>
  2049.                 <a href=\"";
  2050.             // line 28
  2051.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_history_entreprise", ["id" => 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.'28$this->source); })()), "id", [], "any"falsefalsefalse28)]), "html"nulltrue);
  2052.             echo "\" class=\"btn btn-sm btn-primary\">
  2053.                     <i class=\"fas fa-archive\"></i> Historique des modifications
  2054.                 </a>
  2055.                 <a href=\"";
  2056.             // line 32
  2057.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("duplicate_entreprise", ["id" => 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.'32$this->source); })()), "id", [], "any"falsefalsefalse32)]), "html"nulltrue);
  2058.             echo "\" class=\"btn btn-sm btn-warning\">
  2059.                     <i class=\"fa-regular fa-copy\"></i> Dupliquer
  2060.                 </a>
  2061.                 ";
  2062.             // line 36
  2063.             if ((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.'36$this->source); })()), "status", [], "any"falsefalsefalse36) != twig_constant("App\\Entity\\Entreprise::STATUS_MERGED"))) {
  2064.                 // line 37
  2065.                 echo "                    <a href=\"#\" class=\"btn btn-sm btn-warning\" data-bs-toggle=\"modal\" data-bs-target=\"#fusionModal\">
  2066.                         <i class=\"fa-solid fa-code-merge\"></i> Fusionner
  2067.                     </a>
  2068.                 ";
  2069.             }
  2070.             // line 41
  2071.             echo "
  2072.                 <div class=\"modal fade\" id=\"fusionModal\" tabindex=\"-1\" aria-labelledby=\"fusionModalLabel\" aria-hidden=\"true\">
  2073.                     <div class=\"modal-dialog\">
  2074.                         <div class=\"modal-content\">
  2075.                             ";
  2076.             // line 45
  2077.             echo             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formFusion"]) || array_key_exists("formFusion"$context) ? $context["formFusion"] : (function () { throw new RuntimeError('Variable "formFusion" does not exist.'45$this->source); })()), 'form_start');
  2078.             echo "
  2079.                                 <div class=\"modal-header\">
  2080.                                     <h1 class=\"modal-title fs-5\" id=\"fusionModalLabel\">Fusionner</h1>
  2081.                                     <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
  2082.                                 </div>
  2083.                                 <div class=\"modal-body text-start\">
  2084.                                         ";
  2085.             // line 51
  2086.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["formFusion"]) || array_key_exists("formFusion"$context) ? $context["formFusion"] : (function () { throw new RuntimeError('Variable "formFusion" does not exist.'51$this->source); })()), "toFirm", [], "any"falsefalsefalse51), 'row');
  2087.             echo "
  2088.                                         ";
  2089.             // line 52
  2090.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["formFusion"]) || array_key_exists("formFusion"$context) ? $context["formFusion"] : (function () { throw new RuntimeError('Variable "formFusion" does not exist.'52$this->source); })()), "date", [], "any"falsefalsefalse52), 'row');
  2091.             echo "
  2092.                                         ";
  2093.             // line 53
  2094.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["formFusion"]) || array_key_exists("formFusion"$context) ? $context["formFusion"] : (function () { throw new RuntimeError('Variable "formFusion" does not exist.'53$this->source); })()), "type", [], "any"falsefalsefalse53), 'row');
  2095.             echo "
  2096.                                         ";
  2097.             // line 54
  2098.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["formFusion"]) || array_key_exists("formFusion"$context) ? $context["formFusion"] : (function () { throw new RuntimeError('Variable "formFusion" does not exist.'54$this->source); })()), "comment", [], "any"falsefalsefalse54), 'row');
  2099.             echo "
  2100.                                 </div>
  2101.                                 <div class=\"modal-footer\">
  2102.                                     <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Annuler</button>
  2103.                                     <button type=\"submit\" class=\"btn btn-primary\">Valider</button>
  2104.                                 </div>
  2105.                             ";
  2106.             // line 60
  2107.             echo             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formFusion"]) || array_key_exists("formFusion"$context) ? $context["formFusion"] : (function () { throw new RuntimeError('Variable "formFusion" does not exist.'60$this->source); })()), 'form_end');
  2108.             echo "
  2109.                         </div>
  2110.                     </div>
  2111.                 </div>
  2112.             ";
  2113.         }
  2114.         // line 65
  2115.         echo "
  2116.         ";
  2117.         
  2118.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  2119.         
  2120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  2121.     }
  2122.     public function getTemplateName()
  2123.     {
  2124.         return "backend/entreprise/show.html.twig";
  2125.     }
  2126.     public function isTraitable()
  2127.     {
  2128.         return false;
  2129.     }
  2130.     public function getDebugInfo()
  2131.     {
  2132.         return array (  2212 => 65,  2204 => 60,  2195 => 54,  2191 => 53,  2187 => 52,  2183 => 51,  2174 => 45,  2168 => 41,  2162 => 37,  2160 => 36,  2153 => 32,  2146 => 28,  2138 => 24,  2135 => 23,  2125 => 22,  2102 => 7,  1268 => 774,  1259 => 771,  1255 => 770,  1249 => 767,  1245 => 766,  1240 => 764,  1234 => 761,  1230 => 760,  1226 => 758,  1221 => 757,  1212 => 754,  1208 => 753,  1202 => 750,  1198 => 749,  1193 => 747,  1187 => 744,  1183 => 743,  1179 => 741,  1175 => 740,  1155 => 722,  1147 => 717,  1138 => 710,  1136 => 705,  1133 => 704,  1125 => 698,  1117 => 695,  1112 => 693,  1107 => 692,  1105 => 691,  1100 => 689,  1096 => 688,  1092 => 687,  1088 => 686,  1085 => 685,  1082 => 684,  1078 => 683,  1064 => 671,  1062 => 670,  1055 => 665,  1053 => 660,  1052 => 659,  1049 => 658,  1041 => 652,  1029 => 648,  1025 => 646,  1021 => 645,  1008 => 634,  998 => 630,  994 => 628,  990 => 627,  974 => 614,  963 => 606,  952 => 598,  941 => 590,  931 => 582,  929 => 581,  926 => 580,  921 => 577,  912 => 571,  901 => 563,  894 => 558,  892 => 557,  884 => 552,  873 => 544,  861 => 534,  859 => 529,  858 => 528,  850 => 522,  844 => 521,  837 => 516,  827 => 509,  822 => 507,  810 => 498,  807 => 497,  805 => 496,  798 => 492,  793 => 490,  787 => 487,  782 => 485,  778 => 484,  774 => 482,  765 => 480,  761 => 479,  755 => 475,  746 => 473,  742 => 472,  736 => 468,  727 => 466,  723 => 465,  718 => 463,  714 => 462,  710 => 461,  706 => 460,  702 => 459,  699 => 458,  696 => 457,  692 => 456,  670 => 436,  662 => 432,  660 => 431,  654 => 427,  645 => 421,  637 => 415,  634 => 414,  625 => 379,  614 => 371,  603 => 363,  592 => 355,  582 => 347,  576 => 343,  573 => 342,  564 => 336,  553 => 328,  542 => 320,  531 => 312,  522 => 305,  520 => 304,  514 => 301,  507 => 296,  504 => 295,  498 => 294,  495 => 293,  493 => 292,  488 => 291,  486 => 290,  483 => 289,  478 => 288,  474 => 286,  472 => 285,  467 => 282,  465 => 281,  458 => 276,  456 => 271,  455 => 270,  452 => 269,  444 => 263,  435 => 259,  425 => 252,  420 => 250,  415 => 248,  405 => 241,  402 => 240,  400 => 239,  393 => 235,  388 => 233,  382 => 230,  377 => 228,  373 => 227,  368 => 225,  364 => 224,  360 => 223,  355 => 221,  351 => 220,  347 => 219,  343 => 218,  339 => 217,  336 => 216,  332 => 215,  312 => 197,  304 => 193,  302 => 192,  297 => 189,  295 => 188,  284 => 180,  277 => 176,  269 => 171,  262 => 167,  248 => 156,  241 => 152,  234 => 148,  227 => 144,  220 => 140,  213 => 136,  196 => 122,  192 => 120,  186 => 117,  182 => 115,  180 => 114,  175 => 112,  168 => 108,  161 => 104,  154 => 100,  147 => 96,  140 => 92,  133 => 88,  125 => 83,  119 => 80,  115 => 79,  109 => 76,  105 => 75,  96 => 68,  94 => 15,  93 => 10,  92 => 7,  89 => 6,  79 => 5,  59 => 3,  36 => 1,);
  2133.     }
  2134.     public function getSourceContext()
  2135.     {
  2136.         return new Source("{% extends 'backend/base.html.twig' %}
  2137. {% block title %}Entreprise {{ entreprise.raisonSocial }}{% endblock %}
  2138. {% block content %}
  2139.     {% embed 'backend/partials/_breadcrumb.html.twig' with {
  2140.         datas: [
  2141.             {label: 'Entreprises', url: path('advanced_search', {entity: 'entreprise'})},
  2142.             {label: entreprise.raisonSocial ~ ' <i>(#' ~ entreprise.id ~ ')</i>'}
  2143.         ],
  2144.         buttons: [
  2145.             {
  2146.                 display: is_granted('ROLE_UPDATE_ENTITY') ? true : false,
  2147.                 url: path('edit_entreprise', {'id': entreprise.id }),
  2148.                 class: 'btn btn-sm btn-primary',
  2149.                 icon: 'fas fa-edit',
  2150.                 label: 'Modifier'
  2151.             }
  2152.         ]
  2153.     } %}
  2154.         {% block other_button_after %}
  2155.             {% if is_granted('ROLE_ADMIN') %}
  2156.                 <a href=\"{{ path('show_entreprise_cotisation', {id: entreprise.id}) }}\" class=\"btn btn-sm btn-primary\">
  2157.                     <i class=\"fas fa-eye\"></i> Voir les cotisations
  2158.                 </a>
  2159.                 <a href=\"{{ path('show_history_entreprise', {id: entreprise.id}) }}\" class=\"btn btn-sm btn-primary\">
  2160.                     <i class=\"fas fa-archive\"></i> Historique des modifications
  2161.                 </a>
  2162.                 <a href=\"{{ path('duplicate_entreprise', {id: entreprise.id}) }}\" class=\"btn btn-sm btn-warning\">
  2163.                     <i class=\"fa-regular fa-copy\"></i> Dupliquer
  2164.                 </a>
  2165.                 {% if entreprise.status != constant('App\\\\Entity\\\\Entreprise::STATUS_MERGED') %}
  2166.                     <a href=\"#\" class=\"btn btn-sm btn-warning\" data-bs-toggle=\"modal\" data-bs-target=\"#fusionModal\">
  2167.                         <i class=\"fa-solid fa-code-merge\"></i> Fusionner
  2168.                     </a>
  2169.                 {% endif %}
  2170.                 <div class=\"modal fade\" id=\"fusionModal\" tabindex=\"-1\" aria-labelledby=\"fusionModalLabel\" aria-hidden=\"true\">
  2171.                     <div class=\"modal-dialog\">
  2172.                         <div class=\"modal-content\">
  2173.                             {{ form_start(formFusion) }}
  2174.                                 <div class=\"modal-header\">
  2175.                                     <h1 class=\"modal-title fs-5\" id=\"fusionModalLabel\">Fusionner</h1>
  2176.                                     <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
  2177.                                 </div>
  2178.                                 <div class=\"modal-body text-start\">
  2179.                                         {{ form_row(formFusion.toFirm) }}
  2180.                                         {{ form_row(formFusion.date) }}
  2181.                                         {{ form_row(formFusion.type) }}
  2182.                                         {{ form_row(formFusion.comment) }}
  2183.                                 </div>
  2184.                                 <div class=\"modal-footer\">
  2185.                                     <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Annuler</button>
  2186.                                     <button type=\"submit\" class=\"btn btn-primary\">Valider</button>
  2187.                                 </div>
  2188.                             {{ form_end(formFusion) }}
  2189.                         </div>
  2190.                     </div>
  2191.                 </div>
  2192.             {% endif %}
  2193.         {% endblock %}
  2194.     {% endembed %}
  2195.     <div class=\"row justify-content-md-center mb-4\">
  2196.         <div class=\"col-12 col-lg-6\">
  2197.             <div class=\"card h-100\">
  2198.                 <div class=\"card-header card-header-dark\">
  2199.                     Informations générales
  2200.                     <span class=\"mx-2 float-end badge bg-{{ entreprise.isMember ? 'success' : 'danger' }} p-2\">
  2201.                         {{ (entreprise.isMember ? 'adhésion payée' : 'adhésion non payée')|upper }}
  2202.                     </span>
  2203.                     <span class=\"float-end badge bg-{{ entreprise.firmType.color ?? 'secondary' }} p-2\">
  2204.                         {{ entreprise.firmType.name|upper }}
  2205.                     </span>
  2206.                     {{ bagdeStatusFirm(entreprise.status, 'float-end mx-2') }}
  2207.                 </div>
  2208.                 <div class=\"card-body\">
  2209.                     <div class=\"row mb-3\">
  2210.                         <div class=\"col-3 text-bold\">Raison sociale</div>
  2211.                         <div class=\"col-9\">{{ entreprise.raisonSocial }}</div>
  2212.                     </div>
  2213.                     <div class=\"row mb-3\">
  2214.                         <div class=\"col-3 text-bold\">Téléphone bureau</div>
  2215.                         <div class=\"col-9\">{{ entreprise.tel1 }}</div>
  2216.                     </div>
  2217.                     <div class=\"row mb-3\">
  2218.                         <div class=\"col-3 text-bold\">Email</div>
  2219.                         <div class=\"col-9\">{{ entreprise.email }}</div>
  2220.                     </div>
  2221.                     <div class=\"row mb-3\">
  2222.                         <div class=\"col-3 text-bold\">N° APE</div>
  2223.                         <div class=\"col-9\">{{ entreprise.codeApe }}</div>
  2224.                     </div>
  2225.                     <div class=\"row mb-3\">
  2226.                         <div class=\"col-3 text-bold\">N° Siret</div>
  2227.                         <div class=\"col-9\">{{ entreprise.codeSiren }}</div>
  2228.                     </div>
  2229.                     <div class=\"row mb-3\">
  2230.                         <div class=\"col-3 text-bold\">N° TVA Intracom</div>
  2231.                         <div class=\"col-9\">{{ entreprise.numTvaIntracom }}</div>
  2232.                     </div>
  2233.                     <div class=\"row mb-3\">
  2234.                         <div class=\"col-3 text-bold\">RC</div>
  2235.                         <div class=\"col-9\">{{ entreprise.numEdeCentre }}</div>
  2236.                     </div>
  2237.                     {% if entreprise.dateCessation %}
  2238.                         <div class=\"row mb-3\">
  2239.                             <div class=\"col-3 text-bold\">Date cessation activité</div>
  2240.                             <div class=\"col-9\">{{ entreprise.dateCessation ? entreprise.dateCessation|date('d/m/Y') : '' }}</div>
  2241.                         </div>
  2242.                     {% endif %}
  2243.                     <div class=\"row mb-3 d-none\">
  2244.                         <div class=\"col-3 text-bold\">Identifiant comptable</div>
  2245.                         <div class=\"col-9\">{{ entreprise.identifiantCompta }}</div>
  2246.                     </div>
  2247.                 </div>
  2248.             </div>
  2249.         </div>
  2250.         <div class=\"col-12 col-lg-6 mt-4 mt-lg-0\">
  2251.             <div class=\"h-100\">
  2252.                 <div class=\"card\">
  2253.                     <div class=\"card-header card-header-dark\">
  2254.                         <div class=\"pb-2\">Adresse du siège social</div>
  2255.                     </div>
  2256.                     <div class=\"card-body\">
  2257.                         <div class=\"mb-2\">
  2258.                             <span class=\"text-bold show-label\">Adresse:</span>
  2259.                             <span>{{ entreprise.adresse is not empty ? entreprise.adresse : '' }}</span>
  2260.                         </div>
  2261.                         <div class=\"mb-2\">
  2262.                             <span class=\"text-bold show-label\">Adresse compl.:</span>
  2263.                             <span>{{ entreprise.adresse2 is not empty ? entreprise.adresse2 : '' }}</span>
  2264.                         </div>
  2265.                         <div class=\"mb-2\">
  2266.                             <span class=\"text-bold show-label\">Code postal:</span>
  2267.                             <span>{{ entreprise.codePostal is not empty ? entreprise.codePostal : '' }}</span>
  2268.                         </div>
  2269.                         <div class=\"mb-2\">
  2270.                             <span class=\"text-bold show-label\">Ville:</span>
  2271.                             <span>{{ entreprise.ville is not empty ? entreprise.ville : '' }}</span>
  2272.                         </div>
  2273.                         <div class=\"mb-2\">
  2274.                             <span class=\"text-bold show-label\">Département:</span>
  2275.                             <span>{{ entreprise.departement is not null ? entreprise.departement.nom : '' }}</span>
  2276.                         </div>
  2277.                         <div class=\"mb-2\">
  2278.                             <span class=\"text-bold show-label\">Région:</span>
  2279.                             <span>{{ entreprise.departement is not null and entreprise.departement.regions is not null ? entreprise.departement.regions.first.nom : '' }}</span>
  2280.                         </div>
  2281.                     </div>
  2282.                 </div>
  2283.                 <div class=\"card mb-0\">
  2284.                     <div class=\"card-header card-header-dark\">
  2285.                         Fédération
  2286.                     </div>
  2287.                     <div class=\"card-body\">
  2288.                         <div class=\"row mb-3\">
  2289.                             <div class=\"col-3 text-bold\">Syndicat de rattachement</div>
  2290.                             <div class=\"col-9\">{{ entreprise.syndicat.nom is defined ? entreprise.syndicat.nom : '' }}</div>
  2291.                         </div>
  2292.                         <div class=\"row mb-3\">
  2293.                             <div class=\"col-3 text-bold\">Région de rattachement</div>
  2294.                             <div class=\"col-9\">{{ entreprise.homeRegion ? entreprise.homeRegion.nom : '' }}</div>
  2295.                         </div>
  2296.                         <div class=\"row mb-3\">
  2297.                             <div class=\"col-3 text-bold\">Groupe entreprise</div>
  2298.                             <div class=\"col-9\">{{ entreprise.groupeEntreprise ? entreprise.groupeEntreprise.nom : '' }}</div>
  2299.                         </div>
  2300.                         <div class=\"row mb-3\">
  2301.                             <div class=\"col-3 text-bold\">Commission</div>
  2302.                             <div class=\"col-9\">{{ entreprise.commission ? entreprise.commission.nom : '' }}</div>
  2303.                         </div>
  2304.                     </div>
  2305.                 </div>
  2306.             </div>
  2307.         </div>
  2308.     </div>
  2309.     {% if entreprise.firmType.tag in ['trader', 'transporter'] %}
  2310.         <div class=\"card mb-4\">
  2311.             <div class=\"card-header card-header-dark\">
  2312.                 Etablissement(s) / Centres de rassemblement
  2313.                 {% if is_granted('ROLE_ADMIN') %}
  2314.                     <a href=\"{{ path('add_establishment', {id: entreprise.id}) }}\" class=\"float-end text-white\">
  2315.                         <i class=\"fas fa-plus fa-2x\"></i>
  2316.                     </a>
  2317.                 {% endif %}
  2318.             </div>
  2319.             <div class=\"card-body\">
  2320.                 <div class=\"table-responsive\">
  2321.                     <table class=\"table\">
  2322.                         <thead>
  2323.                             <tr>
  2324.                                 <th>Type</th>
  2325.                                 <th>Tél</th>
  2326.                                 <th>Email</th>
  2327.                                 <th>N° siret</th>
  2328.                                 <th>Code EDE</th>
  2329.                                 <th>Adresse</th>
  2330.                                 <th>Département</th>
  2331.                                 <th>Date de cessation</th>
  2332.                                 <th class=\"text-center\">Actions</th>
  2333.                             </tr>
  2334.                         </thead>
  2335.                         <tbody>
  2336.                             {% for key, etablissement in entreprise.etablissements %}
  2337.                                 <tr>
  2338.                                     <td>{{ etablissement.siegeSocial ? '<strong class=\"text-primary\">Siège social</strong>'|raw : 'Etablissement' }}</td>
  2339.                                     <td>{{ etablissement.telBureau1 }}</td>
  2340.                                     <td>{{ etablissement.emailBureau }}</td>
  2341.                                     <td>{{ etablissement.codeSiret }}</td>
  2342.                                     <td>{{ etablissement.codeEde }}</td>
  2343.                                     <td>
  2344.                                         {{ etablissement.adresse }}<br>
  2345.                                         {{ etablissement.codePostal }}<br>
  2346.                                         {{ etablissement.ville }}
  2347.                                     </td>
  2348.                                     <td>{{ etablissement.departement ? etablissement.departement.nom : '' }}</td>
  2349.                                     <td>{{ etablissement.dateCessation ? etablissement.dateCessation|date('d/m/Y') }}</td>
  2350.                                     <td class=\"text-center\">
  2351.                                         <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\">
  2352.                                             <i class=\"fa-solid fa-ellipsis\"></i>
  2353.                                         </button>
  2354.                                         <ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_{{ key }}\">
  2355.                                             <li>
  2356.                                                 <a class=\"dropdown-item\" href=\"{{ path('show_establishment', {id: etablissement.id }) }}\">
  2357.                                                     <i class=\"fas fa-eye\"></i> Visualiser
  2358.                                                 </a>
  2359.                                             </li>
  2360.                                             {% if is_granted('ROLE_ADMIN') %}
  2361.                                             <li>
  2362.                                                 <a class=\"dropdown-item\" href=\"{{ path('edit_establishment', {id: etablissement.id}) }}\">
  2363.                                                     <i class=\"fas fa-edit\"></i> Editer
  2364.                                                 </a>
  2365.                                             </li>
  2366.                                             <li>
  2367.                                                 <a
  2368.                                                         class=\"dropdown-item\"
  2369.                                                         href=\"{{ path('delete_establishment', {id: etablissement.id}) }}\"
  2370.                                                         data-controller=\"confirm-delete\"
  2371.                                                         data-confirm-delete-url-value=\"{{ path('delete_establishment', {id: etablissement.id}) }}\"
  2372.                                                         data-confirm-delete-message-value=\"Etes-vous sûr de vouloir supprimer cet établissement ?\"
  2373.                                                         data-confirm-delete-token-value=\"{{ csrf_token('etablissement_' ~ etablissement.id) }}\"
  2374.                                                         data-confirm-delete-action-value=\"delete_line\"
  2375.                                                 >
  2376.                                                     <i class=\"fas fa-trash\"></i> Supprimer
  2377.                                                 </a>
  2378.                                             </li>
  2379.                                             {% endif %}
  2380.                                         </ul>
  2381.                                     </td>
  2382.                                 </tr>
  2383.                             {% endfor %}
  2384.                         </tbody>
  2385.                     </table>
  2386.                 </div>
  2387.             </div>
  2388.         </div>
  2389.     {% endif %}
  2390.     {% if
  2391.         entreprise.firmType.tag in ['trader', 'transporter'] and
  2392.         is_granted('ROLE_BOARD_DIRECTOR') == false and
  2393.         is_granted('ROLE_REGIONAL_AGENT') == false and
  2394.         is_granted('ROLE_UNION_PRESIDENT') == false
  2395.     %}
  2396.         <div class=\"card mb-4\">
  2397.         <div class=\"card-header card-header-dark\">
  2398.             Secteur d'activité
  2399.         </div>
  2400.         <div class=\"card-body\">
  2401.             {% set totalSpecies = 0 %}
  2402.             <div class=\"row mb-3\">
  2403.                 <div class=\"col-3 col-lg-1 text-bold\">Espèce(s)</div>
  2404.                 <div class=\"col-9 col-lg-11\">
  2405.                     {% if entreprise.entrepriseActivities|length == 0 %}
  2406.                         Aucune espèce
  2407.                     {% else %}
  2408.                         {% for firmActivity in entreprise.entrepriseActivities %}
  2409.                             {% if firmActivity.checked and firmActivity.activity.isEnabled %}
  2410.                                 {# <span class=\"badge bg-primary p-2\">{{firmActivity.activity.nom|capitalize ~ (entreprise.isTransporter == false ? ' - ' ~ firmActivity.number)}}</span> #}
  2411.                                 <span class=\"badge bg-primary p-2\">{{firmActivity.activity.nom|capitalize ~ (entreprise.firmType.tag == 'trader' ? ' - ' ~ firmActivity.number)}}</span>
  2412.                                 {% set totalSpecies = totalSpecies + firmActivity.number %}
  2413.                             {% endif %}
  2414.                         {% endfor %}
  2415.                     {% endif %}
  2416.                 </div>
  2417.             </div>
  2418.             <div class=\"row mb-3\">
  2419.                 <div class=\"col-3 col-lg-1 text-bold\">Volume total</div>
  2420.                 <div class=\"col-9 col-lg-11\">{{ entreprise.totalCountSpecies }}</div>
  2421.             </div>
  2422.             {% if entreprise.firmType.tag == 'transporter' %}
  2423.                 <hr>
  2424.                 <div class=\"row\">
  2425.                     <div class=\"col-12 col-lg-3 d-none\">
  2426.                         <div class=\"row mb-3\">
  2427.                             <div class=\"col-5 text-bold\">Autre activité</div>
  2428.                             <div class=\"col-7\">
  2429.                                 {{ entreprise.autreActivite ?? '<i><small>Aucune</small></i>'  }}
  2430.                             </div>
  2431.                         </div>
  2432.                     </div>
  2433.                     <div class=\"col-12 col-lg-3\">
  2434.                         <div class=\"row mb-3\">
  2435.                             <div class=\"col-5 text-bold\">N° agrément transport</div>
  2436.                             <div class=\"col-7\">
  2437.                                 {{ entreprise.transporteur ? entreprise.transporteur.numAgrementTransport  }}
  2438.                             </div>
  2439.                         </div>
  2440.                     </div>
  2441.                     <div class=\"col-12 col-lg-3\">
  2442.                         <div class=\"row mb-3\">
  2443.                             <div class=\"col-5 text-bold\">Nb de Licence Transport interne</div>
  2444.                             <div class=\"col-7\">
  2445.                                 {{ entreprise.transporteur ? entreprise.transporteur.nombreLicenseInterne  }}
  2446.                             </div>
  2447.                         </div>
  2448.                     </div>
  2449.                     <div class=\"col-12 col-lg-3\">
  2450.                         <div class=\"row mb-3\">
  2451.                             <div class=\"col-5 text-bold\">Nb de Licence intracommunautaire</div>
  2452.                             <div class=\"col-7\">
  2453.                                 {{ entreprise.transporteur ? entreprise.transporteur.nombreLicenceIntracom }}
  2454.                             </div>
  2455.                         </div>
  2456.                     </div>
  2457.                 </div>
  2458.             {% else %}
  2459.                 {% if totalSpecies != entreprise.totalCountSpecies %}
  2460.                     <div class=\"alert alert-warning\">
  2461.                         Le volume total est différent de la somme des volumes par espèce
  2462.                     </div>
  2463.                 {% endif %}
  2464.                 <hr>
  2465.                 <div class=\"row\">
  2466.                     <div class=\"col-12 col-lg-3\">
  2467.                         <div class=\"row mb-3\">
  2468.                             <div class=\"col-5 text-bold\">Autre activité</div>
  2469.                             <div class=\"col-7\">
  2470.                                 {{ entreprise.autreActivite ?? '<i><small>Aucune</small></i>'  }}
  2471.                             </div>
  2472.                         </div>
  2473.                     </div>
  2474.                     <div class=\"col-12 col-lg-3 d-none\">
  2475.                         <div class=\"row mb-3\">
  2476.                             <div class=\"col-5 text-bold\">Volume d'animaux</div>
  2477.                             <div class=\"col-7\">
  2478.                                 {{ entreprise.volumeAnimaux  }}
  2479.                             </div>
  2480.                         </div>
  2481.                     </div>
  2482.                     <div class=\"col-12 col-lg-3 d-none\">
  2483.                         <div class=\"row mb-3\">
  2484.                             <div class=\"col-5 text-bold\">Autre spécialité</div>
  2485.                             <div class=\"col-7\">
  2486.                                 {{ entreprise.autreSpecialite  }}
  2487.                             </div>
  2488.                         </div>
  2489.                     </div>
  2490.                     <div class=\"col-12 col-lg-3\">
  2491.                         <div class=\"row mb-3\">
  2492.                             <div class=\"col-5 text-bold\">Transport pour autrui</div>
  2493.                             <div class=\"col-7\">
  2494.                                 {{ entreprise.transportPourAutrui ? \"oui\"|upper : \"non\"  }}
  2495.                             </div>
  2496.                         </div>
  2497.                     </div>
  2498.                 </div>
  2499.                 {#
  2500.                 <hr>
  2501.                 <div class=\"row\">
  2502.                     <div class=\"col-12 col-lg-3\">
  2503.                         <div class=\"row mb-3\">
  2504.                             <div class=\"col-5 text-bold\">EDE Négoce</div>
  2505.                             <div class=\"col-7\">
  2506.                                 {{ entreprise.numEdeNegoce  }}
  2507.                             </div>
  2508.                         </div>
  2509.                     </div>
  2510.                     <div class=\"col-12 col-lg-3\">
  2511.                         <div class=\"row mb-3\">
  2512.                             <div class=\"col-5 text-bold\">EDE Centre Rassemblement</div>
  2513.                             <div class=\"col-7\">
  2514.                                 {{ entreprise.numEdeCentre }}
  2515.                             </div>
  2516.                         </div>
  2517.                     </div>
  2518.                     <div class=\"col-12 col-lg-3\">
  2519.                         <div class=\"row mb-3\">
  2520.                             <div class=\"col-5 text-bold\">EDE Elevage</div>
  2521.                             <div class=\"col-7\">
  2522.                                 {{ entreprise.numEdeElevage }}
  2523.                             </div>
  2524.                         </div>
  2525.                     </div>
  2526.                 </div>
  2527.                 #}
  2528.             {% endif %}
  2529.             <hr>
  2530.             <div class=\"row mb-3\">
  2531.                 <div class=\"col-3 col-lg-1 text-bold\">Nb employés</div>
  2532.                 <div class=\"col-9 col-lg-11\">
  2533.                     {{ entreprise.nombreEmployes  }}
  2534.                 </div>
  2535.             </div>
  2536.         </div>
  2537.     </div>
  2538.     {% endif %}
  2539.     <div class=\"card mb-4\">
  2540.         <div class=\"card-header card-header-dark\">
  2541.             Contacts
  2542.             {% if is_granted('ROLE_ADMIN') %}
  2543.                 <a href=\"{{ path('add_contact_from_firm', {id: entreprise.id}) }}\" class=\"float-end text-white\">
  2544.                     <i class=\"fas fa-plus fa-2x\"></i>
  2545.                 </a>
  2546.             {% endif %}
  2547.         </div>
  2548.         <div class=\"card-body\">
  2549.             <div class=\"table-responsive\">
  2550.                 <table class=\"table\">
  2551.                     <thead>
  2552.                         <tr>
  2553.                             <th>Type</th>
  2554.                             <th>Nom</th>
  2555.                             <th>Prénom</th>
  2556.                             <th>Email</th>
  2557.                             <th>Tél. portable</th>
  2558.                             <th>Commission</th>
  2559.                             <th>Conseil admin.</th>
  2560.                             <th>Repères</th>
  2561.                             <th>Privil.</th>
  2562.                             <th>Utilisateur extranet ?</th>
  2563.                             <th class=\"text-center\">Action(s)</th>
  2564.                         </tr>
  2565.                     </thead>
  2566.                     <tbody>
  2567.                         {% for key, contact in entreprise.contacts %}
  2568.                             {% if contact.status != constant('App\\\\Entity\\\\Contact::STATUS_ARCHIVED') %}
  2569.                                 <tr>
  2570.                                     <td class=\"text-bold\">{{ (contact.isResponsible ? '<span class=\"text-success\">Responsable</span>' : 'Employé')|raw }}</td>
  2571.                                     <td>{{ contact.nom }}</td>
  2572.                                     <td>{{ contact.prenom }}</td>
  2573.                                     <td>{{ contact.emailContact }}</td>
  2574.                                     <td>{{ contact.telPortable }}</td><td>
  2575.                                         <ul class=\"\">
  2576.                                             {% for commission in contact.commissionsContacts %}
  2577.                                                 <li>{{ commission.commission.nom }}</li>
  2578.                                             {% endfor %}
  2579.                                         </ul>
  2580.                                     </td>
  2581.                                     <td>
  2582.                                         <ul class=\"\">
  2583.                                             {% for contactConseilAdministration in contact.contactConseilAdministrations %}
  2584.                                                 <li>{{ contactConseilAdministration.conseilAdministration.role }}</li>
  2585.                                             {% endfor %}
  2586.                                         </ul>
  2587.                                     </td>
  2588.                                     <td>
  2589.                                         <ul class=\"\">
  2590.                                             {% for repere in contact.repere %}
  2591.                                                 <li>{{ repere.nom }}</li>
  2592.                                             {% endfor %}
  2593.                                         </ul>
  2594.                                     </td>
  2595.                                     <td class=\"text-bold\">{{ contact.isPrivileged ? 'Oui' : 'Non' }}</td>
  2596.                                     <td class=\"text-bold\">{{ contact.user is not null ? 'Oui (#' ~ contact.user.id ~ ')' : 'Non' }}</td>
  2597.                                     <td class=\"text-center\">
  2598.                                         <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\">
  2599.                                             <i class=\"fa-solid fa-ellipsis\"></i>
  2600.                                         </button>
  2601.                                         <ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_{{ key }}\">
  2602.                                             <li>
  2603.                                                 <a class=\"dropdown-item\" href=\"{{ path('show_contact', {id: contact.id }) }}\">
  2604.                                                     <i class=\"fas fa-eye\"></i> Visualiser
  2605.                                                 </a>
  2606.                                             </li>
  2607.                                             {% if is_granted('ROLE_ADMIN') %}
  2608.                                                 <li>
  2609.                                                     <a class=\"dropdown-item\" href=\"{{ path('edit_contact_from_firm', {id: contact.id}) }}\">
  2610.                                                         <i class=\"fas fa-edit\"></i> Editer
  2611.                                                     </a>
  2612.                                                 </li>
  2613.                                                 <li>
  2614.                                                     <a
  2615.                                                             class=\"dropdown-item\"
  2616.                                                             href=\"#\"
  2617.                                                             data-controller=\"confirm-delete\"
  2618.                                                             data-confirm-delete-url-value=\"{{ path('archive_contact', {id: contact.id}) }}\"
  2619.                                                             data-confirm-delete-message-value=\"Etes-vous sûr de vouloir archiver ce contact ?\"
  2620.                                                             data-confirm-delete-token-value=\"{{ csrf_token('contact_' ~ contact.id) }}\"
  2621.                                                             data-confirm-delete-action-value=\"delete_line\"
  2622.                                                     >
  2623.                                                         <i class=\"fas fa-archive\"></i> Archiver
  2624.                                                     </a>
  2625.                                                 </li>
  2626.                                             {% endif %}
  2627.                                         </ul>
  2628.                                     </td>
  2629.                                 </tr>
  2630.                             {% endif %}
  2631.                         {% endfor %}
  2632.                     </tbody>
  2633.                 </table>
  2634.             </div>
  2635.         </div>
  2636.     </div>
  2637.     {% if
  2638.         entreprise.firmType.tag in ['trader', 'transporter'] and
  2639.         is_granted('ROLE_BOARD_DIRECTOR') == false and
  2640.         is_granted('ROLE_REGIONAL_AGENT') == false and
  2641.         is_granted('ROLE_UNION_PRESIDENT') == false
  2642.     %}
  2643.         <div class=\"card mb-4 d-none\">
  2644.             <div class=\"card-header card-header-dark\">
  2645.                 Adhésion
  2646.             </div>
  2647.             <div class=\"card-body\">
  2648.                 <div class=\"row\">
  2649.                     <div class=\"col-12 col-lg-6\">
  2650.                         <div class=\"row mb-3\">
  2651.                             <div class=\"col-3 text-bold\">Souhaite adhérer ?</div>
  2652.                             <div class=\"col-9\">
  2653.                                 {{ entreprise.souhaiteAdherer ? '<span class=\"text-bold text-success\">Oui</span>' : 'Non'  }}
  2654.                             </div>
  2655.                         </div>
  2656.                     </div>
  2657.                     <div class=\"col-12 col-lg-6\">
  2658.                         <div class=\"row mb-3\">
  2659.                             <div class=\"col-3 text-bold\">Figurer dans l'annuaire ?</div>
  2660.                             <div class=\"col-9\">
  2661.                                 {{ entreprise.figurerAnnuaireAdherents ? '<span class=\"text-bold text-success\">Oui</span>' : 'Non'  }}
  2662.                             </div>
  2663.                         </div>
  2664.                     </div>
  2665.                 </div>
  2666.                 {% if entreprise.raisonNonAdhesion is not null and entreprise.raisonNonAdhesion|trim != '' %}
  2667.                 <div class=\"row mt-3\">
  2668.                     <div class=\"col-12 col-lg-6\">
  2669.                         <div class=\"row mb-3\">
  2670.                             <div class=\"col-3 text-bold\">Raison de non adhésion</div>
  2671.                             <div class=\"col-9\">
  2672.                                 {{ entreprise.raisonNonAdhesion  }}
  2673.                             </div>
  2674.                         </div>
  2675.                     </div>
  2676.                     <div class=\"col-12 col-lg-6\">
  2677.                         <div class=\"row mb-3\">
  2678.                             <div class=\"col-3 text-bold\"></div>
  2679.                             <div class=\"col-9\">
  2680.                                 {{ entreprise.raisonNonAdhesionAutre  }}
  2681.                             </div>
  2682.                         </div>
  2683.                     </div>
  2684.                 </div>
  2685.                 {% endif %}
  2686.             </div>
  2687.         </div>
  2688.     {% endif %}
  2689.     {% if entreprise.firmType.tag in ['trader', 'transporter'] %}
  2690.         <div class=\"card mb-4\">
  2691.             <div class=\"card-header card-header-dark\">
  2692.                 QUALI NEGOCE
  2693.             </div>
  2694.             <div class=\"card-body\">
  2695.                 <div class=\"row mb-3\">
  2696.                     <div class=\"col-3 text-bold\">Quali Négoce ?</div>
  2697.                     <div class=\"col-9\">
  2698.                         {{ entreprise.isQualiNegoce ? '<span class=\"text-bold text-success\">Oui</span>' : 'Non'  }}
  2699.                     </div>
  2700.                 </div>
  2701.                 <div class=\"row\">
  2702.                     <div class=\"col-12 col-lg-4 mb-3\">
  2703.                         <div class=\"row\">
  2704.                             <div class=\"col-3 text-bold\">Date de certification</div>
  2705.                             <div class=\"col-9\">
  2706.                                 {{ entreprise.qualiNegoceCertificationDate ? entreprise.qualiNegoceCertificationDate|date('d/m/Y')  }}
  2707.                             </div>
  2708.                         </div>
  2709.                     </div>
  2710.                     <div class=\"col-12 col-lg-4 mb-3\">
  2711.                         <div class=\"row\">
  2712.                             <div class=\"col-3 text-bold\">Date pre audit</div>
  2713.                             <div class=\"col-9\">
  2714.                                 {{ entreprise.qualiNegocePreAuditDate ? entreprise.qualiNegocePreAuditDate|date('d/m/Y')  }}
  2715.                             </div>
  2716.                         </div>
  2717.                     </div>
  2718.                     <div class=\"col-12 col-lg-4 mb-3\">
  2719.                         <div class=\"row\">
  2720.                             <div class=\"col-3 text-bold\">Date d’audit intermédiaire</div>
  2721.                             <div class=\"col-9\">
  2722.                                 {{ entreprise.qualiNegoceCertificationDate ? entreprise.qualiNegoceCertificationDate|date_modify(\"+18 month\")|date('d/m/Y')  }}
  2723.                             </div>
  2724.                         </div>
  2725.                     </div>
  2726.                 </div>
  2727.                 <hr class=\"mb-4\">
  2728.                 <h4 class=\"mt-4 mb-3\">Nom du / des référent(s)</h4>
  2729.                 <div class=\"table-responsive\">
  2730.                     <table class=\"w-100\" id=\"quali-negoce-contacts\">
  2731.                         <tbody>
  2732.                         {% for firmContactQualiNegoce in entreprise.firmContactQualiNegoces %}
  2733.                             <tr>
  2734.                                 <td>
  2735.                                     {{ firmContactQualiNegoce.contact.fullname }}
  2736.                                 </td>
  2737.                             </tr>
  2738.                         {% endfor %}
  2739.                         </tbody>
  2740.                     </table>
  2741.                 </div>
  2742.                 <hr class=\"mb-4\">
  2743.                 <h4 class=\"mt-4 mb-3\">Mes documents Quali Negoce</h4>
  2744.                 <div class=\"table-responsive\">
  2745.                     <table class=\"w-100\" id=\"quali-negoce-document\">
  2746.                         <tbody>
  2747.                             {% for document in entreprise.firmQualiNegoceDocuments %}
  2748.                                 <tr>
  2749.                                     <td>
  2750.                                         <a href=\"{{ vich_uploader_asset(document, 'documentFile') }}\" target=\"_blank\">{{ document.originalFileName }}</a>
  2751.                                     </td>
  2752.                                 </tr>
  2753.                             {% endfor %}
  2754.                         </tbody>
  2755.                     </table>
  2756.                 </div>
  2757.             </div>
  2758.         </div>
  2759.     {% endif %}
  2760.     {% if
  2761.         entreprise.firmType.tag in ['trader', 'transporter'] and
  2762.         is_granted('ROLE_BOARD_DIRECTOR') == false and
  2763.         is_granted('ROLE_REGIONAL_AGENT') == false and
  2764.         is_granted('ROLE_UNION_PRESIDENT') == false
  2765.     %}
  2766.         <div class=\"card mb-4\">
  2767.             <div class=\"card-header card-header-dark\">
  2768.                 Chiffre d'affaires des 3 dernières années
  2769.             </div>
  2770.             <div class=\"card-body\">
  2771.                 {% set year = 'now'|date('Y')|cast_to_int %}
  2772.                 <div class=\"table-responsive\">
  2773.                     <table class=\"table\">
  2774.                         <thead>
  2775.                             <tr>
  2776.                                 <th>Année</th>
  2777.                                 <th>Chiffre d'affaire</th>
  2778.                                 <th>Type cotisation</th>
  2779.                                 <th>Montant cotisation</th>
  2780.                                 <th>Option(s)</th>
  2781.                             </tr>
  2782.                         </thead>
  2783.                         <tbody>
  2784.                             {% for i in [0, 1, 2] %}
  2785.                                 {% set cotisation = entreprise.getCotisationByYear(year - i) %}
  2786.                                 <tr>
  2787.                                     <td>{{ year - i }}</td>
  2788.                                     <td>{{ cotisation and cotisation.revenue > 0 ? cotisation.revenue|number_format(2, ',', ' ') ~ ' €' : 'Pas de chiffre d\\'affaire renseigné pour l\\'année ' ~ (year - i) }}</td>
  2789.                                     <td>{{ cotisation and cotisation.cotisationType ? cotisation.cotisationType.name }}</td>
  2790.                                     <td>{{ cotisation ? cotisation.priceTtc|number_format(2, ',', ' ') ~ ' €' }}</td>
  2791.                                     <td>
  2792.                                         {% if cotisation %}
  2793.                                             <div>Import / Export: {{ cotisation.optionImportExport > 0 ? 'Oui' : 'Non' }}</div>
  2794.                                             <div>Mapa: {{ cotisation.optionMapa ? 'Oui' : 'Non' }}</div>
  2795.                                         {% endif %}
  2796.                                     </td>
  2797.                                 </tr>
  2798.                             {% endfor %}
  2799.                         </tbody>
  2800.                     </table>
  2801.                 </div>
  2802.             </div>
  2803.         </div>
  2804.     {% endif %}
  2805.     {% if
  2806.         is_granted('ROLE_BOARD_DIRECTOR') == false and
  2807.         is_granted('ROLE_REGIONAL_AGENT') == false and
  2808.         is_granted('ROLE_UNION_PRESIDENT') == false
  2809.     %}
  2810.         <div class=\"card mb-4\">
  2811.             <div class=\"card-header card-header-dark\">
  2812.                 Commentaire
  2813.             </div>
  2814.             <div class=\"card-body\">
  2815.                 <div class=\"mb-2\">
  2816.                     <div class=\"text-bold show-label\">Commentaire:</div>
  2817.                     <div class=\"mt-3\">{{ entreprise.commentaires|raw }}</div>
  2818.                 </div>
  2819.             </div>
  2820.         </div>
  2821.     {% endif %}
  2822.     <div class=\"card mb-4\">
  2823.         <div class=\"card-header card-header-dark\">
  2824.             Liaison(s) entreprise
  2825.         </div>
  2826.         <div class=\"card-body\">
  2827.             <div class=\"table-responsive\">
  2828.                 <table class=\"table\">
  2829.                     <thead>
  2830.                         <tr>
  2831.                             <th>Entreprise source</th>
  2832.                             <th>Type</th>
  2833.                             <th>Entreprise cible</th>
  2834.                             <th>Date</th>
  2835.                             <th>Commentaire</th>
  2836.                         </tr>
  2837.                     </thead>
  2838.                     <tbody>
  2839.                         {% for fromMe in linkedFirmWithFromMe %}
  2840.                             <tr>
  2841.                                 <td>
  2842.                                     <a href=\"{{ path('show_entreprise', {id: fromMe.fromFirm.id}) }}\">
  2843.                                         {{ fromMe.fromFirm.raisonSocial ~ ' (#' ~ fromMe.fromFirm.id ~ ')' }}
  2844.                                     </a>
  2845.                                 </td>
  2846.                                 <td>{{ fromMe.type.name }}</td>
  2847.                                 <td>
  2848.                                     <a href=\"{{ path('show_entreprise', {id: fromMe.toFirm.id}) }}\">
  2849.                                         {{ fromMe.toFirm.raisonSocial ~ ' (#' ~ fromMe.toFirm.id ~ ')' }}
  2850.                                     </a>
  2851.                                 </td>
  2852.                                 <td>{{ fromMe.date ? fromMe.date|date('d/m/Y') }}</td>
  2853.                                 <td>{{ fromMe.comment }}</td>
  2854.                             </tr>
  2855.                         {% endfor %}
  2856.                         {% for toMe in linkedFirmWithToMe %}
  2857.                             <tr>
  2858.                                 <td>
  2859.                                     <a href=\"{{ path('show_entreprise', {id: toMe.fromFirm.id}) }}\">
  2860.                                         {{ toMe.fromFirm.raisonSocial ~ ' (#' ~ toMe.fromFirm.id ~ ')' }}
  2861.                                     </a>
  2862.                                 </td>
  2863.                                 <td>{{ toMe.type.name }}</td>
  2864.                                 <td>
  2865.                                     <a href=\"{{ path('show_entreprise', {id: toMe.toFirm.id}) }}\">
  2866.                                         {{ toMe.toFirm.raisonSocial ~ ' (#' ~ toMe.toFirm.id ~ ')' }}
  2867.                                     </a>
  2868.                                 </td>
  2869.                                 <td>{{ toMe.date ? toMe.date|date('d/m/Y') }}</td>
  2870.                                 <td>{{ toMe.comment }}</td>
  2871.                             </tr>
  2872.                         {% endfor %}
  2873.                     </tbody>
  2874.                 </table>
  2875.             </div>
  2876.         </div>
  2877.     </div>
  2878. {% endblock %}""backend/entreprise/show.html.twig""/var/www/html/symfony/templates/backend/entreprise/show.html.twig");
  2879.     }
  2880. }