<?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;
/* frontView/product/show.html.twig */
class __TwigTemplate_617131562bca3b8cf28135156a69bc65 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascripts' => [$this, 'block_javascripts'],
'stylesheets' => [$this, 'block_stylesheets'],
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "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", "frontView/product/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", "frontView/product/show.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "frontView/product/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 2
public function block_javascripts($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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 3
echo "\t";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("UtilityPhotoProductJs");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 6
public function block_stylesheets($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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 7
echo "\t";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
\t<style>
\t\t.product-specs-table {
\t\t\t--specs-border: #e1e8f0;
\t\t\t--specs-label: #1c2f49;
\t\t\t--specs-value: #718096;
\t\t\tborder: 1px solid var(--specs-border);
\t\t\tborder-radius: 0.75rem;
\t\t\toverflow: hidden;
\t\t\tborder-collapse: separate;
\t\t\tborder-spacing: 0;
\t\t\tbackground: #fff;
\t\t}
\t\t.product-specs-table thead th {
\t\t\tpadding: 1rem 1.25rem;
\t\t\tborder: 0;
\t\t\tbackground: #063f80;
\t\t\tcolor: #fff;
\t\t\tfont-size: 1.05rem;
\t\t\ttext-align: center;
\t\t}
\t\t.product-specs-table tbody th,
\t\t.product-specs-table tbody td {
\t\t\tpadding: 0.9rem 1.25rem;
\t\t\tborder-top: 1px solid var(--specs-border);
\t\t\tvertical-align: middle;
\t\t}
\t\t.product-specs-table tbody th {
\t\t\twidth: 34%;
\t\t\tcolor: var(--specs-label);
\t\t\tfont-weight: 700;
\t\t}
\t\t.product-specs-table tbody td {
\t\t\tcolor: var(--specs-value);
\t\t}
\t\t.product-specs-table tbody tr:nth-child(odd) {
\t\t\tbackground: #f8fafc;
\t\t}
\t\t.product-specs-table .product-type-badges {
\t\t\tdisplay: flex;
\t\t\tflex-wrap: wrap;
\t\t\tgap: 0.5rem;
\t\t}
\t\t.product-specs-table .product-type-badges .badge {
\t\t\tpadding: 0.55rem 0.8rem;
\t\t\tborder: 1px solid #d5e3f2;
\t\t\tborder-radius: 999px;
\t\t\tbackground: #edf6ff !important;
\t\t\tcolor: #064589 !important;
\t\t\tfont-weight: 600;
\t\t}
\t\t.product-detail-actions {
\t\t\tdisplay: flex;
\t\t\tflex-wrap: wrap;
\t\t\tgap: 0.65rem;
\t\t\tmargin-top: 1.25rem;
\t\t}
\t\t.product-detail-actions .button-contact {
\t\t\tmargin-bottom: 0 !important;
\t\t}
\t\t@media (max-width: 576px) {
\t\t\t.product-specs-table tbody th,
\t\t\t.product-specs-table tbody td {
\t\t\t\tpadding: 0.75rem;
\t\t\t}
\t\t\t.product-detail-actions .button-contact {
\t\t\t\twidth: 100%;
\t\t\t}
\t\t}
\t</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 90
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 "Produits";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 92
public function block_body($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", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 93
echo "<header>
";
// line 94
echo twig_include($this->env, $context, "@FrontView/menus.html.twig");
echo "
</header>
<main class=\"front-office-page front-office-detail\">
\t<div class=\"container\">
\t\t<div class=\"row py-2\">
\t\t\t<!-- Modal image show -->
\t\t\t<div class=\"modal fade\" id=\"listsmodalphoto\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
\t\t\t <div class=\"modal-dialog modal-dialog-centered\">
\t\t\t\t<div class=\"modal-content\">
\t\t\t\t\t<img class=\"imgproduct\" id=\"imgprincipalhide\" src=\"";
// line 103
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/products/" . twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 103, $this->source); })()), "picture", [], "any", false, false, false, 103))), "html", null, true);
echo "\">
\t\t\t\t</div>
\t\t\t </div>
\t\t\t</div>
\t\t\t<div class=\"col-md-2\">
\t\t\t\t";
// line 108
echo twig_include($this->env, $context, "@FrontView/menusgeneral.html.twig");
echo "
\t\t\t</div>
\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t<div class=\"album bg-custom-product py-4 border product-detail-shell\">
\t\t\t\t\t<div class=\"row mb-2 px-4\">
\t\t\t\t\t\t<div class=\"modal fade\" id=\"listsmodalphoto\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
\t\t\t\t\t\t <div class=\"modal-dialog modal-dialog-centered\">
\t\t\t\t\t\t\t<div class=\"modal-content\">
\t\t\t\t\t\t\t\t<img class=\"imgproduct\" id=\"imgprincipalhide\" src=\"#\" alt=\"test-image\">
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t
\t\t\t\t\t\t<div class=\"col-md-5\">
\t\t\t\t\t\t\t<input type=\"hidden\" id=\"product_id\" value=\"";
// line 122
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 122, $this->source); })()), "id", [], "any", false, false, false, 122), "html", null, true);
echo "\" />
\t\t\t\t\t\t\t<img class=\"imgproduct\" id=\"imgprincipal\" src=\"";
// line 123
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/products/" . twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 123, $this->source); })()), "picture", [], "any", false, false, false, 123))), "html", null, true);
echo "\" >
\t\t\t\t\t\t\t<div id=\"listimgproduct\">
\t\t\t\t\t\t\t\t<div class=\"row\" >
\t\t\t\t\t\t\t\t\t<div class=\"col-md-3 col-6 mt-1\">
\t\t\t\t\t\t\t\t\t\t\t<img class=\"imgproduct\" id=\"nano4\" src=\"";
// line 127
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/products/" . twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 127, $this->source); })()), "picture", [], "any", false, false, false, 127))), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t";
// line 130
$context["idimgs"] = 0;
// line 131
echo "\t\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 131, $this->source); })()), "linkspicturesArrays", [], "any", false, false, false, 131));
foreach ($context['_seq'] as $context["_key"] => $context["file"]) {
// line 132
echo "\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-3 col-6 mt-1\">
\t\t\t\t\t\t\t\t\t\t\t<img class=\"imgproduct\" id=\"img-";
// line 133
echo twig_escape_filter($this->env, (isset($context["idimgs"]) || array_key_exists("idimgs", $context) ? $context["idimgs"] : (function () { throw new RuntimeError('Variable "idimgs" does not exist.', 133, $this->source); })()), "html", null, true);
echo "\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/products/" . $context["file"])), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t";
// line 135
$context["idimgs"] = ((isset($context["idimgs"]) || array_key_exists("idimgs", $context) ? $context["idimgs"] : (function () { throw new RuntimeError('Variable "idimgs" does not exist.', 135, $this->source); })()) + 1);
// line 136
echo "\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['file'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"card mt-1\">
\t\t\t\t\t\t\t <div class=\"card-body\">
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t<h5 class=\"card-title text-center\">Whatsapp</h5>
\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\">
\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"https://wa.me/+261349313463?text=refchambrekiban\" class=\"btn btn-success\"><i class=\"bi bi-telephone-plus-fill\"></i> +261 34 93 134 63</a>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t </div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"col-md-7\">
\t\t\t\t\t\t\t<p> ";
// line 155
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 155, $this->source); })()), "title", [], "any", false, false, false, 155), "html", null, true);
echo "
\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t<div class=\"product-modules-card\">
\t\t\t\t\t\t\t\t<div class=\"product-modules-heading\">
\t\t\t\t\t\t\t\t\t<div><i class=\"fas fa-layer-group me-2\"></i>Modules inclus</div>
\t\t\t\t\t\t\t\t\t<span>";
// line 160
echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 160, $this->source); })()), "modulesForDisplay", [], "any", false, false, false, 160)), "html", null, true);
echo " module";
echo (((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 160, $this->source); })()), "modulesForDisplay", [], "any", false, false, false, 160)) > 1)) ? ("s") : (""));
echo "</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t";
// line 162
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 162, $this->source); })()), "modulesForDisplay", [], "any", false, false, false, 162)) > 0)) {
// line 163
echo "\t\t\t\t\t\t\t\t\t<div class=\"modules-table-scroll\">
\t\t\t\t\t\t\t\t\t\t<table class=\"table product-modules-table mb-0\">
\t\t\t\t\t\t\t\t\t\t\t<thead><tr><th>#</th><th>Module</th></tr></thead>
\t\t\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t\t";
// line 167
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 167, $this->source); })()), "modulesForDisplay", [], "any", false, false, false, 167));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
// line 168
echo "\t\t\t\t\t\t\t\t\t\t\t\t<tr><td>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 168), "html", null, true);
echo "</td><td>";
echo twig_escape_filter($this->env, $context["module"], "html", null, true);
echo "</td></tr>
\t\t\t\t\t\t\t\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 170
echo "\t\t\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t";
} else {
// line 174
echo "\t\t\t\t\t\t\t\t\t<div class=\"product-modules-empty\"><i class=\"fas fa-inbox\"></i><span>Aucun module renseigné pour ce produit.</span></div>
\t\t\t\t\t\t\t\t";
}
// line 176
echo "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<hr class=\"border-2\">
\t\t\t\t\t\t\t<table class=\"table product-specs-table mb-0\">
\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t <th class=\"text-center\" scope=\"col\" colspan=2>Fiche Produit</th>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t <th scope=\"row\">Catégorie</th>
\t\t\t\t\t\t\t\t\t <td><div class=\"row\">";
// line 187
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 187, $this->source); })()), "fkcategorie", [], "any", false, false, false, 187), "title", [], "any", false, false, false, 187), "html", null, true);
echo "</div></td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr class=\"d-none\">
\t\t\t\t\t\t\t\t\t <th scope=\"row\">À partir de</th>
\t\t\t\t\t\t\t\t\t ";
// line 201
echo "\t\t\t\t\t\t\t\t\t \t";
$context["price"] = twig_first($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 201, $this->source); })()), "priceProducts", [], "any", false, false, false, 201));
// line 202
echo "\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t";
// line 203
if ((isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 203, $this->source); })())) {
// line 204
echo "
\t\t\t\t\t\t\t\t\t\t\t";
// line 205
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_COM")) {
// line 206
echo " ";
$context["normalPrice"] = twig_get_attribute($this->env, $this->source, (isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 206, $this->source); })()), "priceCustomer", [], "any", false, false, false, 206);
// line 207
echo " ";
$context["promoPrice"] = twig_get_attribute($this->env, $this->source, (isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 207, $this->source); })()), "promoPriceCustomer", [], "any", false, false, false, 207);
// line 208
echo " ";
$context["minQty"] = null;
// line 209
echo "
\t\t\t\t\t\t\t\t\t\t\t";
} elseif ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_CUSTOMER")) {
// line 211
echo " ";
$context["normalPrice"] = twig_get_attribute($this->env, $this->source, (isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 211, $this->source); })()), "priceCustomer", [], "any", false, false, false, 211);
// line 212
echo " ";
$context["promoPrice"] = twig_get_attribute($this->env, $this->source, (isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 212, $this->source); })()), "promoPriceCustomer", [], "any", false, false, false, 212);
// line 213
echo " ";
$context["minQty"] = null;
// line 214
echo "
\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 216
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["normalPrice"] = twig_get_attribute($this->env, $this->source, (isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 216, $this->source); })()), "priceCustomer", [], "any", false, false, false, 216);
// line 217
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["promoPrice"] = twig_get_attribute($this->env, $this->source, (isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 217, $this->source); })()), "promoPriceCustomer", [], "any", false, false, false, 217);
// line 218
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["minQty"] = null;
// line 219
echo "\t\t\t\t\t\t\t\t\t\t\t";
}
// line 220
echo "
\t\t\t\t\t\t\t\t\t\t\t";
// line 221
if ((twig_get_attribute($this->env, $this->source, (isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 221, $this->source); })()), "isPromotionValid", [], "any", false, false, false, 221) && (isset($context["promoPrice"]) || array_key_exists("promoPrice", $context) ? $context["promoPrice"] : (function () { throw new RuntimeError('Variable "promoPrice" does not exist.', 221, $this->source); })()))) {
// line 222
echo "\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"marge-price text-muted\" style=\"text-decoration: line-through;\">
\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 223
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["normalPrice"]) || array_key_exists("normalPrice", $context) ? $context["normalPrice"] : (function () { throw new RuntimeError('Variable "normalPrice" does not exist.', 223, $this->source); })()), 2, ".", " "), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t\t\t<br>
\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"marge-price text-danger fw-bold\">
\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 227
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["promoPrice"]) || array_key_exists("promoPrice", $context) ? $context["promoPrice"] : (function () { throw new RuntimeError('Variable "promoPrice" does not exist.', 227, $this->source); })()), 2, ".", " "), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 230
echo "\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"marge-price\">
\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 231
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["normalPrice"]) || array_key_exists("normalPrice", $context) ? $context["normalPrice"] : (function () { throw new RuntimeError('Variable "normalPrice" does not exist.', 231, $this->source); })()), 2, ".", " "), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 234
echo "
\t\t\t\t\t\t\t\t\t\t\t";
// line 235
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 235, $this->source); })()), "fkdevise", [], "any", false, false, false, 235), "title", [], "any", false, false, false, 235), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
// line 237
if ((isset($context["minQty"]) || array_key_exists("minQty", $context) ? $context["minQty"] : (function () { throw new RuntimeError('Variable "minQty" does not exist.', 237, $this->source); })())) {
// line 238
echo "\t\t\t\t\t\t\t\t\t\t\t\t<br>
\t\t\t\t\t\t\t\t\t\t\t\t<small class=\"text-muted\">
\t\t\t\t\t\t\t\t\t\t\t\t\t(";
// line 240
echo twig_escape_filter($this->env, (isset($context["minQty"]) || array_key_exists("minQty", $context) ? $context["minQty"] : (function () { throw new RuntimeError('Variable "minQty" does not exist.', 240, $this->source); })()), "html", null, true);
echo ") produit(s) minimum
\t\t\t\t\t\t\t\t\t\t\t\t</small>
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 243
echo "
\t\t\t\t\t\t\t\t\t\t";
}
// line 245
echo "\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t <tr>
<th scope=\"row\">Type</th>
\t\t\t\t\t\t\t\t\t\t";
// line 258
echo "
<td><div class=\"product-type-badges\">";
// line 259
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 259, $this->source); })()), "statetypeLabels", [], "any", false, false, false, 259));
foreach ($context['_seq'] as $context["_key"] => $context["label"]) {
echo "<span class=\"badge bg-light text-dark\">";
echo twig_escape_filter($this->env, $context["label"], "html", null, true);
echo "</span>";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['label'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo "</div></td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t <tr>
\t\t\t\t\t\t\t\t\t\t<th scope=\"row\">Disponibilité</th>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t";
// line 264
if ((twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 264, $this->source); })()), "stock", [], "any", false, false, false, 264) > 0)) {
// line 265
echo "\t\t\t\t\t\t\t\t\t\t\t\tDisponible
\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 267
echo "\t\t\t\t\t\t\t\t\t\t\t\tDisponible sur commande
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 269
echo "\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t<div class=\"product-detail-actions\">
\t\t\t\t\t\t\t<a href=\"";
// line 276
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_contact", ["product_id" => twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 276, $this->source); })()), "id", [], "any", false, false, false, 276)]), "html", null, true);
echo "\" class=\"btn btn-success button-contact\"><i class=\"fas fa-file-invoice-dollar me-2\" aria-hidden=\"true\"></i>Demander un devis</a>
\t\t\t\t\t\t\t<a href=\"";
// line 277
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_demo", ["product_id" => twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 277, $this->source); })()), "id", [], "any", false, false, false, 277)]), "html", null, true);
echo "\" class=\"btn btn-primary button-contact\"><i class=\"fas fa-desktop me-2\" aria-hidden=\"true\"></i>Demander une démo</a>
\t\t\t\t\t\t\t<a class=\"d-none\" href=\"";
// line 278
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_product_panier", ["product" => twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 278, $this->source); })()), "id", [], "any", false, false, false, 278)]), "html", null, true);
echo "\"><button type=\"button\" class=\"btn btn-success button-contact mb-2\"><i class=\"fas fa-cart-plus me-2\" aria-hidden=\"true\"></i>Ajouter au panier</button></a>
\t\t\t\t\t\t\t<a class=\"d-none\" href=\"";
// line 279
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_product_list_panier");
echo "\"><button type=\"button\" class=\"btn btn-success button-contact mb-2\"><i class=\"fas fa-list-check me-2\" aria-hidden=\"true\"></i>Liste de mes commandes</button></a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
</main>
";
// line 289
echo twig_include($this->env, $context, "@FrontView/footer.html.twig");
echo "
<!-- <script src=\"";
// line 291
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/UtilityProductPoint.js"), "html", null, true);
echo "\"></script> -->
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "frontView/product/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 586 => 291, 581 => 289, 568 => 279, 564 => 278, 560 => 277, 556 => 276, 547 => 269, 543 => 267, 539 => 265, 537 => 264, 520 => 259, 517 => 258, 512 => 245, 508 => 243, 502 => 240, 498 => 238, 496 => 237, 491 => 235, 488 => 234, 482 => 231, 479 => 230, 473 => 227, 466 => 223, 463 => 222, 461 => 221, 458 => 220, 455 => 219, 452 => 218, 449 => 217, 446 => 216, 442 => 214, 439 => 213, 436 => 212, 433 => 211, 429 => 209, 426 => 208, 423 => 207, 420 => 206, 418 => 205, 415 => 204, 413 => 203, 410 => 202, 407 => 201, 400 => 187, 387 => 176, 383 => 174, 377 => 170, 358 => 168, 341 => 167, 335 => 163, 333 => 162, 326 => 160, 318 => 155, 292 => 136, 290 => 135, 283 => 133, 280 => 132, 275 => 131, 273 => 130, 267 => 127, 260 => 123, 256 => 122, 239 => 108, 231 => 103, 219 => 94, 216 => 93, 206 => 92, 187 => 90, 94 => 7, 84 => 6, 71 => 3, 61 => 2, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block javascripts %}
\t{{ encore_entry_script_tags('UtilityPhotoProductJs') }}
{% endblock %}
{% block stylesheets %}
\t{{ parent() }}
\t<style>
\t\t.product-specs-table {
\t\t\t--specs-border: #e1e8f0;
\t\t\t--specs-label: #1c2f49;
\t\t\t--specs-value: #718096;
\t\t\tborder: 1px solid var(--specs-border);
\t\t\tborder-radius: 0.75rem;
\t\t\toverflow: hidden;
\t\t\tborder-collapse: separate;
\t\t\tborder-spacing: 0;
\t\t\tbackground: #fff;
\t\t}
\t\t.product-specs-table thead th {
\t\t\tpadding: 1rem 1.25rem;
\t\t\tborder: 0;
\t\t\tbackground: #063f80;
\t\t\tcolor: #fff;
\t\t\tfont-size: 1.05rem;
\t\t\ttext-align: center;
\t\t}
\t\t.product-specs-table tbody th,
\t\t.product-specs-table tbody td {
\t\t\tpadding: 0.9rem 1.25rem;
\t\t\tborder-top: 1px solid var(--specs-border);
\t\t\tvertical-align: middle;
\t\t}
\t\t.product-specs-table tbody th {
\t\t\twidth: 34%;
\t\t\tcolor: var(--specs-label);
\t\t\tfont-weight: 700;
\t\t}
\t\t.product-specs-table tbody td {
\t\t\tcolor: var(--specs-value);
\t\t}
\t\t.product-specs-table tbody tr:nth-child(odd) {
\t\t\tbackground: #f8fafc;
\t\t}
\t\t.product-specs-table .product-type-badges {
\t\t\tdisplay: flex;
\t\t\tflex-wrap: wrap;
\t\t\tgap: 0.5rem;
\t\t}
\t\t.product-specs-table .product-type-badges .badge {
\t\t\tpadding: 0.55rem 0.8rem;
\t\t\tborder: 1px solid #d5e3f2;
\t\t\tborder-radius: 999px;
\t\t\tbackground: #edf6ff !important;
\t\t\tcolor: #064589 !important;
\t\t\tfont-weight: 600;
\t\t}
\t\t.product-detail-actions {
\t\t\tdisplay: flex;
\t\t\tflex-wrap: wrap;
\t\t\tgap: 0.65rem;
\t\t\tmargin-top: 1.25rem;
\t\t}
\t\t.product-detail-actions .button-contact {
\t\t\tmargin-bottom: 0 !important;
\t\t}
\t\t@media (max-width: 576px) {
\t\t\t.product-specs-table tbody th,
\t\t\t.product-specs-table tbody td {
\t\t\t\tpadding: 0.75rem;
\t\t\t}
\t\t\t.product-detail-actions .button-contact {
\t\t\t\twidth: 100%;
\t\t\t}
\t\t}
\t</style>
{% endblock %}
{% block title %}Produits{% endblock %}
{% block body %}
<header>
{{ include('@FrontView/menus.html.twig') }}
</header>
<main class=\"front-office-page front-office-detail\">
\t<div class=\"container\">
\t\t<div class=\"row py-2\">
\t\t\t<!-- Modal image show -->
\t\t\t<div class=\"modal fade\" id=\"listsmodalphoto\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
\t\t\t <div class=\"modal-dialog modal-dialog-centered\">
\t\t\t\t<div class=\"modal-content\">
\t\t\t\t\t<img class=\"imgproduct\" id=\"imgprincipalhide\" src=\"{{ asset('uploads/products/'~product.picture) }}\">
\t\t\t\t</div>
\t\t\t </div>
\t\t\t</div>
\t\t\t<div class=\"col-md-2\">
\t\t\t\t{{ include('@FrontView/menusgeneral.html.twig') }}
\t\t\t</div>
\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t<div class=\"album bg-custom-product py-4 border product-detail-shell\">
\t\t\t\t\t<div class=\"row mb-2 px-4\">
\t\t\t\t\t\t<div class=\"modal fade\" id=\"listsmodalphoto\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
\t\t\t\t\t\t <div class=\"modal-dialog modal-dialog-centered\">
\t\t\t\t\t\t\t<div class=\"modal-content\">
\t\t\t\t\t\t\t\t<img class=\"imgproduct\" id=\"imgprincipalhide\" src=\"#\" alt=\"test-image\">
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t
\t\t\t\t\t\t<div class=\"col-md-5\">
\t\t\t\t\t\t\t<input type=\"hidden\" id=\"product_id\" value=\"{{ product.id }}\" />
\t\t\t\t\t\t\t<img class=\"imgproduct\" id=\"imgprincipal\" src=\"{{ asset('uploads/products/'~product.picture) }}\" >
\t\t\t\t\t\t\t<div id=\"listimgproduct\">
\t\t\t\t\t\t\t\t<div class=\"row\" >
\t\t\t\t\t\t\t\t\t<div class=\"col-md-3 col-6 mt-1\">
\t\t\t\t\t\t\t\t\t\t\t<img class=\"imgproduct\" id=\"nano4\" src=\"{{ asset('uploads/products/'~product.picture) }}\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t{% set idimgs = 0 %}
\t\t\t\t\t\t\t\t\t{% for file in product.linkspicturesArrays %}
\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-3 col-6 mt-1\">
\t\t\t\t\t\t\t\t\t\t\t<img class=\"imgproduct\" id=\"img-{{ idimgs }}\" src=\"{{ asset('uploads/products/'~file) }}\">
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t{% set idimgs = idimgs+1 %}
\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"card mt-1\">
\t\t\t\t\t\t\t <div class=\"card-body\">
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t<h5 class=\"card-title text-center\">Whatsapp</h5>
\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\">
\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"https://wa.me/+261349313463?text=refchambrekiban\" class=\"btn btn-success\"><i class=\"bi bi-telephone-plus-fill\"></i> +261 34 93 134 63</a>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t </div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"col-md-7\">
\t\t\t\t\t\t\t<p> {{ product.title }}
\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t<div class=\"product-modules-card\">
\t\t\t\t\t\t\t\t<div class=\"product-modules-heading\">
\t\t\t\t\t\t\t\t\t<div><i class=\"fas fa-layer-group me-2\"></i>Modules inclus</div>
\t\t\t\t\t\t\t\t\t<span>{{ product.modulesForDisplay|length }} module{{ product.modulesForDisplay|length > 1 ? 's' : '' }}</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t{% if product.modulesForDisplay|length > 0 %}
\t\t\t\t\t\t\t\t\t<div class=\"modules-table-scroll\">
\t\t\t\t\t\t\t\t\t\t<table class=\"table product-modules-table mb-0\">
\t\t\t\t\t\t\t\t\t\t\t<thead><tr><th>#</th><th>Module</th></tr></thead>
\t\t\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t\t{% for module in product.modulesForDisplay %}
\t\t\t\t\t\t\t\t\t\t\t\t<tr><td>{{ loop.index }}</td><td>{{ module }}</td></tr>
\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t<div class=\"product-modules-empty\"><i class=\"fas fa-inbox\"></i><span>Aucun module renseigné pour ce produit.</span></div>
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<hr class=\"border-2\">
\t\t\t\t\t\t\t<table class=\"table product-specs-table mb-0\">
\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t <th class=\"text-center\" scope=\"col\" colspan=2>Fiche Produit</th>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t <th scope=\"row\">Catégorie</th>
\t\t\t\t\t\t\t\t\t <td><div class=\"row\">{{ product.fkcategorie.title }}</div></td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr class=\"d-none\">
\t\t\t\t\t\t\t\t\t <th scope=\"row\">À partir de</th>
\t\t\t\t\t\t\t\t\t {# <td>
\t\t\t\t\t\t\t\t\t\t{% if is_granted('ROLE_COM') %}
\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"marge-price\">{{ product.priceProducts[0].priceDealer|number_format(2, '.', ' ') }}</span> {{ product.fkdevise.title }} </br>
\t\t\t\t\t\t\t\t\t\t\t\t({{ product.priceProducts[0].nbrDealerProd }}) produit(s) minimum
\t\t\t\t\t\t\t\t\t\t{% elseif is_granted('ROLE_CUSTOMER')%}
\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"marge-price\">{{ product.priceProducts[0].priceBulkCustomer|number_format(2, '.', ' ') }} ({{ product.priceProducts[0].nbrBulkProd }}) </span>
\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"marge-price\">{{ product.priceProducts[0].priceCustomer|number_format(2, '.', ' ') }}</span> </span> {{ product.fkdevise.title }} </br>
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t </td> #}
\t\t\t\t\t\t\t\t\t \t{% set price = product.priceProducts|first %}
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t{% if price %}
\t\t\t\t\t\t\t\t\t\t\t{% if is_granted('ROLE_COM') %}
{% set normalPrice = price.priceCustomer %}
{% set promoPrice = price.promoPriceCustomer %}
{% set minQty = null %}
\t\t\t\t\t\t\t\t\t\t\t{% elseif is_granted('ROLE_CUSTOMER') %}
{% set normalPrice = price.priceCustomer %}
{% set promoPrice = price.promoPriceCustomer %}
{% set minQty = null %}
\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set normalPrice = price.priceCustomer %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set promoPrice = price.promoPriceCustomer %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set minQty = null %}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t{% if price.isPromotionValid and promoPrice %}
\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"marge-price text-muted\" style=\"text-decoration: line-through;\">
\t\t\t\t\t\t\t\t\t\t\t\t\t{{ normalPrice|number_format(2, '.', ' ') }}
\t\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t\t\t<br>
\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"marge-price text-danger fw-bold\">
\t\t\t\t\t\t\t\t\t\t\t\t\t{{ promoPrice|number_format(2, '.', ' ') }}
\t\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"marge-price\">
\t\t\t\t\t\t\t\t\t\t\t\t\t{{ normalPrice|number_format(2, '.', ' ') }}
\t\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t{{ product.fkdevise.title }}
\t\t\t\t\t\t\t\t\t\t\t{% if minQty %}
\t\t\t\t\t\t\t\t\t\t\t\t<br>
\t\t\t\t\t\t\t\t\t\t\t\t<small class=\"text-muted\">
\t\t\t\t\t\t\t\t\t\t\t\t\t({{ minQty }}) produit(s) minimum
\t\t\t\t\t\t\t\t\t\t\t\t</small>
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t <tr>
<th scope=\"row\">Type</th>
\t\t\t\t\t\t\t\t\t\t{# <td>
\t\t\t\t\t\t\t\t\t\t{% if is_granted('ROLE_CUSTOMER') %}
\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"marge-price\">{{ product.priceProducts[0].priceBulkCustomer|number_format(2, '.', ' ') }} </span></span> {{ product.fkdevise.title }} </br>
\t\t\t\t\t\t\t\t\t\t\t\t ({{ product.priceProducts[0].nbrBulkProd }}) produit(s) minimum
\t\t\t\t\t\t\t\t\t\t{% elseif is_granted('ROLE_COM')%}
\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"marge-price\">{{ product.priceProducts[0].priceBulkCustomer|number_format(2, '.', ' ') }} </span></span> {{ product.fkdevise.title }} </br>
\t\t\t\t\t\t\t\t\t\t\t\t ({{ product.priceProducts[0].nbrBulkProd }}) produit(s) minimum
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</td> #}
<td><div class=\"product-type-badges\">{% for label in product.statetypeLabels %}<span class=\"badge bg-light text-dark\">{{ label }}</span>{% endfor %}</div></td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t <tr>
\t\t\t\t\t\t\t\t\t\t<th scope=\"row\">Disponibilité</th>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t{% if product.stock > 0 %}
\t\t\t\t\t\t\t\t\t\t\t\tDisponible
\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\tDisponible sur commande
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t<div class=\"product-detail-actions\">
\t\t\t\t\t\t\t<a href=\"{{ path('app_contact', {'product_id': product.id}) }}\" class=\"btn btn-success button-contact\"><i class=\"fas fa-file-invoice-dollar me-2\" aria-hidden=\"true\"></i>Demander un devis</a>
\t\t\t\t\t\t\t<a href=\"{{ path('app_demo', {'product_id': product.id}) }}\" class=\"btn btn-primary button-contact\"><i class=\"fas fa-desktop me-2\" aria-hidden=\"true\"></i>Demander une démo</a>
\t\t\t\t\t\t\t<a class=\"d-none\" href=\"{{ path('app_product_panier', {'product': product.id}) }}\"><button type=\"button\" class=\"btn btn-success button-contact mb-2\"><i class=\"fas fa-cart-plus me-2\" aria-hidden=\"true\"></i>Ajouter au panier</button></a>
\t\t\t\t\t\t\t<a class=\"d-none\" href=\"{{ path('app_product_list_panier') }}\"><button type=\"button\" class=\"btn btn-success button-contact mb-2\"><i class=\"fas fa-list-check me-2\" aria-hidden=\"true\"></i>Liste de mes commandes</button></a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
</main>
{{ include('@FrontView/footer.html.twig') }}
<!-- <script src=\"{{ asset('build/UtilityProductPoint.js') }}\"></script> -->
{% endblock %}
", "frontView/product/show.html.twig", "/htdocs/templates/frontView/product/show.html.twig");
}
}