var/cache/dev/twig/f7/f78e9219c7862dedbd6062bed4bc96ee.php line 49

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* backend/cotisation/show.html.twig */
  14. class __TwigTemplate_682b2f06111395559e38e7b95e7eb620 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "backend/base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""backend/cotisation/show.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""backend/cotisation/show.html.twig"));
  39.         $this->parent $this->loadTemplate("backend/base.html.twig""backend/cotisation/show.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         // line 4
  55.         echo "    Cotisation ";
  56.         echo twig_escape_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.'4$this->source); })()), "year", [], "any"falsefalsefalse4) . ((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.'4$this->source); })()), "entreprise", [], "any"falsefalsefalse4)) ? ((" - " twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'4$this->source); })()), "entreprise", [], "any"falsefalsefalse4), "raisonSocial", [], "any"falsefalsefalse4))) : (""))), "html"nulltrue);
  57.         echo "
  58. ";
  59.         
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  61.         
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  63.     }
  64.     // line 7
  65.     public function block_content($context, array $blocks = [])
  66.     {
  67.         $macros $this->macros;
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  72.         // line 8
  73.         echo "    ";
  74.         $this->loadTemplate("backend/cotisation/show.html.twig""backend/cotisation/show.html.twig"8"2143532471")->display(twig_array_merge($context, ["datas" => [=> ["label" => "Cotisations""url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("advanced_search", ["entity" => "cotisation"])], => ["label" => ((((twig_get_attribute($this->env$this->source,         // line 13
  75. (isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'13$this->source); })()), "year", [], "any"falsefalsefalse13) . ((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.'13$this->source); })()), "entreprise", [], "any"falsefalsefalse13)) ? ((" - " twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'13$this->source); })()), "entreprise", [], "any"falsefalsefalse13), "raisonSocial", [], "any"falsefalsefalse13))) : (""))) . " (#") . 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.'13$this->source); })()), "id", [], "any"falsefalsefalse13)) . ")")]], "buttons" => [=> ["display" => (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_UPDATE_ENTITY")) ? (true) : (false)), "url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edit_cotisation", ["id" => twig_get_attribute($this->env$this->source,         // line 18
  76. (isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'18$this->source); })()), "id", [], "any"falsefalsefalse18)]), "class" => "btn btn-sm btn-primary""icon" => "fas fa-edit""label" => "Modifier"]]]));
  77.         // line 44
  78.         echo "
  79.     ";
  80.         // line 45
  81.         $this->loadTemplate("common/cotisation/_summary_cotisation.html.twig""backend/cotisation/show.html.twig"45)->display(twig_array_merge($context, ["title" => ((("Cotisation " . (( !(null === twig_get_attribute($this->env$this->source,         // line 46
  82. (isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'46$this->source); })()), "cotisationType", [], "any"falsefalsefalse46))) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'46$this->source); })()), "cotisationType", [], "any"falsefalsefalse46), "name", [], "any"falsefalsefalse46)) : (""))) . " ") . 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.'46$this->source); })()), "year", [], "any"falsefalsefalse46)), "displayStatus" => true"displayPaymentDate" => true"displayFirm" => true"displayComment" => true"displayProofOfPayment" => true]));
  83.         
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  85.         
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  87.     }
  88.     public function getTemplateName()
  89.     {
  90.         return "backend/cotisation/show.html.twig";
  91.     }
  92.     public function isTraitable()
  93.     {
  94.         return false;
  95.     }
  96.     public function getDebugInfo()
  97.     {
  98.         return array (  101 => 46,  100 => 45,  97 => 44,  95 => 18,  94 => 13,  92 => 8,  82 => 7,  69 => 4,  59 => 3,  36 => 1,);
  99.     }
  100.     public function getSourceContext()
  101.     {
  102.         return new Source("{% extends 'backend/base.html.twig' %}
  103. {% block title %}
  104.     Cotisation {{ cotisation.year ~ (cotisation.entreprise ? ' - ' ~ cotisation.entreprise.raisonSocial) }}
  105. {% endblock %}
  106. {% block content %}
  107.     {% embed 'backend/partials/_breadcrumb.html.twig' with {
  108.         datas: [{
  109.             label: 'Cotisations',
  110.             url: path('advanced_search', {entity: 'cotisation'})
  111.         }, {
  112.             label: cotisation.year ~ (cotisation.entreprise ? ' - ' ~ cotisation.entreprise.raisonSocial) ~ ' (#' ~ cotisation.id ~ ')'
  113.         }],
  114.         buttons: [
  115.             {
  116.                 display: is_granted('ROLE_UPDATE_ENTITY') ? true : false,
  117.                 url: path('edit_cotisation', {'id': cotisation.id}),
  118.                 class: 'btn btn-sm btn-primary',
  119.                 icon: 'fas fa-edit',
  120.                 label: 'Modifier'
  121.             }
  122.         ]
  123.     } %}
  124.         {% block other_button_after %}
  125.             {% if
  126.                 (cotisation.associetedOrder.status ?? '') in [
  127.                     constant('App\\\\Entity\\\\Order::STATUS_WAITING_PAYMENT'),
  128.                     constant('App\\\\Entity\\\\Order::STATUS_PAID'),
  129.                     constant('App\\\\Entity\\\\Order::STATUS_SHIPPED'),
  130.                     constant('App\\\\Entity\\\\Order::STATUS_TREATED'),
  131.                 ]
  132.             %}
  133.                 <a
  134.                         href=\"{{ path('download_invoice', {id: cotisation.associetedOrder.id}) }}\"
  135.                         target=\"_blank\"
  136.                         class=\"btn btn-sm btn-primary\"
  137.                 >
  138.                     <i class=\"fa-solid fa-download\"></i> Facture (pdf)
  139.                 </a>
  140.             {% endif %}
  141.         {% endblock %}
  142.     {% endembed %}
  143.     {% include 'common/cotisation/_summary_cotisation.html.twig' with {
  144.         title: 'Cotisation ' ~ (cotisation.cotisationType is not null ? cotisation.cotisationType.name) ~ ' ' ~ cotisation.year,
  145.         displayStatus: true,
  146.         displayPaymentDate: true,
  147.         displayFirm: true,
  148.         displayComment: true,
  149.         displayProofOfPayment: true
  150.     } %}
  151. {% endblock %}
  152. ""backend/cotisation/show.html.twig""/var/www/html/symfony/templates/backend/cotisation/show.html.twig");
  153.     }
  154. }
  155. /* backend/cotisation/show.html.twig */
  156. class __TwigTemplate_682b2f06111395559e38e7b95e7eb620___2143532471 extends Template
  157. {
  158.     private $source;
  159.     private $macros = [];
  160.     public function __construct(Environment $env)
  161.     {
  162.         parent::__construct($env);
  163.         $this->source $this->getSourceContext();
  164.         $this->blocks = [
  165.             'other_button_after' => [$this'block_other_button_after'],
  166.         ];
  167.     }
  168.     protected function doGetParent(array $context)
  169.     {
  170.         // line 8
  171.         return "backend/partials/_breadcrumb.html.twig";
  172.     }
  173.     protected function doDisplay(array $context, array $blocks = [])
  174.     {
  175.         $macros $this->macros;
  176.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""backend/cotisation/show.html.twig"));
  178.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  179.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""backend/cotisation/show.html.twig"));
  180.         $this->parent $this->loadTemplate("backend/partials/_breadcrumb.html.twig""backend/cotisation/show.html.twig"8);
  181.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  182.         
  183.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  184.         
  185.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  186.     }
  187.     // line 25
  188.     public function block_other_button_after($context, array $blocks = [])
  189.     {
  190.         $macros $this->macros;
  191.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  192.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""other_button_after"));
  193.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  194.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""other_button_after"));
  195.         // line 26
  196.         echo "            ";
  197.         if (twig_in_filter((((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 27
  198. ($context["cotisation"] ?? null), "associetedOrder", [], "any"falsetruefalse27), "status", [], "any"truetruefalse27) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["cotisation"] ?? null), "associetedOrder", [], "any"falsetruefalse27), "status", [], "any"falsefalsefalse27)))) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["cotisation"] ?? null), "associetedOrder", [], "any"falsetruefalse27), "status", [], "any"falsefalsefalse27)) : ("")), [=> twig_constant("App\\Entity\\Order::STATUS_WAITING_PAYMENT"), => twig_constant("App\\Entity\\Order::STATUS_PAID"), => twig_constant("App\\Entity\\Order::STATUS_SHIPPED"), => twig_constant("App\\Entity\\Order::STATUS_TREATED")])) {
  199.             // line 34
  200.             echo "                <a
  201.                         href=\"";
  202.             // line 35
  203.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("download_invoice", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["cotisation"]) || array_key_exists("cotisation"$context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.'35$this->source); })()), "associetedOrder", [], "any"falsefalsefalse35), "id", [], "any"falsefalsefalse35)]), "html"nulltrue);
  204.             echo "\"
  205.                         target=\"_blank\"
  206.                         class=\"btn btn-sm btn-primary\"
  207.                 >
  208.                     <i class=\"fa-solid fa-download\"></i> Facture (pdf)
  209.                 </a>
  210.             ";
  211.         }
  212.         // line 42
  213.         echo "        ";
  214.         
  215.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  216.         
  217.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  218.     }
  219.     public function getTemplateName()
  220.     {
  221.         return "backend/cotisation/show.html.twig";
  222.     }
  223.     public function isTraitable()
  224.     {
  225.         return false;
  226.     }
  227.     public function getDebugInfo()
  228.     {
  229.         return array (  258 => 42,  248 => 35,  245 => 34,  243 => 27,  241 => 26,  231 => 25,  208 => 8,  101 => 46,  100 => 45,  97 => 44,  95 => 18,  94 => 13,  92 => 8,  82 => 7,  69 => 4,  59 => 3,  36 => 1,);
  230.     }
  231.     public function getSourceContext()
  232.     {
  233.         return new Source("{% extends 'backend/base.html.twig' %}
  234. {% block title %}
  235.     Cotisation {{ cotisation.year ~ (cotisation.entreprise ? ' - ' ~ cotisation.entreprise.raisonSocial) }}
  236. {% endblock %}
  237. {% block content %}
  238.     {% embed 'backend/partials/_breadcrumb.html.twig' with {
  239.         datas: [{
  240.             label: 'Cotisations',
  241.             url: path('advanced_search', {entity: 'cotisation'})
  242.         }, {
  243.             label: cotisation.year ~ (cotisation.entreprise ? ' - ' ~ cotisation.entreprise.raisonSocial) ~ ' (#' ~ cotisation.id ~ ')'
  244.         }],
  245.         buttons: [
  246.             {
  247.                 display: is_granted('ROLE_UPDATE_ENTITY') ? true : false,
  248.                 url: path('edit_cotisation', {'id': cotisation.id}),
  249.                 class: 'btn btn-sm btn-primary',
  250.                 icon: 'fas fa-edit',
  251.                 label: 'Modifier'
  252.             }
  253.         ]
  254.     } %}
  255.         {% block other_button_after %}
  256.             {% if
  257.                 (cotisation.associetedOrder.status ?? '') in [
  258.                     constant('App\\\\Entity\\\\Order::STATUS_WAITING_PAYMENT'),
  259.                     constant('App\\\\Entity\\\\Order::STATUS_PAID'),
  260.                     constant('App\\\\Entity\\\\Order::STATUS_SHIPPED'),
  261.                     constant('App\\\\Entity\\\\Order::STATUS_TREATED'),
  262.                 ]
  263.             %}
  264.                 <a
  265.                         href=\"{{ path('download_invoice', {id: cotisation.associetedOrder.id}) }}\"
  266.                         target=\"_blank\"
  267.                         class=\"btn btn-sm btn-primary\"
  268.                 >
  269.                     <i class=\"fa-solid fa-download\"></i> Facture (pdf)
  270.                 </a>
  271.             {% endif %}
  272.         {% endblock %}
  273.     {% endembed %}
  274.     {% include 'common/cotisation/_summary_cotisation.html.twig' with {
  275.         title: 'Cotisation ' ~ (cotisation.cotisationType is not null ? cotisation.cotisationType.name) ~ ' ' ~ cotisation.year,
  276.         displayStatus: true,
  277.         displayPaymentDate: true,
  278.         displayFirm: true,
  279.         displayComment: true,
  280.         displayProofOfPayment: true
  281.     } %}
  282. {% endblock %}
  283. ""backend/cotisation/show.html.twig""/var/www/html/symfony/templates/backend/cotisation/show.html.twig");
  284.     }
  285. }