<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* backend/entreprise/show.html.twig */
class __TwigTemplate_25a474b06d0dc556026b372817da6bd6 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "backend/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "backend/entreprise/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "backend/entreprise/show.html.twig"));
$this->parent = $this->loadTemplate("backend/base.html.twig", "backend/entreprise/show.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Entreprise ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 3, $this->source); })()), "raisonSocial", [], "any", false, false, false, 3), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 5
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 6
echo "
";
// line 7
$this->loadTemplate("backend/entreprise/show.html.twig", "backend/entreprise/show.html.twig", 7, "1086627597")->display(twig_array_merge($context, ["datas" => [0 => ["label" => "Entreprises", "url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("advanced_search", ["entity" => "entreprise"])], 1 => ["label" => (((twig_get_attribute($this->env, $this->source, // line 10
(isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 10, $this->source); })()), "raisonSocial", [], "any", false, false, false, 10) . " <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", false, false, false, 10)) . ")</i>")]], "buttons" => [0 => ["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
(isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 15, $this->source); })()), "id", [], "any", false, false, false, 15)]), "class" => "btn btn-sm btn-primary", "icon" => "fas fa-edit", "label" => "Modifier"]]]));
// line 68
echo "
<div class=\"row justify-content-md-center mb-4\">
<div class=\"col-12 col-lg-6\">
<div class=\"card h-100\">
<div class=\"card-header card-header-dark\">
Informations générales
<span class=\"mx-2 float-end badge bg-";
// line 75
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", false, false, false, 75)) ? ("success") : ("danger"));
echo " p-2\">
";
// line 76
echo twig_escape_filter($this->env, twig_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", false, false, false, 76)) ? ("adhésion payée") : ("adhésion non payée"))), "html", null, true);
echo "
</span>
<span class=\"float-end badge bg-";
// line 79
(((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["entreprise"] ?? null), "firmType", [], "any", false, true, false, 79), "color", [], "any", true, true, false, 79) && !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["entreprise"] ?? null), "firmType", [], "any", false, true, false, 79), "color", [], "any", false, false, false, 79)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["entreprise"] ?? null), "firmType", [], "any", false, true, false, 79), "color", [], "any", false, false, false, 79), "html", null, true))) : (print ("secondary")));
echo " p-2\">
";
// line 80
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $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.', 80, $this->source); })()), "firmType", [], "any", false, false, false, 80), "name", [], "any", false, false, false, 80)), "html", null, true);
echo "
</span>
";
// line 83
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", false, false, false, 83), "float-end mx-2");
echo "
</div>
<div class=\"card-body\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Raison sociale</div>
<div class=\"col-9\">";
// line 88
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 88, $this->source); })()), "raisonSocial", [], "any", false, false, false, 88), "html", null, true);
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Téléphone bureau</div>
<div class=\"col-9\">";
// line 92
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 92, $this->source); })()), "tel1", [], "any", false, false, false, 92), "html", null, true);
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Email</div>
<div class=\"col-9\">";
// line 96
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 96, $this->source); })()), "email", [], "any", false, false, false, 96), "html", null, true);
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">N° APE</div>
<div class=\"col-9\">";
// line 100
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 100, $this->source); })()), "codeApe", [], "any", false, false, false, 100), "html", null, true);
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">N° Siret</div>
<div class=\"col-9\">";
// line 104
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 104, $this->source); })()), "codeSiren", [], "any", false, false, false, 104), "html", null, true);
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">N° TVA Intracom</div>
<div class=\"col-9\">";
// line 108
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 108, $this->source); })()), "numTvaIntracom", [], "any", false, false, false, 108), "html", null, true);
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">RC</div>
<div class=\"col-9\">";
// line 112
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 112, $this->source); })()), "numEdeCentre", [], "any", false, false, false, 112), "html", null, true);
echo "</div>
</div>
";
// line 114
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", false, false, false, 114)) {
// line 115
echo " <div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Date cessation activité</div>
<div class=\"col-9\">";
// line 117
((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", false, false, false, 117)) ? (print (twig_escape_filter($this->env, twig_date_format_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.', 117, $this->source); })()), "dateCessation", [], "any", false, false, false, 117), "d/m/Y"), "html", null, true))) : (print ("")));
echo "</div>
</div>
";
}
// line 120
echo " <div class=\"row mb-3 d-none\">
<div class=\"col-3 text-bold\">Identifiant comptable</div>
<div class=\"col-9\">";
// line 122
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 122, $this->source); })()), "identifiantCompta", [], "any", false, false, false, 122), "html", null, true);
echo "</div>
</div>
</div>
</div>
</div>
<div class=\"col-12 col-lg-6 mt-4 mt-lg-0\">
<div class=\"h-100\">
<div class=\"card\">
<div class=\"card-header card-header-dark\">
<div class=\"pb-2\">Adresse du siège social</div>
</div>
<div class=\"card-body\">
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Adresse:</span>
<span>";
// line 136
(( !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", false, false, false, 136))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 136, $this->source); })()), "adresse", [], "any", false, false, false, 136), "html", null, true))) : (print ("")));
echo "</span>
</div>
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Adresse compl.:</span>
<span>";
// line 140
(( !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", false, false, false, 140))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 140, $this->source); })()), "adresse2", [], "any", false, false, false, 140), "html", null, true))) : (print ("")));
echo "</span>
</div>
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Code postal:</span>
<span>";
// line 144
(( !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", false, false, false, 144))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 144, $this->source); })()), "codePostal", [], "any", false, false, false, 144), "html", null, true))) : (print ("")));
echo "</span>
</div>
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Ville:</span>
<span>";
// line 148
(( !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", false, false, false, 148))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 148, $this->source); })()), "ville", [], "any", false, false, false, 148), "html", null, true))) : (print ("")));
echo "</span>
</div>
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Département:</span>
<span>";
// line 152
(( !(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", false, false, false, 152))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $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.', 152, $this->source); })()), "departement", [], "any", false, false, false, 152), "nom", [], "any", false, false, false, 152), "html", null, true))) : (print ("")));
echo "</span>
</div>
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Région:</span>
<span>";
// line 156
((( !(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", false, false, false, 156)) && !(null === twig_get_attribute($this->env, $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.', 156, $this->source); })()), "departement", [], "any", false, false, false, 156), "regions", [], "any", false, false, false, 156)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $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.', 156, $this->source); })()), "departement", [], "any", false, false, false, 156), "regions", [], "any", false, false, false, 156), "first", [], "any", false, false, false, 156), "nom", [], "any", false, false, false, 156), "html", null, true))) : (print ("")));
echo "</span>
</div>
</div>
</div>
<div class=\"card mb-0\">
<div class=\"card-header card-header-dark\">
Fédération
</div>
<div class=\"card-body\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Syndicat de rattachement</div>
<div class=\"col-9\">";
// line 167
((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["entreprise"] ?? null), "syndicat", [], "any", false, true, false, 167), "nom", [], "any", true, true, false, 167)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $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.', 167, $this->source); })()), "syndicat", [], "any", false, false, false, 167), "nom", [], "any", false, false, false, 167), "html", null, true))) : (print ("")));
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Région de rattachement</div>
<div class=\"col-9\">";
// line 171
((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", false, false, false, 171)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $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.', 171, $this->source); })()), "homeRegion", [], "any", false, false, false, 171), "nom", [], "any", false, false, false, 171), "html", null, true))) : (print ("")));
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Groupe entreprise</div>
<div class=\"col-9\">";
// line 176
((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", false, false, false, 176)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $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.', 176, $this->source); })()), "groupeEntreprise", [], "any", false, false, false, 176), "nom", [], "any", false, false, false, 176), "html", null, true))) : (print ("")));
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Commission</div>
<div class=\"col-9\">";
// line 180
((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", false, false, false, 180)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $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.', 180, $this->source); })()), "commission", [], "any", false, false, false, 180), "nom", [], "any", false, false, false, 180), "html", null, true))) : (print ("")));
echo "</div>
</div>
</div>
</div>
</div>
</div>
</div>
";
// line 188
if (twig_in_filter(twig_get_attribute($this->env, $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.', 188, $this->source); })()), "firmType", [], "any", false, false, false, 188), "tag", [], "any", false, false, false, 188), [0 => "trader", 1 => "transporter"])) {
// line 189
echo " <div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Etablissement(s) / Centres de rassemblement
";
// line 192
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 193
echo " <a href=\"";
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", false, false, false, 193)]), "html", null, true);
echo "\" class=\"float-end text-white\">
<i class=\"fas fa-plus fa-2x\"></i>
</a>
";
}
// line 197
echo " </div>
<div class=\"card-body\">
<div class=\"table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>Type</th>
<th>Tél</th>
<th>Email</th>
<th>N° siret</th>
<th>Code EDE</th>
<th>Adresse</th>
<th>Département</th>
<th>Date de cessation</th>
<th class=\"text-center\">Actions</th>
</tr>
</thead>
<tbody>
";
// line 215
$context['_parent'] = $context;
$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", false, false, false, 215));
foreach ($context['_seq'] as $context["key"] => $context["etablissement"]) {
// line 216
echo " <tr>
<td>";
// line 217
echo ((twig_get_attribute($this->env, $this->source, $context["etablissement"], "siegeSocial", [], "any", false, false, false, 217)) ? ("<strong class=\"text-primary\">Siège social</strong>") : ("Etablissement"));
echo "</td>
<td>";
// line 218
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["etablissement"], "telBureau1", [], "any", false, false, false, 218), "html", null, true);
echo "</td>
<td>";
// line 219
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["etablissement"], "emailBureau", [], "any", false, false, false, 219), "html", null, true);
echo "</td>
<td>";
// line 220
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["etablissement"], "codeSiret", [], "any", false, false, false, 220), "html", null, true);
echo "</td>
<td>";
// line 221
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["etablissement"], "codeEde", [], "any", false, false, false, 221), "html", null, true);
echo "</td>
<td>
";
// line 223
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["etablissement"], "adresse", [], "any", false, false, false, 223), "html", null, true);
echo "<br>
";
// line 224
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["etablissement"], "codePostal", [], "any", false, false, false, 224), "html", null, true);
echo "<br>
";
// line 225
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["etablissement"], "ville", [], "any", false, false, false, 225), "html", null, true);
echo "
</td>
<td>";
// line 227
((twig_get_attribute($this->env, $this->source, $context["etablissement"], "departement", [], "any", false, false, false, 227)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["etablissement"], "departement", [], "any", false, false, false, 227), "nom", [], "any", false, false, false, 227), "html", null, true))) : (print ("")));
echo "</td>
<td>";
// line 228
((twig_get_attribute($this->env, $this->source, $context["etablissement"], "dateCessation", [], "any", false, false, false, 228)) ? (print (twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["etablissement"], "dateCessation", [], "any", false, false, false, 228), "d/m/Y"), "html", null, true))) : (print ("")));
echo "</td>
<td class=\"text-center\">
<button class=\"btn btn-outline-secondary btn-icon btn-rounded dropdown-toggle custom-dropdown\" type=\"button\" id=\"dropdownMenu_";
// line 230
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
<i class=\"fa-solid fa-ellipsis\"></i>
</button>
<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_";
// line 233
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\">
<li>
<a class=\"dropdown-item\" href=\"";
// line 235
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", false, false, false, 235)]), "html", null, true);
echo "\">
<i class=\"fas fa-eye\"></i> Visualiser
</a>
</li>
";
// line 239
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 240
echo " <li>
<a class=\"dropdown-item\" href=\"";
// line 241
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", false, false, false, 241)]), "html", null, true);
echo "\">
<i class=\"fas fa-edit\"></i> Editer
</a>
</li>
<li>
<a
class=\"dropdown-item\"
href=\"";
// line 248
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", false, false, false, 248)]), "html", null, true);
echo "\"
data-controller=\"confirm-delete\"
data-confirm-delete-url-value=\"";
// line 250
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", false, false, false, 250)]), "html", null, true);
echo "\"
data-confirm-delete-message-value=\"Etes-vous sûr de vouloir supprimer cet établissement ?\"
data-confirm-delete-token-value=\"";
// line 252
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", false, false, false, 252))), "html", null, true);
echo "\"
data-confirm-delete-action-value=\"delete_line\"
>
<i class=\"fas fa-trash\"></i> Supprimer
</a>
</li>
";
}
// line 259
echo " </ul>
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['etablissement'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 263
echo " </tbody>
</table>
</div>
</div>
</div>
";
}
// line 269
echo "
";
// line 270
if ((((twig_in_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 271
(isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 271, $this->source); })()), "firmType", [], "any", false, false, false, 271), "tag", [], "any", false, false, false, 271), [0 => "trader", 1 => "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))) {
// line 276
echo " <div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Secteur d'activité
</div>
<div class=\"card-body\">
";
// line 281
$context["totalSpecies"] = 0;
// line 282
echo " <div class=\"row mb-3\">
<div class=\"col-3 col-lg-1 text-bold\">Espèce(s)</div>
<div class=\"col-9 col-lg-11\">
";
// line 285
if ((twig_length_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.', 285, $this->source); })()), "entrepriseActivities", [], "any", false, false, false, 285)) == 0)) {
// line 286
echo " Aucune espèce
";
} else {
// line 288
echo " ";
$context['_parent'] = $context;
$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", false, false, false, 288));
foreach ($context['_seq'] as $context["_key"] => $context["firmActivity"]) {
// line 289
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["firmActivity"], "checked", [], "any", false, false, false, 289) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["firmActivity"], "activity", [], "any", false, false, false, 289), "isEnabled", [], "any", false, false, false, 289))) {
// line 290
echo " ";
// line 291
echo " <span class=\"badge bg-primary p-2\">";
echo twig_escape_filter($this->env, (twig_capitalize_string_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["firmActivity"], "activity", [], "any", false, false, false, 291), "nom", [], "any", false, false, false, 291)) . (((twig_get_attribute($this->env, $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.', 291, $this->source); })()), "firmType", [], "any", false, false, false, 291), "tag", [], "any", false, false, false, 291) == "trader")) ? ((" - " . twig_get_attribute($this->env, $this->source, $context["firmActivity"], "number", [], "any", false, false, false, 291))) : (""))), "html", null, true);
echo "</span>
";
// line 292
$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", false, false, false, 292));
// line 293
echo " ";
}
// line 294
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['firmActivity'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 295
echo " ";
}
// line 296
echo " </div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 col-lg-1 text-bold\">Volume total</div>
<div class=\"col-9 col-lg-11\">";
// line 301
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 301, $this->source); })()), "totalCountSpecies", [], "any", false, false, false, 301), "html", null, true);
echo "</div>
</div>
";
// line 304
if ((twig_get_attribute($this->env, $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.', 304, $this->source); })()), "firmType", [], "any", false, false, false, 304), "tag", [], "any", false, false, false, 304) == "transporter")) {
// line 305
echo " <hr>
<div class=\"row\">
<div class=\"col-12 col-lg-3 d-none\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Autre activité</div>
<div class=\"col-7\">
";
// line 312
(((twig_get_attribute($this->env, $this->source, ($context["entreprise"] ?? null), "autreActivite", [], "any", true, true, false, 312) && !(null === twig_get_attribute($this->env, $this->source, ($context["entreprise"] ?? null), "autreActivite", [], "any", false, false, false, 312)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["entreprise"] ?? null), "autreActivite", [], "any", false, false, false, 312), "html", null, true))) : (print ("<i><small>Aucune</small></i>")));
echo "
</div>
</div>
</div>
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">N° agrément transport</div>
<div class=\"col-7\">
";
// line 320
((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", false, false, false, 320)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $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.', 320, $this->source); })()), "transporteur", [], "any", false, false, false, 320), "numAgrementTransport", [], "any", false, false, false, 320), "html", null, true))) : (print ("")));
echo "
</div>
</div>
</div>
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Nb de Licence Transport interne</div>
<div class=\"col-7\">
";
// line 328
((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", false, false, false, 328)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $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.', 328, $this->source); })()), "transporteur", [], "any", false, false, false, 328), "nombreLicenseInterne", [], "any", false, false, false, 328), "html", null, true))) : (print ("")));
echo "
</div>
</div>
</div>
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Nb de Licence intracommunautaire</div>
<div class=\"col-7\">
";
// line 336
((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", false, false, false, 336)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $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.', 336, $this->source); })()), "transporteur", [], "any", false, false, false, 336), "nombreLicenceIntracom", [], "any", false, false, false, 336), "html", null, true))) : (print ("")));
echo "
</div>
</div>
</div>
</div>
";
} else {
// line 342
echo " ";
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", false, false, false, 342))) {
// line 343
echo " <div class=\"alert alert-warning\">
Le volume total est différent de la somme des volumes par espèce
</div>
";
}
// line 347
echo "
<hr>
<div class=\"row\">
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Autre activité</div>
<div class=\"col-7\">
";
// line 355
(((twig_get_attribute($this->env, $this->source, ($context["entreprise"] ?? null), "autreActivite", [], "any", true, true, false, 355) && !(null === twig_get_attribute($this->env, $this->source, ($context["entreprise"] ?? null), "autreActivite", [], "any", false, false, false, 355)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["entreprise"] ?? null), "autreActivite", [], "any", false, false, false, 355), "html", null, true))) : (print ("<i><small>Aucune</small></i>")));
echo "
</div>
</div>
</div>
<div class=\"col-12 col-lg-3 d-none\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Volume d'animaux</div>
<div class=\"col-7\">
";
// line 363
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 363, $this->source); })()), "volumeAnimaux", [], "any", false, false, false, 363), "html", null, true);
echo "
</div>
</div>
</div>
<div class=\"col-12 col-lg-3 d-none\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Autre spécialité</div>
<div class=\"col-7\">
";
// line 371
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 371, $this->source); })()), "autreSpecialite", [], "any", false, false, false, 371), "html", null, true);
echo "
</div>
</div>
</div>
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Transport pour autrui</div>
<div class=\"col-7\">
";
// line 379
((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", false, false, false, 379)) ? (print (twig_escape_filter($this->env, twig_upper_filter($this->env, "oui"), "html", null, true))) : (print ("non")));
echo "
</div>
</div>
</div>
</div>
";
// line 414
echo " ";
}
// line 415
echo "
<hr>
<div class=\"row mb-3\">
<div class=\"col-3 col-lg-1 text-bold\">Nb employés</div>
<div class=\"col-9 col-lg-11\">
";
// line 421
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 421, $this->source); })()), "nombreEmployes", [], "any", false, false, false, 421), "html", null, true);
echo "
</div>
</div>
</div>
</div>
";
}
// line 427
echo "
<div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Contacts
";
// line 431
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 432
echo " <a href=\"";
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", false, false, false, 432)]), "html", null, true);
echo "\" class=\"float-end text-white\">
<i class=\"fas fa-plus fa-2x\"></i>
</a>
";
}
// line 436
echo " </div>
<div class=\"card-body\">
<div class=\"table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>Type</th>
<th>Nom</th>
<th>Prénom</th>
<th>Email</th>
<th>Tél. portable</th>
<th>Commission</th>
<th>Conseil admin.</th>
<th>Repères</th>
<th>Privil.</th>
<th>Utilisateur extranet ?</th>
<th class=\"text-center\">Action(s)</th>
</tr>
</thead>
<tbody>
";
// line 456
$context['_parent'] = $context;
$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", false, false, false, 456));
foreach ($context['_seq'] as $context["key"] => $context["contact"]) {
// line 457
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["contact"], "status", [], "any", false, false, false, 457) != twig_constant("App\\Entity\\Contact::STATUS_ARCHIVED"))) {
// line 458
echo " <tr>
<td class=\"text-bold\">";
// line 459
echo ((twig_get_attribute($this->env, $this->source, $context["contact"], "isResponsible", [], "any", false, false, false, 459)) ? ("<span class=\"text-success\">Responsable</span>") : ("Employé"));
echo "</td>
<td>";
// line 460
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["contact"], "nom", [], "any", false, false, false, 460), "html", null, true);
echo "</td>
<td>";
// line 461
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["contact"], "prenom", [], "any", false, false, false, 461), "html", null, true);
echo "</td>
<td>";
// line 462
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["contact"], "emailContact", [], "any", false, false, false, 462), "html", null, true);
echo "</td>
<td>";
// line 463
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["contact"], "telPortable", [], "any", false, false, false, 463), "html", null, true);
echo "</td><td>
<ul class=\"\">
";
// line 465
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["contact"], "commissionsContacts", [], "any", false, false, false, 465));
foreach ($context['_seq'] as $context["_key"] => $context["commission"]) {
// line 466
echo " <li>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["commission"], "commission", [], "any", false, false, false, 466), "nom", [], "any", false, false, false, 466), "html", null, true);
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['commission'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 468
echo " </ul>
</td>
<td>
<ul class=\"\">
";
// line 472
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["contact"], "contactConseilAdministrations", [], "any", false, false, false, 472));
foreach ($context['_seq'] as $context["_key"] => $context["contactConseilAdministration"]) {
// line 473
echo " <li>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["contactConseilAdministration"], "conseilAdministration", [], "any", false, false, false, 473), "role", [], "any", false, false, false, 473), "html", null, true);
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['contactConseilAdministration'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 475
echo " </ul>
</td>
<td>
<ul class=\"\">
";
// line 479
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["contact"], "repere", [], "any", false, false, false, 479));
foreach ($context['_seq'] as $context["_key"] => $context["repere"]) {
// line 480
echo " <li>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["repere"], "nom", [], "any", false, false, false, 480), "html", null, true);
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['repere'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 482
echo " </ul>
</td>
<td class=\"text-bold\">";
// line 484
echo ((twig_get_attribute($this->env, $this->source, $context["contact"], "isPrivileged", [], "any", false, false, false, 484)) ? ("Oui") : ("Non"));
echo "</td>
<td class=\"text-bold\">";
// line 485
(( !(null === twig_get_attribute($this->env, $this->source, $context["contact"], "user", [], "any", false, false, false, 485))) ? (print (twig_escape_filter($this->env, (("Oui (#" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["contact"], "user", [], "any", false, false, false, 485), "id", [], "any", false, false, false, 485)) . ")"), "html", null, true))) : (print ("Non")));
echo "</td>
<td class=\"text-center\">
<button class=\"btn btn-outline-secondary btn-icon btn-rounded dropdown-toggle custom-dropdown\" type=\"button\" id=\"dropdownMenu_";
// line 487
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
<i class=\"fa-solid fa-ellipsis\"></i>
</button>
<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_";
// line 490
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\">
<li>
<a class=\"dropdown-item\" href=\"";
// line 492
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", false, false, false, 492)]), "html", null, true);
echo "\">
<i class=\"fas fa-eye\"></i> Visualiser
</a>
</li>
";
// line 496
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 497
echo " <li>
<a class=\"dropdown-item\" href=\"";
// line 498
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", false, false, false, 498)]), "html", null, true);
echo "\">
<i class=\"fas fa-edit\"></i> Editer
</a>
</li>
<li>
<a
class=\"dropdown-item\"
href=\"#\"
data-controller=\"confirm-delete\"
data-confirm-delete-url-value=\"";
// line 507
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", false, false, false, 507)]), "html", null, true);
echo "\"
data-confirm-delete-message-value=\"Etes-vous sûr de vouloir archiver ce contact ?\"
data-confirm-delete-token-value=\"";
// line 509
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", false, false, false, 509))), "html", null, true);
echo "\"
data-confirm-delete-action-value=\"delete_line\"
>
<i class=\"fas fa-archive\"></i> Archiver
</a>
</li>
";
}
// line 516
echo " </ul>
</td>
</tr>
";
}
// line 521
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['contact'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 522
echo " </tbody>
</table>
</div>
</div>
</div>
";
// line 528
if ((((twig_in_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 529
(isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 529, $this->source); })()), "firmType", [], "any", false, false, false, 529), "tag", [], "any", false, false, false, 529), [0 => "trader", 1 => "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))) {
// line 534
echo " <div class=\"card mb-4 d-none\">
<div class=\"card-header card-header-dark\">
Adhésion
</div>
<div class=\"card-body\">
<div class=\"row\">
<div class=\"col-12 col-lg-6\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Souhaite adhérer ?</div>
<div class=\"col-9\">
";
// line 544
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", false, false, false, 544)) ? ("<span class=\"text-bold text-success\">Oui</span>") : ("Non"));
echo "
</div>
</div>
</div>
<div class=\"col-12 col-lg-6\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Figurer dans l'annuaire ?</div>
<div class=\"col-9\">
";
// line 552
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", false, false, false, 552)) ? ("<span class=\"text-bold text-success\">Oui</span>") : ("Non"));
echo "
</div>
</div>
</div>
</div>
";
// line 557
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", false, false, false, 557)) && (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", false, false, false, 557)) != ""))) {
// line 558
echo " <div class=\"row mt-3\">
<div class=\"col-12 col-lg-6\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Raison de non adhésion</div>
<div class=\"col-9\">
";
// line 563
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 563, $this->source); })()), "raisonNonAdhesion", [], "any", false, false, false, 563), "html", null, true);
echo "
</div>
</div>
</div>
<div class=\"col-12 col-lg-6\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\"></div>
<div class=\"col-9\">
";
// line 571
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 571, $this->source); })()), "raisonNonAdhesionAutre", [], "any", false, false, false, 571), "html", null, true);
echo "
</div>
</div>
</div>
</div>
";
}
// line 577
echo " </div>
</div>
";
}
// line 580
echo "
";
// line 581
if (twig_in_filter(twig_get_attribute($this->env, $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.', 581, $this->source); })()), "firmType", [], "any", false, false, false, 581), "tag", [], "any", false, false, false, 581), [0 => "trader", 1 => "transporter"])) {
// line 582
echo " <div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
QUALI NEGOCE
</div>
<div class=\"card-body\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Quali Négoce ?</div>
<div class=\"col-9\">
";
// line 590
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", false, false, false, 590)) ? ("<span class=\"text-bold text-success\">Oui</span>") : ("Non"));
echo "
</div>
</div>
<div class=\"row\">
<div class=\"col-12 col-lg-4 mb-3\">
<div class=\"row\">
<div class=\"col-3 text-bold\">Date de certification</div>
<div class=\"col-9\">
";
// line 598
((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", false, false, false, 598)) ? (print (twig_escape_filter($this->env, twig_date_format_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.', 598, $this->source); })()), "qualiNegoceCertificationDate", [], "any", false, false, false, 598), "d/m/Y"), "html", null, true))) : (print ("")));
echo "
</div>
</div>
</div>
<div class=\"col-12 col-lg-4 mb-3\">
<div class=\"row\">
<div class=\"col-3 text-bold\">Date pre audit</div>
<div class=\"col-9\">
";
// line 606
((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", false, false, false, 606)) ? (print (twig_escape_filter($this->env, twig_date_format_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.', 606, $this->source); })()), "qualiNegocePreAuditDate", [], "any", false, false, false, 606), "d/m/Y"), "html", null, true))) : (print ("")));
echo "
</div>
</div>
</div>
<div class=\"col-12 col-lg-4 mb-3\">
<div class=\"row\">
<div class=\"col-3 text-bold\">Date d’audit intermédiaire</div>
<div class=\"col-9\">
";
// line 614
((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", false, false, false, 614)) ? (print (twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_date_modify_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.', 614, $this->source); })()), "qualiNegoceCertificationDate", [], "any", false, false, false, 614), "+18 month"), "d/m/Y"), "html", null, true))) : (print ("")));
echo "
</div>
</div>
</div>
</div>
<hr class=\"mb-4\">
<h4 class=\"mt-4 mb-3\">Nom du / des référent(s)</h4>
<div class=\"table-responsive\">
<table class=\"w-100\" id=\"quali-negoce-contacts\">
<tbody>
";
// line 627
$context['_parent'] = $context;
$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", false, false, false, 627));
foreach ($context['_seq'] as $context["_key"] => $context["firmContactQualiNegoce"]) {
// line 628
echo " <tr>
<td>
";
// line 630
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["firmContactQualiNegoce"], "contact", [], "any", false, false, false, 630), "fullname", [], "any", false, false, false, 630), "html", null, true);
echo "
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['firmContactQualiNegoce'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 634
echo " </tbody>
</table>
</div>
<hr class=\"mb-4\">
<h4 class=\"mt-4 mb-3\">Mes documents Quali Negoce</h4>
<div class=\"table-responsive\">
<table class=\"w-100\" id=\"quali-negoce-document\">
<tbody>
";
// line 645
$context['_parent'] = $context;
$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", false, false, false, 645));
foreach ($context['_seq'] as $context["_key"] => $context["document"]) {
// line 646
echo " <tr>
<td>
<a href=\"";
// line 648
echo twig_escape_filter($this->env, $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset($context["document"], "documentFile"), "html", null, true);
echo "\" target=\"_blank\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["document"], "originalFileName", [], "any", false, false, false, 648), "html", null, true);
echo "</a>
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['document'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 652
echo " </tbody>
</table>
</div>
</div>
</div>
";
}
// line 658
echo "
";
// line 659
if ((((twig_in_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 660
(isset($context["entreprise"]) || array_key_exists("entreprise", $context) ? $context["entreprise"] : (function () { throw new RuntimeError('Variable "entreprise" does not exist.', 660, $this->source); })()), "firmType", [], "any", false, false, false, 660), "tag", [], "any", false, false, false, 660), [0 => "trader", 1 => "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))) {
// line 665
echo " <div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Chiffre d'affaires des 3 dernières années
</div>
<div class=\"card-body\">
";
// line 670
$context["year"] = $this->extensions['App\Twig\CastExtension']->castToInt(twig_date_format_filter($this->env, "now", "Y"));
// line 671
echo " <div class=\"table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>Année</th>
<th>Chiffre d'affaire</th>
<th>Type cotisation</th>
<th>Montant cotisation</th>
<th>Option(s)</th>
</tr>
</thead>
<tbody>
";
// line 683
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable([0 => 0, 1 => 1, 2 => 2]);
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 684
echo " ";
$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", [0 => ((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", false, false, false, 684);
// line 685
echo " <tr>
<td>";
// line 686
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", null, true);
echo "</td>
<td>";
// line 687
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", false, false, false, 687) > 0))) ? ((twig_number_format_filter($this->env, 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", false, false, false, 687), 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", null, true);
echo "</td>
<td>";
// line 688
((((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", false, false, false, 688))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $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", false, false, false, 688), "name", [], "any", false, false, false, 688), "html", null, true))) : (print ("")));
echo "</td>
<td>";
// line 689
(((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->env, 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.', 689, $this->source); })()), "priceTtc", [], "any", false, false, false, 689), 2, ",", " ") . " €"), "html", null, true))) : (print ("")));
echo "</td>
<td>
";
// line 691
if ((isset($context["cotisation"]) || array_key_exists("cotisation", $context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.', 691, $this->source); })())) {
// line 692
echo " <div>Import / Export: ";
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", false, false, false, 692) > 0)) ? ("Oui") : ("Non"));
echo "</div>
<div>Mapa: ";
// line 693
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", false, false, false, 693)) ? ("Oui") : ("Non"));
echo "</div>
";
}
// line 695
echo " </td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 698
echo " </tbody>
</table>
</div>
</div>
</div>
";
}
// line 704
echo "
";
// line 705
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))) {
// line 710
echo " <div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Commentaire
</div>
<div class=\"card-body\">
<div class=\"mb-2\">
<div class=\"text-bold show-label\">Commentaire:</div>
<div class=\"mt-3\">";
// line 717
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", false, false, false, 717);
echo "</div>
</div>
</div>
</div>
";
}
// line 722
echo "
<div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Liaison(s) entreprise
</div>
<div class=\"card-body\">
<div class=\"table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>Entreprise source</th>
<th>Type</th>
<th>Entreprise cible</th>
<th>Date</th>
<th>Commentaire</th>
</tr>
</thead>
<tbody>
";
// line 740
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["fromMe"]) {
// line 741
echo " <tr>
<td>
<a href=\"";
// line 743
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_entreprise", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fromMe"], "fromFirm", [], "any", false, false, false, 743), "id", [], "any", false, false, false, 743)]), "html", null, true);
echo "\">
";
// line 744
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fromMe"], "fromFirm", [], "any", false, false, false, 744), "raisonSocial", [], "any", false, false, false, 744) . " (#") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fromMe"], "fromFirm", [], "any", false, false, false, 744), "id", [], "any", false, false, false, 744)) . ")"), "html", null, true);
echo "
</a>
</td>
<td>";
// line 747
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fromMe"], "type", [], "any", false, false, false, 747), "name", [], "any", false, false, false, 747), "html", null, true);
echo "</td>
<td>
<a href=\"";
// line 749
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_entreprise", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fromMe"], "toFirm", [], "any", false, false, false, 749), "id", [], "any", false, false, false, 749)]), "html", null, true);
echo "\">
";
// line 750
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fromMe"], "toFirm", [], "any", false, false, false, 750), "raisonSocial", [], "any", false, false, false, 750) . " (#") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fromMe"], "toFirm", [], "any", false, false, false, 750), "id", [], "any", false, false, false, 750)) . ")"), "html", null, true);
echo "
</a>
</td>
<td>";
// line 753
((twig_get_attribute($this->env, $this->source, $context["fromMe"], "date", [], "any", false, false, false, 753)) ? (print (twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["fromMe"], "date", [], "any", false, false, false, 753), "d/m/Y"), "html", null, true))) : (print ("")));
echo "</td>
<td>";
// line 754
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["fromMe"], "comment", [], "any", false, false, false, 754), "html", null, true);
echo "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['fromMe'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 757
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["toMe"]) {
// line 758
echo " <tr>
<td>
<a href=\"";
// line 760
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_entreprise", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["toMe"], "fromFirm", [], "any", false, false, false, 760), "id", [], "any", false, false, false, 760)]), "html", null, true);
echo "\">
";
// line 761
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["toMe"], "fromFirm", [], "any", false, false, false, 761), "raisonSocial", [], "any", false, false, false, 761) . " (#") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["toMe"], "fromFirm", [], "any", false, false, false, 761), "id", [], "any", false, false, false, 761)) . ")"), "html", null, true);
echo "
</a>
</td>
<td>";
// line 764
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["toMe"], "type", [], "any", false, false, false, 764), "name", [], "any", false, false, false, 764), "html", null, true);
echo "</td>
<td>
<a href=\"";
// line 766
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_entreprise", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["toMe"], "toFirm", [], "any", false, false, false, 766), "id", [], "any", false, false, false, 766)]), "html", null, true);
echo "\">
";
// line 767
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["toMe"], "toFirm", [], "any", false, false, false, 767), "raisonSocial", [], "any", false, false, false, 767) . " (#") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["toMe"], "toFirm", [], "any", false, false, false, 767), "id", [], "any", false, false, false, 767)) . ")"), "html", null, true);
echo "
</a>
</td>
<td>";
// line 770
((twig_get_attribute($this->env, $this->source, $context["toMe"], "date", [], "any", false, false, false, 770)) ? (print (twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["toMe"], "date", [], "any", false, false, false, 770), "d/m/Y"), "html", null, true))) : (print ("")));
echo "</td>
<td>";
// line 771
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["toMe"], "comment", [], "any", false, false, false, 771), "html", null, true);
echo "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['toMe'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 774
echo " </tbody>
</table>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "backend/entreprise/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'backend/base.html.twig' %}
{% block title %}Entreprise {{ entreprise.raisonSocial }}{% endblock %}
{% block content %}
{% embed 'backend/partials/_breadcrumb.html.twig' with {
datas: [
{label: 'Entreprises', url: path('advanced_search', {entity: 'entreprise'})},
{label: entreprise.raisonSocial ~ ' <i>(#' ~ entreprise.id ~ ')</i>'}
],
buttons: [
{
display: is_granted('ROLE_UPDATE_ENTITY') ? true : false,
url: path('edit_entreprise', {'id': entreprise.id }),
class: 'btn btn-sm btn-primary',
icon: 'fas fa-edit',
label: 'Modifier'
}
]
} %}
{% block other_button_after %}
{% if is_granted('ROLE_ADMIN') %}
<a href=\"{{ path('show_entreprise_cotisation', {id: entreprise.id}) }}\" class=\"btn btn-sm btn-primary\">
<i class=\"fas fa-eye\"></i> Voir les cotisations
</a>
<a href=\"{{ path('show_history_entreprise', {id: entreprise.id}) }}\" class=\"btn btn-sm btn-primary\">
<i class=\"fas fa-archive\"></i> Historique des modifications
</a>
<a href=\"{{ path('duplicate_entreprise', {id: entreprise.id}) }}\" class=\"btn btn-sm btn-warning\">
<i class=\"fa-regular fa-copy\"></i> Dupliquer
</a>
{% if entreprise.status != constant('App\\\\Entity\\\\Entreprise::STATUS_MERGED') %}
<a href=\"#\" class=\"btn btn-sm btn-warning\" data-bs-toggle=\"modal\" data-bs-target=\"#fusionModal\">
<i class=\"fa-solid fa-code-merge\"></i> Fusionner
</a>
{% endif %}
<div class=\"modal fade\" id=\"fusionModal\" tabindex=\"-1\" aria-labelledby=\"fusionModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
{{ form_start(formFusion) }}
<div class=\"modal-header\">
<h1 class=\"modal-title fs-5\" id=\"fusionModalLabel\">Fusionner</h1>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<div class=\"modal-body text-start\">
{{ form_row(formFusion.toFirm) }}
{{ form_row(formFusion.date) }}
{{ form_row(formFusion.type) }}
{{ form_row(formFusion.comment) }}
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Annuler</button>
<button type=\"submit\" class=\"btn btn-primary\">Valider</button>
</div>
{{ form_end(formFusion) }}
</div>
</div>
</div>
{% endif %}
{% endblock %}
{% endembed %}
<div class=\"row justify-content-md-center mb-4\">
<div class=\"col-12 col-lg-6\">
<div class=\"card h-100\">
<div class=\"card-header card-header-dark\">
Informations générales
<span class=\"mx-2 float-end badge bg-{{ entreprise.isMember ? 'success' : 'danger' }} p-2\">
{{ (entreprise.isMember ? 'adhésion payée' : 'adhésion non payée')|upper }}
</span>
<span class=\"float-end badge bg-{{ entreprise.firmType.color ?? 'secondary' }} p-2\">
{{ entreprise.firmType.name|upper }}
</span>
{{ bagdeStatusFirm(entreprise.status, 'float-end mx-2') }}
</div>
<div class=\"card-body\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Raison sociale</div>
<div class=\"col-9\">{{ entreprise.raisonSocial }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Téléphone bureau</div>
<div class=\"col-9\">{{ entreprise.tel1 }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Email</div>
<div class=\"col-9\">{{ entreprise.email }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">N° APE</div>
<div class=\"col-9\">{{ entreprise.codeApe }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">N° Siret</div>
<div class=\"col-9\">{{ entreprise.codeSiren }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">N° TVA Intracom</div>
<div class=\"col-9\">{{ entreprise.numTvaIntracom }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">RC</div>
<div class=\"col-9\">{{ entreprise.numEdeCentre }}</div>
</div>
{% if entreprise.dateCessation %}
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Date cessation activité</div>
<div class=\"col-9\">{{ entreprise.dateCessation ? entreprise.dateCessation|date('d/m/Y') : '' }}</div>
</div>
{% endif %}
<div class=\"row mb-3 d-none\">
<div class=\"col-3 text-bold\">Identifiant comptable</div>
<div class=\"col-9\">{{ entreprise.identifiantCompta }}</div>
</div>
</div>
</div>
</div>
<div class=\"col-12 col-lg-6 mt-4 mt-lg-0\">
<div class=\"h-100\">
<div class=\"card\">
<div class=\"card-header card-header-dark\">
<div class=\"pb-2\">Adresse du siège social</div>
</div>
<div class=\"card-body\">
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Adresse:</span>
<span>{{ entreprise.adresse is not empty ? entreprise.adresse : '' }}</span>
</div>
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Adresse compl.:</span>
<span>{{ entreprise.adresse2 is not empty ? entreprise.adresse2 : '' }}</span>
</div>
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Code postal:</span>
<span>{{ entreprise.codePostal is not empty ? entreprise.codePostal : '' }}</span>
</div>
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Ville:</span>
<span>{{ entreprise.ville is not empty ? entreprise.ville : '' }}</span>
</div>
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Département:</span>
<span>{{ entreprise.departement is not null ? entreprise.departement.nom : '' }}</span>
</div>
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Région:</span>
<span>{{ entreprise.departement is not null and entreprise.departement.regions is not null ? entreprise.departement.regions.first.nom : '' }}</span>
</div>
</div>
</div>
<div class=\"card mb-0\">
<div class=\"card-header card-header-dark\">
Fédération
</div>
<div class=\"card-body\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Syndicat de rattachement</div>
<div class=\"col-9\">{{ entreprise.syndicat.nom is defined ? entreprise.syndicat.nom : '' }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Région de rattachement</div>
<div class=\"col-9\">{{ entreprise.homeRegion ? entreprise.homeRegion.nom : '' }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Groupe entreprise</div>
<div class=\"col-9\">{{ entreprise.groupeEntreprise ? entreprise.groupeEntreprise.nom : '' }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Commission</div>
<div class=\"col-9\">{{ entreprise.commission ? entreprise.commission.nom : '' }}</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% if entreprise.firmType.tag in ['trader', 'transporter'] %}
<div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Etablissement(s) / Centres de rassemblement
{% if is_granted('ROLE_ADMIN') %}
<a href=\"{{ path('add_establishment', {id: entreprise.id}) }}\" class=\"float-end text-white\">
<i class=\"fas fa-plus fa-2x\"></i>
</a>
{% endif %}
</div>
<div class=\"card-body\">
<div class=\"table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>Type</th>
<th>Tél</th>
<th>Email</th>
<th>N° siret</th>
<th>Code EDE</th>
<th>Adresse</th>
<th>Département</th>
<th>Date de cessation</th>
<th class=\"text-center\">Actions</th>
</tr>
</thead>
<tbody>
{% for key, etablissement in entreprise.etablissements %}
<tr>
<td>{{ etablissement.siegeSocial ? '<strong class=\"text-primary\">Siège social</strong>'|raw : 'Etablissement' }}</td>
<td>{{ etablissement.telBureau1 }}</td>
<td>{{ etablissement.emailBureau }}</td>
<td>{{ etablissement.codeSiret }}</td>
<td>{{ etablissement.codeEde }}</td>
<td>
{{ etablissement.adresse }}<br>
{{ etablissement.codePostal }}<br>
{{ etablissement.ville }}
</td>
<td>{{ etablissement.departement ? etablissement.departement.nom : '' }}</td>
<td>{{ etablissement.dateCessation ? etablissement.dateCessation|date('d/m/Y') }}</td>
<td class=\"text-center\">
<button class=\"btn btn-outline-secondary btn-icon btn-rounded dropdown-toggle custom-dropdown\" type=\"button\" id=\"dropdownMenu_{{ key }}\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
<i class=\"fa-solid fa-ellipsis\"></i>
</button>
<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_{{ key }}\">
<li>
<a class=\"dropdown-item\" href=\"{{ path('show_establishment', {id: etablissement.id }) }}\">
<i class=\"fas fa-eye\"></i> Visualiser
</a>
</li>
{% if is_granted('ROLE_ADMIN') %}
<li>
<a class=\"dropdown-item\" href=\"{{ path('edit_establishment', {id: etablissement.id}) }}\">
<i class=\"fas fa-edit\"></i> Editer
</a>
</li>
<li>
<a
class=\"dropdown-item\"
href=\"{{ path('delete_establishment', {id: etablissement.id}) }}\"
data-controller=\"confirm-delete\"
data-confirm-delete-url-value=\"{{ path('delete_establishment', {id: etablissement.id}) }}\"
data-confirm-delete-message-value=\"Etes-vous sûr de vouloir supprimer cet établissement ?\"
data-confirm-delete-token-value=\"{{ csrf_token('etablissement_' ~ etablissement.id) }}\"
data-confirm-delete-action-value=\"delete_line\"
>
<i class=\"fas fa-trash\"></i> Supprimer
</a>
</li>
{% endif %}
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endif %}
{% if
entreprise.firmType.tag in ['trader', 'transporter'] and
is_granted('ROLE_BOARD_DIRECTOR') == false and
is_granted('ROLE_REGIONAL_AGENT') == false and
is_granted('ROLE_UNION_PRESIDENT') == false
%}
<div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Secteur d'activité
</div>
<div class=\"card-body\">
{% set totalSpecies = 0 %}
<div class=\"row mb-3\">
<div class=\"col-3 col-lg-1 text-bold\">Espèce(s)</div>
<div class=\"col-9 col-lg-11\">
{% if entreprise.entrepriseActivities|length == 0 %}
Aucune espèce
{% else %}
{% for firmActivity in entreprise.entrepriseActivities %}
{% if firmActivity.checked and firmActivity.activity.isEnabled %}
{# <span class=\"badge bg-primary p-2\">{{firmActivity.activity.nom|capitalize ~ (entreprise.isTransporter == false ? ' - ' ~ firmActivity.number)}}</span> #}
<span class=\"badge bg-primary p-2\">{{firmActivity.activity.nom|capitalize ~ (entreprise.firmType.tag == 'trader' ? ' - ' ~ firmActivity.number)}}</span>
{% set totalSpecies = totalSpecies + firmActivity.number %}
{% endif %}
{% endfor %}
{% endif %}
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 col-lg-1 text-bold\">Volume total</div>
<div class=\"col-9 col-lg-11\">{{ entreprise.totalCountSpecies }}</div>
</div>
{% if entreprise.firmType.tag == 'transporter' %}
<hr>
<div class=\"row\">
<div class=\"col-12 col-lg-3 d-none\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Autre activité</div>
<div class=\"col-7\">
{{ entreprise.autreActivite ?? '<i><small>Aucune</small></i>' }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">N° agrément transport</div>
<div class=\"col-7\">
{{ entreprise.transporteur ? entreprise.transporteur.numAgrementTransport }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Nb de Licence Transport interne</div>
<div class=\"col-7\">
{{ entreprise.transporteur ? entreprise.transporteur.nombreLicenseInterne }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Nb de Licence intracommunautaire</div>
<div class=\"col-7\">
{{ entreprise.transporteur ? entreprise.transporteur.nombreLicenceIntracom }}
</div>
</div>
</div>
</div>
{% else %}
{% if totalSpecies != entreprise.totalCountSpecies %}
<div class=\"alert alert-warning\">
Le volume total est différent de la somme des volumes par espèce
</div>
{% endif %}
<hr>
<div class=\"row\">
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Autre activité</div>
<div class=\"col-7\">
{{ entreprise.autreActivite ?? '<i><small>Aucune</small></i>' }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-3 d-none\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Volume d'animaux</div>
<div class=\"col-7\">
{{ entreprise.volumeAnimaux }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-3 d-none\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Autre spécialité</div>
<div class=\"col-7\">
{{ entreprise.autreSpecialite }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Transport pour autrui</div>
<div class=\"col-7\">
{{ entreprise.transportPourAutrui ? \"oui\"|upper : \"non\" }}
</div>
</div>
</div>
</div>
{#
<hr>
<div class=\"row\">
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">EDE Négoce</div>
<div class=\"col-7\">
{{ entreprise.numEdeNegoce }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">EDE Centre Rassemblement</div>
<div class=\"col-7\">
{{ entreprise.numEdeCentre }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">EDE Elevage</div>
<div class=\"col-7\">
{{ entreprise.numEdeElevage }}
</div>
</div>
</div>
</div>
#}
{% endif %}
<hr>
<div class=\"row mb-3\">
<div class=\"col-3 col-lg-1 text-bold\">Nb employés</div>
<div class=\"col-9 col-lg-11\">
{{ entreprise.nombreEmployes }}
</div>
</div>
</div>
</div>
{% endif %}
<div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Contacts
{% if is_granted('ROLE_ADMIN') %}
<a href=\"{{ path('add_contact_from_firm', {id: entreprise.id}) }}\" class=\"float-end text-white\">
<i class=\"fas fa-plus fa-2x\"></i>
</a>
{% endif %}
</div>
<div class=\"card-body\">
<div class=\"table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>Type</th>
<th>Nom</th>
<th>Prénom</th>
<th>Email</th>
<th>Tél. portable</th>
<th>Commission</th>
<th>Conseil admin.</th>
<th>Repères</th>
<th>Privil.</th>
<th>Utilisateur extranet ?</th>
<th class=\"text-center\">Action(s)</th>
</tr>
</thead>
<tbody>
{% for key, contact in entreprise.contacts %}
{% if contact.status != constant('App\\\\Entity\\\\Contact::STATUS_ARCHIVED') %}
<tr>
<td class=\"text-bold\">{{ (contact.isResponsible ? '<span class=\"text-success\">Responsable</span>' : 'Employé')|raw }}</td>
<td>{{ contact.nom }}</td>
<td>{{ contact.prenom }}</td>
<td>{{ contact.emailContact }}</td>
<td>{{ contact.telPortable }}</td><td>
<ul class=\"\">
{% for commission in contact.commissionsContacts %}
<li>{{ commission.commission.nom }}</li>
{% endfor %}
</ul>
</td>
<td>
<ul class=\"\">
{% for contactConseilAdministration in contact.contactConseilAdministrations %}
<li>{{ contactConseilAdministration.conseilAdministration.role }}</li>
{% endfor %}
</ul>
</td>
<td>
<ul class=\"\">
{% for repere in contact.repere %}
<li>{{ repere.nom }}</li>
{% endfor %}
</ul>
</td>
<td class=\"text-bold\">{{ contact.isPrivileged ? 'Oui' : 'Non' }}</td>
<td class=\"text-bold\">{{ contact.user is not null ? 'Oui (#' ~ contact.user.id ~ ')' : 'Non' }}</td>
<td class=\"text-center\">
<button class=\"btn btn-outline-secondary btn-icon btn-rounded dropdown-toggle custom-dropdown\" type=\"button\" id=\"dropdownMenu_{{ key }}\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
<i class=\"fa-solid fa-ellipsis\"></i>
</button>
<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_{{ key }}\">
<li>
<a class=\"dropdown-item\" href=\"{{ path('show_contact', {id: contact.id }) }}\">
<i class=\"fas fa-eye\"></i> Visualiser
</a>
</li>
{% if is_granted('ROLE_ADMIN') %}
<li>
<a class=\"dropdown-item\" href=\"{{ path('edit_contact_from_firm', {id: contact.id}) }}\">
<i class=\"fas fa-edit\"></i> Editer
</a>
</li>
<li>
<a
class=\"dropdown-item\"
href=\"#\"
data-controller=\"confirm-delete\"
data-confirm-delete-url-value=\"{{ path('archive_contact', {id: contact.id}) }}\"
data-confirm-delete-message-value=\"Etes-vous sûr de vouloir archiver ce contact ?\"
data-confirm-delete-token-value=\"{{ csrf_token('contact_' ~ contact.id) }}\"
data-confirm-delete-action-value=\"delete_line\"
>
<i class=\"fas fa-archive\"></i> Archiver
</a>
</li>
{% endif %}
</ul>
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% if
entreprise.firmType.tag in ['trader', 'transporter'] and
is_granted('ROLE_BOARD_DIRECTOR') == false and
is_granted('ROLE_REGIONAL_AGENT') == false and
is_granted('ROLE_UNION_PRESIDENT') == false
%}
<div class=\"card mb-4 d-none\">
<div class=\"card-header card-header-dark\">
Adhésion
</div>
<div class=\"card-body\">
<div class=\"row\">
<div class=\"col-12 col-lg-6\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Souhaite adhérer ?</div>
<div class=\"col-9\">
{{ entreprise.souhaiteAdherer ? '<span class=\"text-bold text-success\">Oui</span>' : 'Non' }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-6\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Figurer dans l'annuaire ?</div>
<div class=\"col-9\">
{{ entreprise.figurerAnnuaireAdherents ? '<span class=\"text-bold text-success\">Oui</span>' : 'Non' }}
</div>
</div>
</div>
</div>
{% if entreprise.raisonNonAdhesion is not null and entreprise.raisonNonAdhesion|trim != '' %}
<div class=\"row mt-3\">
<div class=\"col-12 col-lg-6\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Raison de non adhésion</div>
<div class=\"col-9\">
{{ entreprise.raisonNonAdhesion }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-6\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\"></div>
<div class=\"col-9\">
{{ entreprise.raisonNonAdhesionAutre }}
</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endif %}
{% if entreprise.firmType.tag in ['trader', 'transporter'] %}
<div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
QUALI NEGOCE
</div>
<div class=\"card-body\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Quali Négoce ?</div>
<div class=\"col-9\">
{{ entreprise.isQualiNegoce ? '<span class=\"text-bold text-success\">Oui</span>' : 'Non' }}
</div>
</div>
<div class=\"row\">
<div class=\"col-12 col-lg-4 mb-3\">
<div class=\"row\">
<div class=\"col-3 text-bold\">Date de certification</div>
<div class=\"col-9\">
{{ entreprise.qualiNegoceCertificationDate ? entreprise.qualiNegoceCertificationDate|date('d/m/Y') }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-4 mb-3\">
<div class=\"row\">
<div class=\"col-3 text-bold\">Date pre audit</div>
<div class=\"col-9\">
{{ entreprise.qualiNegocePreAuditDate ? entreprise.qualiNegocePreAuditDate|date('d/m/Y') }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-4 mb-3\">
<div class=\"row\">
<div class=\"col-3 text-bold\">Date d’audit intermédiaire</div>
<div class=\"col-9\">
{{ entreprise.qualiNegoceCertificationDate ? entreprise.qualiNegoceCertificationDate|date_modify(\"+18 month\")|date('d/m/Y') }}
</div>
</div>
</div>
</div>
<hr class=\"mb-4\">
<h4 class=\"mt-4 mb-3\">Nom du / des référent(s)</h4>
<div class=\"table-responsive\">
<table class=\"w-100\" id=\"quali-negoce-contacts\">
<tbody>
{% for firmContactQualiNegoce in entreprise.firmContactQualiNegoces %}
<tr>
<td>
{{ firmContactQualiNegoce.contact.fullname }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<hr class=\"mb-4\">
<h4 class=\"mt-4 mb-3\">Mes documents Quali Negoce</h4>
<div class=\"table-responsive\">
<table class=\"w-100\" id=\"quali-negoce-document\">
<tbody>
{% for document in entreprise.firmQualiNegoceDocuments %}
<tr>
<td>
<a href=\"{{ vich_uploader_asset(document, 'documentFile') }}\" target=\"_blank\">{{ document.originalFileName }}</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endif %}
{% if
entreprise.firmType.tag in ['trader', 'transporter'] and
is_granted('ROLE_BOARD_DIRECTOR') == false and
is_granted('ROLE_REGIONAL_AGENT') == false and
is_granted('ROLE_UNION_PRESIDENT') == false
%}
<div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Chiffre d'affaires des 3 dernières années
</div>
<div class=\"card-body\">
{% set year = 'now'|date('Y')|cast_to_int %}
<div class=\"table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>Année</th>
<th>Chiffre d'affaire</th>
<th>Type cotisation</th>
<th>Montant cotisation</th>
<th>Option(s)</th>
</tr>
</thead>
<tbody>
{% for i in [0, 1, 2] %}
{% set cotisation = entreprise.getCotisationByYear(year - i) %}
<tr>
<td>{{ year - i }}</td>
<td>{{ cotisation and cotisation.revenue > 0 ? cotisation.revenue|number_format(2, ',', ' ') ~ ' €' : 'Pas de chiffre d\\'affaire renseigné pour l\\'année ' ~ (year - i) }}</td>
<td>{{ cotisation and cotisation.cotisationType ? cotisation.cotisationType.name }}</td>
<td>{{ cotisation ? cotisation.priceTtc|number_format(2, ',', ' ') ~ ' €' }}</td>
<td>
{% if cotisation %}
<div>Import / Export: {{ cotisation.optionImportExport > 0 ? 'Oui' : 'Non' }}</div>
<div>Mapa: {{ cotisation.optionMapa ? 'Oui' : 'Non' }}</div>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endif %}
{% if
is_granted('ROLE_BOARD_DIRECTOR') == false and
is_granted('ROLE_REGIONAL_AGENT') == false and
is_granted('ROLE_UNION_PRESIDENT') == false
%}
<div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Commentaire
</div>
<div class=\"card-body\">
<div class=\"mb-2\">
<div class=\"text-bold show-label\">Commentaire:</div>
<div class=\"mt-3\">{{ entreprise.commentaires|raw }}</div>
</div>
</div>
</div>
{% endif %}
<div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Liaison(s) entreprise
</div>
<div class=\"card-body\">
<div class=\"table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>Entreprise source</th>
<th>Type</th>
<th>Entreprise cible</th>
<th>Date</th>
<th>Commentaire</th>
</tr>
</thead>
<tbody>
{% for fromMe in linkedFirmWithFromMe %}
<tr>
<td>
<a href=\"{{ path('show_entreprise', {id: fromMe.fromFirm.id}) }}\">
{{ fromMe.fromFirm.raisonSocial ~ ' (#' ~ fromMe.fromFirm.id ~ ')' }}
</a>
</td>
<td>{{ fromMe.type.name }}</td>
<td>
<a href=\"{{ path('show_entreprise', {id: fromMe.toFirm.id}) }}\">
{{ fromMe.toFirm.raisonSocial ~ ' (#' ~ fromMe.toFirm.id ~ ')' }}
</a>
</td>
<td>{{ fromMe.date ? fromMe.date|date('d/m/Y') }}</td>
<td>{{ fromMe.comment }}</td>
</tr>
{% endfor %}
{% for toMe in linkedFirmWithToMe %}
<tr>
<td>
<a href=\"{{ path('show_entreprise', {id: toMe.fromFirm.id}) }}\">
{{ toMe.fromFirm.raisonSocial ~ ' (#' ~ toMe.fromFirm.id ~ ')' }}
</a>
</td>
<td>{{ toMe.type.name }}</td>
<td>
<a href=\"{{ path('show_entreprise', {id: toMe.toFirm.id}) }}\">
{{ toMe.toFirm.raisonSocial ~ ' (#' ~ toMe.toFirm.id ~ ')' }}
</a>
</td>
<td>{{ toMe.date ? toMe.date|date('d/m/Y') }}</td>
<td>{{ toMe.comment }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}", "backend/entreprise/show.html.twig", "/var/www/html/symfony/templates/backend/entreprise/show.html.twig");
}
}
/* backend/entreprise/show.html.twig */
class __TwigTemplate_25a474b06d0dc556026b372817da6bd6___1086627597 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'other_button_after' => [$this, 'block_other_button_after'],
];
}
protected function doGetParent(array $context)
{
// line 7
return "backend/partials/_breadcrumb.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "backend/entreprise/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "backend/entreprise/show.html.twig"));
$this->parent = $this->loadTemplate("backend/partials/_breadcrumb.html.twig", "backend/entreprise/show.html.twig", 7);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 22
public function block_other_button_after($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "other_button_after"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "other_button_after"));
// line 23
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 24
echo " <a href=\"";
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", false, false, false, 24)]), "html", null, true);
echo "\" class=\"btn btn-sm btn-primary\">
<i class=\"fas fa-eye\"></i> Voir les cotisations
</a>
<a href=\"";
// line 28
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", false, false, false, 28)]), "html", null, true);
echo "\" class=\"btn btn-sm btn-primary\">
<i class=\"fas fa-archive\"></i> Historique des modifications
</a>
<a href=\"";
// line 32
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", false, false, false, 32)]), "html", null, true);
echo "\" class=\"btn btn-sm btn-warning\">
<i class=\"fa-regular fa-copy\"></i> Dupliquer
</a>
";
// line 36
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", false, false, false, 36) != twig_constant("App\\Entity\\Entreprise::STATUS_MERGED"))) {
// line 37
echo " <a href=\"#\" class=\"btn btn-sm btn-warning\" data-bs-toggle=\"modal\" data-bs-target=\"#fusionModal\">
<i class=\"fa-solid fa-code-merge\"></i> Fusionner
</a>
";
}
// line 41
echo "
<div class=\"modal fade\" id=\"fusionModal\" tabindex=\"-1\" aria-labelledby=\"fusionModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
";
// line 45
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');
echo "
<div class=\"modal-header\">
<h1 class=\"modal-title fs-5\" id=\"fusionModalLabel\">Fusionner</h1>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<div class=\"modal-body text-start\">
";
// line 51
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", false, false, false, 51), 'row');
echo "
";
// line 52
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", false, false, false, 52), 'row');
echo "
";
// line 53
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", false, false, false, 53), 'row');
echo "
";
// line 54
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", false, false, false, 54), 'row');
echo "
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Annuler</button>
<button type=\"submit\" class=\"btn btn-primary\">Valider</button>
</div>
";
// line 60
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');
echo "
</div>
</div>
</div>
";
}
// line 65
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "backend/entreprise/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'backend/base.html.twig' %}
{% block title %}Entreprise {{ entreprise.raisonSocial }}{% endblock %}
{% block content %}
{% embed 'backend/partials/_breadcrumb.html.twig' with {
datas: [
{label: 'Entreprises', url: path('advanced_search', {entity: 'entreprise'})},
{label: entreprise.raisonSocial ~ ' <i>(#' ~ entreprise.id ~ ')</i>'}
],
buttons: [
{
display: is_granted('ROLE_UPDATE_ENTITY') ? true : false,
url: path('edit_entreprise', {'id': entreprise.id }),
class: 'btn btn-sm btn-primary',
icon: 'fas fa-edit',
label: 'Modifier'
}
]
} %}
{% block other_button_after %}
{% if is_granted('ROLE_ADMIN') %}
<a href=\"{{ path('show_entreprise_cotisation', {id: entreprise.id}) }}\" class=\"btn btn-sm btn-primary\">
<i class=\"fas fa-eye\"></i> Voir les cotisations
</a>
<a href=\"{{ path('show_history_entreprise', {id: entreprise.id}) }}\" class=\"btn btn-sm btn-primary\">
<i class=\"fas fa-archive\"></i> Historique des modifications
</a>
<a href=\"{{ path('duplicate_entreprise', {id: entreprise.id}) }}\" class=\"btn btn-sm btn-warning\">
<i class=\"fa-regular fa-copy\"></i> Dupliquer
</a>
{% if entreprise.status != constant('App\\\\Entity\\\\Entreprise::STATUS_MERGED') %}
<a href=\"#\" class=\"btn btn-sm btn-warning\" data-bs-toggle=\"modal\" data-bs-target=\"#fusionModal\">
<i class=\"fa-solid fa-code-merge\"></i> Fusionner
</a>
{% endif %}
<div class=\"modal fade\" id=\"fusionModal\" tabindex=\"-1\" aria-labelledby=\"fusionModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
{{ form_start(formFusion) }}
<div class=\"modal-header\">
<h1 class=\"modal-title fs-5\" id=\"fusionModalLabel\">Fusionner</h1>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<div class=\"modal-body text-start\">
{{ form_row(formFusion.toFirm) }}
{{ form_row(formFusion.date) }}
{{ form_row(formFusion.type) }}
{{ form_row(formFusion.comment) }}
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Annuler</button>
<button type=\"submit\" class=\"btn btn-primary\">Valider</button>
</div>
{{ form_end(formFusion) }}
</div>
</div>
</div>
{% endif %}
{% endblock %}
{% endembed %}
<div class=\"row justify-content-md-center mb-4\">
<div class=\"col-12 col-lg-6\">
<div class=\"card h-100\">
<div class=\"card-header card-header-dark\">
Informations générales
<span class=\"mx-2 float-end badge bg-{{ entreprise.isMember ? 'success' : 'danger' }} p-2\">
{{ (entreprise.isMember ? 'adhésion payée' : 'adhésion non payée')|upper }}
</span>
<span class=\"float-end badge bg-{{ entreprise.firmType.color ?? 'secondary' }} p-2\">
{{ entreprise.firmType.name|upper }}
</span>
{{ bagdeStatusFirm(entreprise.status, 'float-end mx-2') }}
</div>
<div class=\"card-body\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Raison sociale</div>
<div class=\"col-9\">{{ entreprise.raisonSocial }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Téléphone bureau</div>
<div class=\"col-9\">{{ entreprise.tel1 }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Email</div>
<div class=\"col-9\">{{ entreprise.email }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">N° APE</div>
<div class=\"col-9\">{{ entreprise.codeApe }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">N° Siret</div>
<div class=\"col-9\">{{ entreprise.codeSiren }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">N° TVA Intracom</div>
<div class=\"col-9\">{{ entreprise.numTvaIntracom }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">RC</div>
<div class=\"col-9\">{{ entreprise.numEdeCentre }}</div>
</div>
{% if entreprise.dateCessation %}
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Date cessation activité</div>
<div class=\"col-9\">{{ entreprise.dateCessation ? entreprise.dateCessation|date('d/m/Y') : '' }}</div>
</div>
{% endif %}
<div class=\"row mb-3 d-none\">
<div class=\"col-3 text-bold\">Identifiant comptable</div>
<div class=\"col-9\">{{ entreprise.identifiantCompta }}</div>
</div>
</div>
</div>
</div>
<div class=\"col-12 col-lg-6 mt-4 mt-lg-0\">
<div class=\"h-100\">
<div class=\"card\">
<div class=\"card-header card-header-dark\">
<div class=\"pb-2\">Adresse du siège social</div>
</div>
<div class=\"card-body\">
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Adresse:</span>
<span>{{ entreprise.adresse is not empty ? entreprise.adresse : '' }}</span>
</div>
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Adresse compl.:</span>
<span>{{ entreprise.adresse2 is not empty ? entreprise.adresse2 : '' }}</span>
</div>
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Code postal:</span>
<span>{{ entreprise.codePostal is not empty ? entreprise.codePostal : '' }}</span>
</div>
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Ville:</span>
<span>{{ entreprise.ville is not empty ? entreprise.ville : '' }}</span>
</div>
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Département:</span>
<span>{{ entreprise.departement is not null ? entreprise.departement.nom : '' }}</span>
</div>
<div class=\"mb-2\">
<span class=\"text-bold show-label\">Région:</span>
<span>{{ entreprise.departement is not null and entreprise.departement.regions is not null ? entreprise.departement.regions.first.nom : '' }}</span>
</div>
</div>
</div>
<div class=\"card mb-0\">
<div class=\"card-header card-header-dark\">
Fédération
</div>
<div class=\"card-body\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Syndicat de rattachement</div>
<div class=\"col-9\">{{ entreprise.syndicat.nom is defined ? entreprise.syndicat.nom : '' }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Région de rattachement</div>
<div class=\"col-9\">{{ entreprise.homeRegion ? entreprise.homeRegion.nom : '' }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Groupe entreprise</div>
<div class=\"col-9\">{{ entreprise.groupeEntreprise ? entreprise.groupeEntreprise.nom : '' }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Commission</div>
<div class=\"col-9\">{{ entreprise.commission ? entreprise.commission.nom : '' }}</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% if entreprise.firmType.tag in ['trader', 'transporter'] %}
<div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Etablissement(s) / Centres de rassemblement
{% if is_granted('ROLE_ADMIN') %}
<a href=\"{{ path('add_establishment', {id: entreprise.id}) }}\" class=\"float-end text-white\">
<i class=\"fas fa-plus fa-2x\"></i>
</a>
{% endif %}
</div>
<div class=\"card-body\">
<div class=\"table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>Type</th>
<th>Tél</th>
<th>Email</th>
<th>N° siret</th>
<th>Code EDE</th>
<th>Adresse</th>
<th>Département</th>
<th>Date de cessation</th>
<th class=\"text-center\">Actions</th>
</tr>
</thead>
<tbody>
{% for key, etablissement in entreprise.etablissements %}
<tr>
<td>{{ etablissement.siegeSocial ? '<strong class=\"text-primary\">Siège social</strong>'|raw : 'Etablissement' }}</td>
<td>{{ etablissement.telBureau1 }}</td>
<td>{{ etablissement.emailBureau }}</td>
<td>{{ etablissement.codeSiret }}</td>
<td>{{ etablissement.codeEde }}</td>
<td>
{{ etablissement.adresse }}<br>
{{ etablissement.codePostal }}<br>
{{ etablissement.ville }}
</td>
<td>{{ etablissement.departement ? etablissement.departement.nom : '' }}</td>
<td>{{ etablissement.dateCessation ? etablissement.dateCessation|date('d/m/Y') }}</td>
<td class=\"text-center\">
<button class=\"btn btn-outline-secondary btn-icon btn-rounded dropdown-toggle custom-dropdown\" type=\"button\" id=\"dropdownMenu_{{ key }}\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
<i class=\"fa-solid fa-ellipsis\"></i>
</button>
<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_{{ key }}\">
<li>
<a class=\"dropdown-item\" href=\"{{ path('show_establishment', {id: etablissement.id }) }}\">
<i class=\"fas fa-eye\"></i> Visualiser
</a>
</li>
{% if is_granted('ROLE_ADMIN') %}
<li>
<a class=\"dropdown-item\" href=\"{{ path('edit_establishment', {id: etablissement.id}) }}\">
<i class=\"fas fa-edit\"></i> Editer
</a>
</li>
<li>
<a
class=\"dropdown-item\"
href=\"{{ path('delete_establishment', {id: etablissement.id}) }}\"
data-controller=\"confirm-delete\"
data-confirm-delete-url-value=\"{{ path('delete_establishment', {id: etablissement.id}) }}\"
data-confirm-delete-message-value=\"Etes-vous sûr de vouloir supprimer cet établissement ?\"
data-confirm-delete-token-value=\"{{ csrf_token('etablissement_' ~ etablissement.id) }}\"
data-confirm-delete-action-value=\"delete_line\"
>
<i class=\"fas fa-trash\"></i> Supprimer
</a>
</li>
{% endif %}
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endif %}
{% if
entreprise.firmType.tag in ['trader', 'transporter'] and
is_granted('ROLE_BOARD_DIRECTOR') == false and
is_granted('ROLE_REGIONAL_AGENT') == false and
is_granted('ROLE_UNION_PRESIDENT') == false
%}
<div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Secteur d'activité
</div>
<div class=\"card-body\">
{% set totalSpecies = 0 %}
<div class=\"row mb-3\">
<div class=\"col-3 col-lg-1 text-bold\">Espèce(s)</div>
<div class=\"col-9 col-lg-11\">
{% if entreprise.entrepriseActivities|length == 0 %}
Aucune espèce
{% else %}
{% for firmActivity in entreprise.entrepriseActivities %}
{% if firmActivity.checked and firmActivity.activity.isEnabled %}
{# <span class=\"badge bg-primary p-2\">{{firmActivity.activity.nom|capitalize ~ (entreprise.isTransporter == false ? ' - ' ~ firmActivity.number)}}</span> #}
<span class=\"badge bg-primary p-2\">{{firmActivity.activity.nom|capitalize ~ (entreprise.firmType.tag == 'trader' ? ' - ' ~ firmActivity.number)}}</span>
{% set totalSpecies = totalSpecies + firmActivity.number %}
{% endif %}
{% endfor %}
{% endif %}
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 col-lg-1 text-bold\">Volume total</div>
<div class=\"col-9 col-lg-11\">{{ entreprise.totalCountSpecies }}</div>
</div>
{% if entreprise.firmType.tag == 'transporter' %}
<hr>
<div class=\"row\">
<div class=\"col-12 col-lg-3 d-none\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Autre activité</div>
<div class=\"col-7\">
{{ entreprise.autreActivite ?? '<i><small>Aucune</small></i>' }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">N° agrément transport</div>
<div class=\"col-7\">
{{ entreprise.transporteur ? entreprise.transporteur.numAgrementTransport }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Nb de Licence Transport interne</div>
<div class=\"col-7\">
{{ entreprise.transporteur ? entreprise.transporteur.nombreLicenseInterne }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Nb de Licence intracommunautaire</div>
<div class=\"col-7\">
{{ entreprise.transporteur ? entreprise.transporteur.nombreLicenceIntracom }}
</div>
</div>
</div>
</div>
{% else %}
{% if totalSpecies != entreprise.totalCountSpecies %}
<div class=\"alert alert-warning\">
Le volume total est différent de la somme des volumes par espèce
</div>
{% endif %}
<hr>
<div class=\"row\">
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Autre activité</div>
<div class=\"col-7\">
{{ entreprise.autreActivite ?? '<i><small>Aucune</small></i>' }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-3 d-none\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Volume d'animaux</div>
<div class=\"col-7\">
{{ entreprise.volumeAnimaux }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-3 d-none\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Autre spécialité</div>
<div class=\"col-7\">
{{ entreprise.autreSpecialite }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">Transport pour autrui</div>
<div class=\"col-7\">
{{ entreprise.transportPourAutrui ? \"oui\"|upper : \"non\" }}
</div>
</div>
</div>
</div>
{#
<hr>
<div class=\"row\">
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">EDE Négoce</div>
<div class=\"col-7\">
{{ entreprise.numEdeNegoce }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">EDE Centre Rassemblement</div>
<div class=\"col-7\">
{{ entreprise.numEdeCentre }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-3\">
<div class=\"row mb-3\">
<div class=\"col-5 text-bold\">EDE Elevage</div>
<div class=\"col-7\">
{{ entreprise.numEdeElevage }}
</div>
</div>
</div>
</div>
#}
{% endif %}
<hr>
<div class=\"row mb-3\">
<div class=\"col-3 col-lg-1 text-bold\">Nb employés</div>
<div class=\"col-9 col-lg-11\">
{{ entreprise.nombreEmployes }}
</div>
</div>
</div>
</div>
{% endif %}
<div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Contacts
{% if is_granted('ROLE_ADMIN') %}
<a href=\"{{ path('add_contact_from_firm', {id: entreprise.id}) }}\" class=\"float-end text-white\">
<i class=\"fas fa-plus fa-2x\"></i>
</a>
{% endif %}
</div>
<div class=\"card-body\">
<div class=\"table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>Type</th>
<th>Nom</th>
<th>Prénom</th>
<th>Email</th>
<th>Tél. portable</th>
<th>Commission</th>
<th>Conseil admin.</th>
<th>Repères</th>
<th>Privil.</th>
<th>Utilisateur extranet ?</th>
<th class=\"text-center\">Action(s)</th>
</tr>
</thead>
<tbody>
{% for key, contact in entreprise.contacts %}
{% if contact.status != constant('App\\\\Entity\\\\Contact::STATUS_ARCHIVED') %}
<tr>
<td class=\"text-bold\">{{ (contact.isResponsible ? '<span class=\"text-success\">Responsable</span>' : 'Employé')|raw }}</td>
<td>{{ contact.nom }}</td>
<td>{{ contact.prenom }}</td>
<td>{{ contact.emailContact }}</td>
<td>{{ contact.telPortable }}</td><td>
<ul class=\"\">
{% for commission in contact.commissionsContacts %}
<li>{{ commission.commission.nom }}</li>
{% endfor %}
</ul>
</td>
<td>
<ul class=\"\">
{% for contactConseilAdministration in contact.contactConseilAdministrations %}
<li>{{ contactConseilAdministration.conseilAdministration.role }}</li>
{% endfor %}
</ul>
</td>
<td>
<ul class=\"\">
{% for repere in contact.repere %}
<li>{{ repere.nom }}</li>
{% endfor %}
</ul>
</td>
<td class=\"text-bold\">{{ contact.isPrivileged ? 'Oui' : 'Non' }}</td>
<td class=\"text-bold\">{{ contact.user is not null ? 'Oui (#' ~ contact.user.id ~ ')' : 'Non' }}</td>
<td class=\"text-center\">
<button class=\"btn btn-outline-secondary btn-icon btn-rounded dropdown-toggle custom-dropdown\" type=\"button\" id=\"dropdownMenu_{{ key }}\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
<i class=\"fa-solid fa-ellipsis\"></i>
</button>
<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu_{{ key }}\">
<li>
<a class=\"dropdown-item\" href=\"{{ path('show_contact', {id: contact.id }) }}\">
<i class=\"fas fa-eye\"></i> Visualiser
</a>
</li>
{% if is_granted('ROLE_ADMIN') %}
<li>
<a class=\"dropdown-item\" href=\"{{ path('edit_contact_from_firm', {id: contact.id}) }}\">
<i class=\"fas fa-edit\"></i> Editer
</a>
</li>
<li>
<a
class=\"dropdown-item\"
href=\"#\"
data-controller=\"confirm-delete\"
data-confirm-delete-url-value=\"{{ path('archive_contact', {id: contact.id}) }}\"
data-confirm-delete-message-value=\"Etes-vous sûr de vouloir archiver ce contact ?\"
data-confirm-delete-token-value=\"{{ csrf_token('contact_' ~ contact.id) }}\"
data-confirm-delete-action-value=\"delete_line\"
>
<i class=\"fas fa-archive\"></i> Archiver
</a>
</li>
{% endif %}
</ul>
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% if
entreprise.firmType.tag in ['trader', 'transporter'] and
is_granted('ROLE_BOARD_DIRECTOR') == false and
is_granted('ROLE_REGIONAL_AGENT') == false and
is_granted('ROLE_UNION_PRESIDENT') == false
%}
<div class=\"card mb-4 d-none\">
<div class=\"card-header card-header-dark\">
Adhésion
</div>
<div class=\"card-body\">
<div class=\"row\">
<div class=\"col-12 col-lg-6\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Souhaite adhérer ?</div>
<div class=\"col-9\">
{{ entreprise.souhaiteAdherer ? '<span class=\"text-bold text-success\">Oui</span>' : 'Non' }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-6\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Figurer dans l'annuaire ?</div>
<div class=\"col-9\">
{{ entreprise.figurerAnnuaireAdherents ? '<span class=\"text-bold text-success\">Oui</span>' : 'Non' }}
</div>
</div>
</div>
</div>
{% if entreprise.raisonNonAdhesion is not null and entreprise.raisonNonAdhesion|trim != '' %}
<div class=\"row mt-3\">
<div class=\"col-12 col-lg-6\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Raison de non adhésion</div>
<div class=\"col-9\">
{{ entreprise.raisonNonAdhesion }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-6\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\"></div>
<div class=\"col-9\">
{{ entreprise.raisonNonAdhesionAutre }}
</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endif %}
{% if entreprise.firmType.tag in ['trader', 'transporter'] %}
<div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
QUALI NEGOCE
</div>
<div class=\"card-body\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Quali Négoce ?</div>
<div class=\"col-9\">
{{ entreprise.isQualiNegoce ? '<span class=\"text-bold text-success\">Oui</span>' : 'Non' }}
</div>
</div>
<div class=\"row\">
<div class=\"col-12 col-lg-4 mb-3\">
<div class=\"row\">
<div class=\"col-3 text-bold\">Date de certification</div>
<div class=\"col-9\">
{{ entreprise.qualiNegoceCertificationDate ? entreprise.qualiNegoceCertificationDate|date('d/m/Y') }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-4 mb-3\">
<div class=\"row\">
<div class=\"col-3 text-bold\">Date pre audit</div>
<div class=\"col-9\">
{{ entreprise.qualiNegocePreAuditDate ? entreprise.qualiNegocePreAuditDate|date('d/m/Y') }}
</div>
</div>
</div>
<div class=\"col-12 col-lg-4 mb-3\">
<div class=\"row\">
<div class=\"col-3 text-bold\">Date d’audit intermédiaire</div>
<div class=\"col-9\">
{{ entreprise.qualiNegoceCertificationDate ? entreprise.qualiNegoceCertificationDate|date_modify(\"+18 month\")|date('d/m/Y') }}
</div>
</div>
</div>
</div>
<hr class=\"mb-4\">
<h4 class=\"mt-4 mb-3\">Nom du / des référent(s)</h4>
<div class=\"table-responsive\">
<table class=\"w-100\" id=\"quali-negoce-contacts\">
<tbody>
{% for firmContactQualiNegoce in entreprise.firmContactQualiNegoces %}
<tr>
<td>
{{ firmContactQualiNegoce.contact.fullname }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<hr class=\"mb-4\">
<h4 class=\"mt-4 mb-3\">Mes documents Quali Negoce</h4>
<div class=\"table-responsive\">
<table class=\"w-100\" id=\"quali-negoce-document\">
<tbody>
{% for document in entreprise.firmQualiNegoceDocuments %}
<tr>
<td>
<a href=\"{{ vich_uploader_asset(document, 'documentFile') }}\" target=\"_blank\">{{ document.originalFileName }}</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endif %}
{% if
entreprise.firmType.tag in ['trader', 'transporter'] and
is_granted('ROLE_BOARD_DIRECTOR') == false and
is_granted('ROLE_REGIONAL_AGENT') == false and
is_granted('ROLE_UNION_PRESIDENT') == false
%}
<div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Chiffre d'affaires des 3 dernières années
</div>
<div class=\"card-body\">
{% set year = 'now'|date('Y')|cast_to_int %}
<div class=\"table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>Année</th>
<th>Chiffre d'affaire</th>
<th>Type cotisation</th>
<th>Montant cotisation</th>
<th>Option(s)</th>
</tr>
</thead>
<tbody>
{% for i in [0, 1, 2] %}
{% set cotisation = entreprise.getCotisationByYear(year - i) %}
<tr>
<td>{{ year - i }}</td>
<td>{{ cotisation and cotisation.revenue > 0 ? cotisation.revenue|number_format(2, ',', ' ') ~ ' €' : 'Pas de chiffre d\\'affaire renseigné pour l\\'année ' ~ (year - i) }}</td>
<td>{{ cotisation and cotisation.cotisationType ? cotisation.cotisationType.name }}</td>
<td>{{ cotisation ? cotisation.priceTtc|number_format(2, ',', ' ') ~ ' €' }}</td>
<td>
{% if cotisation %}
<div>Import / Export: {{ cotisation.optionImportExport > 0 ? 'Oui' : 'Non' }}</div>
<div>Mapa: {{ cotisation.optionMapa ? 'Oui' : 'Non' }}</div>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endif %}
{% if
is_granted('ROLE_BOARD_DIRECTOR') == false and
is_granted('ROLE_REGIONAL_AGENT') == false and
is_granted('ROLE_UNION_PRESIDENT') == false
%}
<div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Commentaire
</div>
<div class=\"card-body\">
<div class=\"mb-2\">
<div class=\"text-bold show-label\">Commentaire:</div>
<div class=\"mt-3\">{{ entreprise.commentaires|raw }}</div>
</div>
</div>
</div>
{% endif %}
<div class=\"card mb-4\">
<div class=\"card-header card-header-dark\">
Liaison(s) entreprise
</div>
<div class=\"card-body\">
<div class=\"table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>Entreprise source</th>
<th>Type</th>
<th>Entreprise cible</th>
<th>Date</th>
<th>Commentaire</th>
</tr>
</thead>
<tbody>
{% for fromMe in linkedFirmWithFromMe %}
<tr>
<td>
<a href=\"{{ path('show_entreprise', {id: fromMe.fromFirm.id}) }}\">
{{ fromMe.fromFirm.raisonSocial ~ ' (#' ~ fromMe.fromFirm.id ~ ')' }}
</a>
</td>
<td>{{ fromMe.type.name }}</td>
<td>
<a href=\"{{ path('show_entreprise', {id: fromMe.toFirm.id}) }}\">
{{ fromMe.toFirm.raisonSocial ~ ' (#' ~ fromMe.toFirm.id ~ ')' }}
</a>
</td>
<td>{{ fromMe.date ? fromMe.date|date('d/m/Y') }}</td>
<td>{{ fromMe.comment }}</td>
</tr>
{% endfor %}
{% for toMe in linkedFirmWithToMe %}
<tr>
<td>
<a href=\"{{ path('show_entreprise', {id: toMe.fromFirm.id}) }}\">
{{ toMe.fromFirm.raisonSocial ~ ' (#' ~ toMe.fromFirm.id ~ ')' }}
</a>
</td>
<td>{{ toMe.type.name }}</td>
<td>
<a href=\"{{ path('show_entreprise', {id: toMe.toFirm.id}) }}\">
{{ toMe.toFirm.raisonSocial ~ ' (#' ~ toMe.toFirm.id ~ ')' }}
</a>
</td>
<td>{{ toMe.date ? toMe.date|date('d/m/Y') }}</td>
<td>{{ toMe.comment }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}", "backend/entreprise/show.html.twig", "/var/www/html/symfony/templates/backend/entreprise/show.html.twig");
}
}