<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
/* front/catalog/product/view/stock.html.twig */
class __TwigTemplate_5b08d26711968a6f18d2b336e2cc2556 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "front/catalog/product/view/stock.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/catalog/product/view/stock.html.twig"));
// line 1
yield "<div class=\"stock\">
<div class=\"model\">";
// line 2
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TextExtension']->unpad(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 2, $this->source); })()), "modelSAP", [], "any", false, false, false, 2)), "html", null, true);
yield "</div>
";
// line 3
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 3, $this->source); })()), "isAvailable", [], "method", false, false, false, 3)) {
// line 4
yield " <span class=\"stock-status available green\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("disponible", [], "messages");
yield "</span>
";
} elseif (CoreExtension::getAttribute($this->env, $this->source, // line 5
(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 5, $this->source); })()), "isStopped", [], "method", false, false, false, 5)) {
// line 6
yield " <span class=\"stock-status unavailable red\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("PRODUIT ARRÊTÉ", [], "messages");
yield "</span>
";
} else {
// line 8
yield " <span class=\"stock-status unavailable orange\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("NON DISPONIBLE<br>IMMÉDIATEMENT", [], "messages");
yield "</span>
";
}
// line 10
yield "</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/catalog/product/view/stock.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 72 => 10, 66 => 8, 60 => 6, 58 => 5, 53 => 4, 51 => 3, 47 => 2, 44 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"stock\">
<div class=\"model\">{{ product.modelSAP|unpad }}</div>
{% if product.isAvailable() %}
<span class=\"stock-status available green\">{% trans %}disponible{% endtrans %}</span>
{% elseif product.isStopped() %}
<span class=\"stock-status unavailable red\">{% trans %}PRODUIT ARRÊTÉ{% endtrans %}</span>
{% else %}
<span class=\"stock-status unavailable orange\">{% trans %}NON DISPONIBLE<br>IMMÉDIATEMENT{% endtrans %}</span>
{% endif %}
</div>", "front/catalog/product/view/stock.html.twig", "/var/www/dogcat.com/v2-test/templates/front/catalog/product/view/stock.html.twig");
}
}