<?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/cotisation/show.html.twig */
class __TwigTemplate_682b2f06111395559e38e7b95e7eb620 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/cotisation/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/cotisation/show.html.twig"));
$this->parent = $this->loadTemplate("backend/base.html.twig", "backend/cotisation/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"));
// line 4
echo " Cotisation ";
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", false, false, false, 4) . ((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", false, false, false, 4)) ? ((" - " . 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.', 4, $this->source); })()), "entreprise", [], "any", false, false, false, 4), "raisonSocial", [], "any", false, false, false, 4))) : (""))), "html", null, true);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 7
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 8
echo " ";
$this->loadTemplate("backend/cotisation/show.html.twig", "backend/cotisation/show.html.twig", 8, "2143532471")->display(twig_array_merge($context, ["datas" => [0 => ["label" => "Cotisations", "url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("advanced_search", ["entity" => "cotisation"])], 1 => ["label" => ((((twig_get_attribute($this->env, $this->source, // line 13
(isset($context["cotisation"]) || array_key_exists("cotisation", $context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.', 13, $this->source); })()), "year", [], "any", false, false, false, 13) . ((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", false, false, false, 13)) ? ((" - " . 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.', 13, $this->source); })()), "entreprise", [], "any", false, false, false, 13), "raisonSocial", [], "any", false, false, false, 13))) : (""))) . " (#") . 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", false, false, false, 13)) . ")")]], "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_cotisation", ["id" => twig_get_attribute($this->env, $this->source, // line 18
(isset($context["cotisation"]) || array_key_exists("cotisation", $context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.', 18, $this->source); })()), "id", [], "any", false, false, false, 18)]), "class" => "btn btn-sm btn-primary", "icon" => "fas fa-edit", "label" => "Modifier"]]]));
// line 44
echo "
";
// line 45
$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
(isset($context["cotisation"]) || array_key_exists("cotisation", $context) ? $context["cotisation"] : (function () { throw new RuntimeError('Variable "cotisation" does not exist.', 46, $this->source); })()), "cotisationType", [], "any", false, false, false, 46))) ? (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.', 46, $this->source); })()), "cotisationType", [], "any", false, false, false, 46), "name", [], "any", false, false, false, 46)) : (""))) . " ") . 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", false, false, false, 46)), "displayStatus" => true, "displayPaymentDate" => true, "displayFirm" => true, "displayComment" => true, "displayProofOfPayment" => true]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "backend/cotisation/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 101 => 46, 100 => 45, 97 => 44, 95 => 18, 94 => 13, 92 => 8, 82 => 7, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'backend/base.html.twig' %}
{% block title %}
Cotisation {{ cotisation.year ~ (cotisation.entreprise ? ' - ' ~ cotisation.entreprise.raisonSocial) }}
{% endblock %}
{% block content %}
{% embed 'backend/partials/_breadcrumb.html.twig' with {
datas: [{
label: 'Cotisations',
url: path('advanced_search', {entity: 'cotisation'})
}, {
label: cotisation.year ~ (cotisation.entreprise ? ' - ' ~ cotisation.entreprise.raisonSocial) ~ ' (#' ~ cotisation.id ~ ')'
}],
buttons: [
{
display: is_granted('ROLE_UPDATE_ENTITY') ? true : false,
url: path('edit_cotisation', {'id': cotisation.id}),
class: 'btn btn-sm btn-primary',
icon: 'fas fa-edit',
label: 'Modifier'
}
]
} %}
{% block other_button_after %}
{% if
(cotisation.associetedOrder.status ?? '') in [
constant('App\\\\Entity\\\\Order::STATUS_WAITING_PAYMENT'),
constant('App\\\\Entity\\\\Order::STATUS_PAID'),
constant('App\\\\Entity\\\\Order::STATUS_SHIPPED'),
constant('App\\\\Entity\\\\Order::STATUS_TREATED'),
]
%}
<a
href=\"{{ path('download_invoice', {id: cotisation.associetedOrder.id}) }}\"
target=\"_blank\"
class=\"btn btn-sm btn-primary\"
>
<i class=\"fa-solid fa-download\"></i> Facture (pdf)
</a>
{% endif %}
{% endblock %}
{% endembed %}
{% include 'common/cotisation/_summary_cotisation.html.twig' with {
title: 'Cotisation ' ~ (cotisation.cotisationType is not null ? cotisation.cotisationType.name) ~ ' ' ~ cotisation.year,
displayStatus: true,
displayPaymentDate: true,
displayFirm: true,
displayComment: true,
displayProofOfPayment: true
} %}
{% endblock %}
", "backend/cotisation/show.html.twig", "/var/www/html/symfony/templates/backend/cotisation/show.html.twig");
}
}
/* backend/cotisation/show.html.twig */
class __TwigTemplate_682b2f06111395559e38e7b95e7eb620___2143532471 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 8
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/cotisation/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/cotisation/show.html.twig"));
$this->parent = $this->loadTemplate("backend/partials/_breadcrumb.html.twig", "backend/cotisation/show.html.twig", 8);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 25
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 26
echo " ";
if (twig_in_filter((((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 27
($context["cotisation"] ?? null), "associetedOrder", [], "any", false, true, false, 27), "status", [], "any", true, true, false, 27) && !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["cotisation"] ?? null), "associetedOrder", [], "any", false, true, false, 27), "status", [], "any", false, false, false, 27)))) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["cotisation"] ?? null), "associetedOrder", [], "any", false, true, false, 27), "status", [], "any", false, false, false, 27)) : ("")), [0 => twig_constant("App\\Entity\\Order::STATUS_WAITING_PAYMENT"), 1 => twig_constant("App\\Entity\\Order::STATUS_PAID"), 2 => twig_constant("App\\Entity\\Order::STATUS_SHIPPED"), 3 => twig_constant("App\\Entity\\Order::STATUS_TREATED")])) {
// line 34
echo " <a
href=\"";
// line 35
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("download_invoice", ["id" => 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.', 35, $this->source); })()), "associetedOrder", [], "any", false, false, false, 35), "id", [], "any", false, false, false, 35)]), "html", null, true);
echo "\"
target=\"_blank\"
class=\"btn btn-sm btn-primary\"
>
<i class=\"fa-solid fa-download\"></i> Facture (pdf)
</a>
";
}
// line 42
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "backend/cotisation/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'backend/base.html.twig' %}
{% block title %}
Cotisation {{ cotisation.year ~ (cotisation.entreprise ? ' - ' ~ cotisation.entreprise.raisonSocial) }}
{% endblock %}
{% block content %}
{% embed 'backend/partials/_breadcrumb.html.twig' with {
datas: [{
label: 'Cotisations',
url: path('advanced_search', {entity: 'cotisation'})
}, {
label: cotisation.year ~ (cotisation.entreprise ? ' - ' ~ cotisation.entreprise.raisonSocial) ~ ' (#' ~ cotisation.id ~ ')'
}],
buttons: [
{
display: is_granted('ROLE_UPDATE_ENTITY') ? true : false,
url: path('edit_cotisation', {'id': cotisation.id}),
class: 'btn btn-sm btn-primary',
icon: 'fas fa-edit',
label: 'Modifier'
}
]
} %}
{% block other_button_after %}
{% if
(cotisation.associetedOrder.status ?? '') in [
constant('App\\\\Entity\\\\Order::STATUS_WAITING_PAYMENT'),
constant('App\\\\Entity\\\\Order::STATUS_PAID'),
constant('App\\\\Entity\\\\Order::STATUS_SHIPPED'),
constant('App\\\\Entity\\\\Order::STATUS_TREATED'),
]
%}
<a
href=\"{{ path('download_invoice', {id: cotisation.associetedOrder.id}) }}\"
target=\"_blank\"
class=\"btn btn-sm btn-primary\"
>
<i class=\"fa-solid fa-download\"></i> Facture (pdf)
</a>
{% endif %}
{% endblock %}
{% endembed %}
{% include 'common/cotisation/_summary_cotisation.html.twig' with {
title: 'Cotisation ' ~ (cotisation.cotisationType is not null ? cotisation.cotisationType.name) ~ ' ' ~ cotisation.year,
displayStatus: true,
displayPaymentDate: true,
displayFirm: true,
displayComment: true,
displayProofOfPayment: true
} %}
{% endblock %}
", "backend/cotisation/show.html.twig", "/var/www/html/symfony/templates/backend/cotisation/show.html.twig");
}
}