var/cache/dev/twig/25/255344ada8454144db4fac3959a4fd33.php line 47

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* front/dec/promoProductsDec.html.twig */
  16. class __TwigTemplate_ee4a07bf1157175d3897fc7f302746f3 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'stylesheets' => [$this'block_stylesheets'],
  30.             'body' => [$this'block_body'],
  31.             'footer' => [$this'block_footer'],
  32.             'javascripts' => [$this'block_javascripts'],
  33.         ];
  34.     }
  35.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  36.     {
  37.         // line 1
  38.         return "front/base.html.twig";
  39.     }
  40.     protected function doDisplay(array $context, array $blocks = []): iterable
  41.     {
  42.         $macros $this->macros;
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/dec/promoProductsDec.html.twig"));
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/dec/promoProductsDec.html.twig"));
  47.         $this->parent $this->loadTemplate("front/base.html.twig""front/dec/promoProductsDec.html.twig"1);
  48.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51.         
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53.     }
  54.     // line 2
  55.     /**
  56.      * @return iterable<null|scalar|\Stringable>
  57.      */
  58.     public function block_title(array $context, array $blocks = []): iterable
  59.     {
  60.         $macros $this->macros;
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  65.         yield "SUNSHINE ELEGANCE :: PROMOTIONS ";
  66.         
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  68.         
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  70.         yield from [];
  71.     }
  72.     // line 3
  73.     /**
  74.      * @return iterable<null|scalar|\Stringable>
  75.      */
  76.     public function block_stylesheets(array $context, array $blocks = []): iterable
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  83.         // line 4
  84.         yield "    ";
  85.         yield from $this->yieldParentBlock("stylesheets"$context$blocks);
  86.         yield "
  87.     <style>
  88.         .product-cart-wrap .product-img-action-wrap {
  89.             max-height: none;
  90.         }
  91.     </style>
  92.     <script>
  93.         // Filtres des tailles et couleurs
  94.         var taillesFilter = ";
  95.         // line 12
  96.         yield json_encode(CoreExtension::getAttribute($this->env$this->source, (isset($context["Globals"]) || array_key_exists("Globals"$context) ? $context["Globals"] : (function () { throw new RuntimeError('Variable "Globals" does not exist.'12$this->source); })()), "getTailles", [0falsetrue], "method"falsefalsefalse12));
  97.         yield ";
  98.         var couleursFilter = ";
  99.         // line 13
  100.         yield json_encode(CoreExtension::getAttribute($this->env$this->source, (isset($context["Globals"]) || array_key_exists("Globals"$context) ? $context["Globals"] : (function () { throw new RuntimeError('Variable "Globals" does not exist.'13$this->source); })()), "getCouleurs", [0falsetrue], "method"falsefalsefalse13));
  101.         yield ";
  102.     </script>
  103. ";
  104.         
  105.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  106.         
  107.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  108.         yield from [];
  109.     }
  110.     // line 17
  111.     /**
  112.      * @return iterable<null|scalar|\Stringable>
  113.      */
  114.     public function block_body(array $context, array $blocks = []): iterable
  115.     {
  116.         $macros $this->macros;
  117.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  119.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  121.         // line 18
  122.         yield "
  123.     <main class=\"main\">
  124.         <div class=\"page-header breadcrumb-wrap\">
  125.             <div class=\"container\">
  126.                 <div class=\"breadcrumb\">
  127.                     <a href=\"";
  128.         // line 23
  129.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  130.         yield "\" rel=\"nofollow\">Acceuil</a>
  131.                     <span></span> Promotion
  132.                 </div>
  133.             </div>
  134.         </div>
  135.         ";
  136.         // line 223
  137.         yield "
  138.         <section class=\"mt-50 mb-50\" id=\"app\" v-cloak>
  139.             <div class=\"container\">
  140.                 <div class=\"row flex-row-reverse\">
  141.                     <div class=\"col-lg-9\">
  142.                         <div class=\"shop-product-fillter\">
  143.                             <div class=\"totall-product\">
  144.                                 <p> Nous avons trouvé <strong class=\"text-brand\">{{ totalItems }}</strong> nouveaux article<span v-if=\"totalItems>1\">s</span> !</p>
  145.                             </div>
  146.                             <div class=\"sort-by-product-area\">
  147.                                 <div class=\"sort-by-cover mr-10\">
  148.                                     <div class=\"sort-by-product-wrap\">
  149.                                         <div class=\"sort-by\">
  150.                                             <span><i class=\"fi-rs-apps\"></i>Montrer:</span>
  151.                                         </div>
  152.                                          <div class=\"sort-by-dropdown-wrap\">
  153.                                             <span v-show=\"pageSize!=9999\"> {{ pageSize }} <i class=\"fi-rs-angle-small-down\"></i></span>
  154.                                             <span v-show=\"pageSize==9999\"> Tous <i class=\"fi-rs-angle-small-down\"></i></span>
  155.                                         </div>
  156.                                     </div>
  157.                                     <div class=\"sort-by-dropdown\">
  158.                                         <ul>
  159.                                             <li class=\"activeFilter\"><a :class=\"{ active: pageSize==9 }\" href=\"#&\" @click=\"pageSize=9;getData(page,true)\">9</a></li>
  160.                                             <li class=\"activeFilter\"><a :class=\"{ active: pageSize==18 }\" href=\"#&\" @click=\"pageSize=18;getData(page,true)\">18</a></li>
  161.                                             <li class=\"activeFilter\"><a :class=\"{ active: pageSize==36 }\" href=\"#&\" @click=\"pageSize=36;getData(page,true)\">36</a></li>
  162.                                             <li class=\"activeFilter\"><a :class=\"{ active: pageSize==9999 }\" href=\"#&\" @click=\"pageSize=9999;getData(page,true)\">Tous</a></li>
  163.                                         </ul>
  164.                                     </div>
  165.                                 </div>
  166.                                 <div class=\"sort-by-cover\">
  167.                                     <div class=\"sort-by-product-wrap\">
  168.                                         <div class=\"sort-by\">
  169.                                             <span><i class=\"fi-rs-apps-sort\"></i>Trier par:</span>
  170.                                         </div>
  171.                                         <div class=\"sort-by-dropdown-wrap\">
  172.                                             <span v-show=\"orderBy==1\"> Nom: A à Z <i class=\"fi-rs-angle-small-down\"></i></span>
  173.                                             <span v-show=\"orderBy==2\"> Nom: Z à A <i class=\"fi-rs-angle-small-down\"></i></span>
  174.                                             <span v-show=\"orderBy==3\"> Prix: croissant <i class=\"fi-rs-angle-small-down\"></i></span>
  175.                                             <span v-show=\"orderBy==4\"> Prix: décroissant <i class=\"fi-rs-angle-small-down\"></i></span>
  176.                                             <span v-show=\"orderBy==5\"> Date ajout: croissant<i class=\"fi-rs-angle-small-down\"></i></span>
  177.                                             <span v-show=\"orderBy==6\"> Date ajout: décroissant<i class=\"fi-rs-angle-small-down\"></i></span>
  178.                                         </div>
  179.                                     </div>
  180.                                     <div class=\"sort-by-dropdown\">
  181.                                         <ul>
  182.                                             <li class=\"activeFilter\"><a :class=\"{ active: orderBy==1 }\" href=\"#&\" @click=\"orderBy=1;getData(page,true)\">Nom: A à Z</a></li>
  183.                                             <li class=\"activeFilter\"><a :class=\"{ active: orderBy==2 }\" href=\"#&\" @click=\"orderBy=2;getData(page,true)\">Nom: Z à A</a></li>
  184.                                             <li class=\"activeFilter\"><a :class=\"{ active: orderBy==3 }\" href=\"#&\" @click=\"orderBy=3;getData(page,true)\">Prix: croissant</a></li>
  185.                                             <li class=\"activeFilter\"><a :class=\"{ active: orderBy==4 }\" href=\"#&\" @click=\"orderBy=4;getData(page,true)\">Prix: décroissant</a></li>
  186.                                             <li class=\"activeFilter\">
  187.                                                 <a :class=\"{ active: orderBy==5 }\" href=\"#&\" @click=\"orderBy=5;getData(page,true)\">Date ajout: croissant</a>
  188.                                             </li>
  189.                                             <li class=\"activeFilter\">
  190.                                                 <a :class=\"{ active: orderBy==6 }\" href=\"#&\" @click=\"orderBy=6;getData(page,true)\">Date ajout: décroissant</a>
  191.                                             </li>
  192.                                         </ul>
  193.                                     </div>
  194.                                 </div>
  195.                             </div>
  196.                         </div>
  197.                         <!-- Produits -->
  198.                         <div class=\"row product-grid-3\">
  199.                             <div class=\"col-lg-4 col-md-4 col-12 col-sm-6 row-product\" v-for=\"entry in products\">
  200.                                 <div class=\"product-cart-wrap mb-30 col-product\">
  201.                                     <div class=\"product-img-action-wrap\" @click=\"openProduct(entry.idProduit,entry.name,entry.id)\">
  202.                                         <div class=\"product-img product-img-zoom\">
  203.                                             <a href=\"#&\">
  204.                                                 <!--<img class=\"default-img\" src=\"../front/assets/imgs/shop/product-2-1.jpg\" alt=\"Sunshine Elegance\">-->
  205.                                                 <img class=\"default-img product-img\" :src=\"'./images/300-400/'+entry.image\" :alt=\"entry.name\">
  206.                                                 <!--<img class=\"hover-img\" src=\"../front/assets/imgs/shop/product-2-2.jpg\" alt=\"Sunshine Elegance\">-->
  207.                                             </a>
  208.                                         </div>
  209.                                         <!--<div class=\"product-action-1\">
  210.                                             <a aria-label=\"Quick view\" class=\"action-btn hover-up\" data-bs-toggle=\"modal\" data-bs-target=\"#quickViewModal\">
  211.                                                 <i class=\"fi-rs-search\"></i>
  212.                                             </a>
  213.                                             <a aria-label=\"Add To Wishlist\" class=\"action-btn hover-up\" href=\"shop-wishlist.html\"><i class=\"fi-rs-heart\"></i></a>
  214.                                             <a aria-label=\"Compare\" class=\"action-btn hover-up\" href=\"shop-compare.html\"><i class=\"fi-rs-shuffle\"></i></a>
  215.                                         </div>-->
  216.                                         <div class=\"product-badges product-badges-position product-badges-mrg\" v-if=\"(entry.promo && entry.promo.isValid) || !entry.stock || entry.isNew\">
  217.                                             <span v-if=\"!entry.stock\" class=\"hot mr-1\" style=\"margin-right: 2px;font-size: 10px;\">Rupture de stock</span>
  218.                                             <span v-if=\"entry.isNew\" class=\"new mr-1\" style=\"margin-right: 2px;font-size: 10px;\">Nouveau</span>
  219.                                             <span class=\"best\" v-if=\"entry.promo && entry.promo.isValid && entry.promo.discountType=='amount'\" style=\"font-size: 10px;\">-{{ entry.promo.discountValue.toFixed(3) }} <sup
  220.                                                         class=\"currency-style\">TND</sup></span>
  221.                                             <span class=\"best\" v-if=\"entry.promo && entry.promo.isValid && entry.promo.discountType=='percent'\" style=\"font-size: 10px;\">-{{ entry.promo.discountValue }} %</span>
  222.                                         </div>
  223.                                     </div>
  224.                                     <div class=\"product-content-wrap\">
  225.                                         <h2 @click=\"openProduct(entry.idProduit,entry.name,entry.id)\"><div class=\"menu-item\">{{ entry.name }}</div></h2>
  226.                                         <!--<div class=\"rating-result\" title=\"90%\">
  227.                                             <span>
  228.                                                 <span>90%</span>
  229.                                             </span>
  230.                                         </div>-->
  231.                                         <div class=\"product-price\">
  232.                                             <span v-if=\"!entry.promo || (entry.promo && !entry.promo.isValid)\">{{ entry.priceTTC.toFixed(3) }} <sup class=\"currency-style\">TND</sup></span>
  233.                                             <span v-if=\"entry.promo && entry.promo.isValid && entry.promo.discountType=='amount'\">{{ (entry.priceTTC-entry.promo.discountValue).toFixed(3) }} <sup class=\"currency-style\">TND</sup></span>
  234.                                             <span v-if=\"entry.promo && entry.promo.isValid && entry.promo.discountType=='percent'\">{{ (entry.priceTTC-(entry.priceTTC*entry.promo.discountValue/100)).toFixed(3) }} <sup class=\"currency-style\">TND</sup></span>
  235.                                             <span class=\"old-price\" v-if=\"entry.promo\">{{ entry.priceTTC.toFixed(3) }} <sup class=\"currency-style\">TND</sup></span>
  236.                                         </div>
  237.                                         <div class=\"product-action-1 show\" @click=\"getProduit(entry.idProduit,entry.id)\">
  238.                                             <button aria-label=\"Acheter maintenant\" class=\"action-btn hover-up\"><i
  239.                                                         class=\"fi-rs-shopping-bag-add\"></i></button>
  240.                                         </div>
  241.                                     </div>
  242.                                 </div>
  243.                             </div>
  244.                         </div>
  245.                         <!--pagination-->
  246.                         <div class=\"pagination-area mt-15 mb-sm-5 mb-lg-0\" v-show=\"pages.length>1\">
  247.                             <nav aria-label=\"Page navigation example\">
  248.                                 <ul class=\"pagination justify-content-start\">
  249.                                     <!--li class=\"page-item active\"><a class=\"page-link\" href=\"#\">01</a></li>-->
  250.                                     <li class=\"page-item\" v-show=\"page>1\" @click=\"getData(page-1)\"><a class=\"page-link\" href=\"#&\"><i class=\"fi-rs-angle-double-small-left\"></i></a></li>
  251.                                     <li v-for=\"entry in pages\" class=\"page-item\" @click=\"getData(entry)\" :class=\"{ active: entry==page }\"><a class=\"page-link\" href=\"#&\">{{ entry }}</a></li>
  252.                                     <!--<li class=\"page-item\"><a class=\"page-link\" href=\"#\">03</a></li>
  253.                                     <li class=\"page-item\"><a class=\"page-link dot\" href=\"#\">...</a></li>
  254.                                     <li class=\"page-item\"><a class=\"page-link\" href=\"#\">16</a></li>-->
  255.                                     <li class=\"page-item\" v-show=\"page<pages[pages.length-1]\" @click=\"getData(page+1)\"><a class=\"page-link\" href=\"#&\"><i class=\"fi-rs-angle-double-small-right\"></i></a></li>
  256.                                 </ul>
  257.                             </nav>
  258.                         </div>
  259.                     </div>
  260.                     <div class=\"col-lg-3 primary-sidebar sticky-sidebar\">
  261.                         <!--<div class=\"widget-category mb-30\">
  262.                             <h5 class=\"section-title style-1 mb-30 wow fadeIn animated\">Category</h5>
  263.                             <ul class=\"categories\">
  264.                                 <li><a href=\"shop-grid-right.html\">Shoes & Bags</a></li>
  265.                                 <li><a href=\"shop-grid-right.html\">Blouses & Shirts</a></li>
  266.                                 <li><a href=\"shop-grid-right.html\">Dresses</a></li>
  267.                                 <li><a href=\"shop-grid-right.html\">Swimwear</a></li>
  268.                                 <li><a href=\"shop-grid-right.html\">Beauty</a></li>
  269.                                 <li><a href=\"shop-grid-right.html\">Jewelry & Watch</a></li>
  270.                                 <li><a href=\"shop-grid-right.html\">Accessories</a></li>
  271.                             </ul>
  272.                         </div>-->
  273.                         <!-- Fillter By Price -->
  274.                         <div class=\"sidebar-widget price_range range mb-30\">
  275.                             <div class=\"widget-header position-relative mb-20 pb-10\">
  276.                                 <h5 class=\"widget-title mb-10\">Filter par prix</h5>
  277.                                 <div class=\"bt-1 border-color-1\"></div>
  278.                             </div>
  279.                             <div class=\"price-filter\">
  280.                                 <div class=\"price-filter-inner\">
  281.                                     <div id=\"slider-range\"></div>
  282.                                     <div class=\"price_slider_amount\">
  283.                                         <div class=\"label-input\">
  284.                                             <span>Intervalle:</span><input type=\"text\" id=\"amount\" name=\"price\"
  285.                                                                            placeholder=\"Add Your Price\"/>
  286.                                         </div>
  287.                                     </div>
  288.                                 </div>
  289.                             </div>
  290.                             <button class=\"btn btn-sm btn-default mt-10\" :disabled=\"disabled\" @click=\"getData(page,true)\"><i
  291.                                         class=\"fi-rs-filter mr-5\"></i> Filtrer
  292.                             </button>
  293.                             <div class=\"list-group\" v-if=\"totalItems\">
  294.                                 <div class=\"list-group-item mb-10 mt-10\">
  295.                                     <label class=\"fw-900\">Tailles</label>
  296.                                     <div class=\"custome-checkbox\">
  297.                                         <div class=\"row\">
  298.                                             <div v-for=\"entry in taillesFilter\" class=\"col-4\" style=\"white-space: nowrap\">
  299.                                                 <input class=\"form-check-input\" type=\"checkbox\" name=\"checkbox\"
  300.                                                        :id=\"'exampleCheckbox'+entry.name\" v-model=\"entry.selected\"
  301.                                                        @change=\"getData(page,true)\">
  302.                                                 <label class=\"form-check-label\" :for=\"'exampleCheckbox'+entry.name\"><span>{{ entry.name }}</span></label>
  303.                                                 <br>
  304.                                             </div>
  305.                                         </div>
  306.                                     </div>
  307.                                     <label class=\"fw-900 mt-15\">Couleurs</label>
  308.                                     <div class=\"attr-detail attr-color mb-15\">
  309.                                         <ul class=\"list-filter color-filter multi\">
  310.                                             <li :class=\"entry.selected ? 'active' : ''\" v-for=\"entry in couleursFilter\" @click=\"entry.selected = !entry.selected,getData(page,true)\">
  311.                                                 <a href=\"#\" :title=\"entry.name\">
  312.                                                     <span :style=\"{ 'background-color': entry.code ? entry.code :'#fff','border': '1px solid #ddd' }\"></span>
  313.                                                 </a>
  314.                                             </li>
  315.                                         </ul>
  316.                                     </div>
  317.                                 </div>
  318.                             </div>
  319.                         </div>
  320.                     </div>
  321.                 </div>
  322.             </div>
  323.         </section>
  324.         ";
  325.         yield "
  326.     </main>
  327. ";
  328.         
  329.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  330.         
  331.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  332.         yield from [];
  333.     }
  334.     // line 228
  335.     /**
  336.      * @return iterable<null|scalar|\Stringable>
  337.      */
  338.     public function block_footer(array $context, array $blocks = []): iterable
  339.     {
  340.         $macros $this->macros;
  341.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  342.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  343.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  344.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  345.         // line 229
  346.         yield "    ";
  347.         yield from $this->yieldParentBlock("footer"$context$blocks);
  348.         yield "
  349. ";
  350.         
  351.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  352.         
  353.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  354.         yield from [];
  355.     }
  356.     // line 232
  357.     /**
  358.      * @return iterable<null|scalar|\Stringable>
  359.      */
  360.     public function block_javascripts(array $context, array $blocks = []): iterable
  361.     {
  362.         $macros $this->macros;
  363.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  364.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  365.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  366.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  367.         // line 233
  368.         yield "    ";
  369.         yield from $this->yieldParentBlock("javascripts"$context$blocks);
  370.         yield "
  371.     <script>
  372.         // Reinialiser les filtres de recherche
  373.         window.onbeforeunload = function () {
  374.             //unchecked your check box here.
  375.             \$(\"input[type='checkbox']\").prop('checked', false);
  376.             //app.getData(app.page);
  377.         };
  378.     </script>
  379.     <script src=\"";
  380.         // line 242
  381.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front/assets/scripts/category/productsPromoDec.js"), "html"nulltrue);
  382.         yield "\"></script>
  383. ";
  384.         
  385.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  386.         
  387.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  388.         yield from [];
  389.     }
  390.     /**
  391.      * @codeCoverageIgnore
  392.      */
  393.     public function getTemplateName(): string
  394.     {
  395.         return "front/dec/promoProductsDec.html.twig";
  396.     }
  397.     /**
  398.      * @codeCoverageIgnore
  399.      */
  400.     public function isTraitable(): bool
  401.     {
  402.         return false;
  403.     }
  404.     /**
  405.      * @codeCoverageIgnore
  406.      */
  407.     public function getDebugInfo(): array
  408.     {
  409.         return array (  424 => 242,  411 => 233,  398 => 232,  384 => 229,  371 => 228,  161 => 223,  153 => 23,  146 => 18,  133 => 17,  119 => 13,  115 => 12,  103 => 4,  90 => 3,  67 => 2,  44 => 1,);
  410.     }
  411.     public function getSourceContext(): Source
  412.     {
  413.         return new Source("{% extends 'front/base.html.twig' %}
  414. {% block title %}SUNSHINE ELEGANCE :: PROMOTIONS {% endblock %}
  415. {% block stylesheets %}
  416.     {{ parent() }}
  417.     <style>
  418.         .product-cart-wrap .product-img-action-wrap {
  419.             max-height: none;
  420.         }
  421.     </style>
  422.     <script>
  423.         // Filtres des tailles et couleurs
  424.         var taillesFilter = {{ Globals.getTailles(0,false,true)|json_encode|raw }};
  425.         var couleursFilter = {{ Globals.getCouleurs(0,false,true)|json_encode|raw }};
  426.     </script>
  427. {% endblock %}
  428. {% block body %}
  429.     <main class=\"main\">
  430.         <div class=\"page-header breadcrumb-wrap\">
  431.             <div class=\"container\">
  432.                 <div class=\"breadcrumb\">
  433.                     <a href=\"{{ path('home') }}\" rel=\"nofollow\">Acceuil</a>
  434.                     <span></span> Promotion
  435.                 </div>
  436.             </div>
  437.         </div>
  438.         {% verbatim %}
  439.         <section class=\"mt-50 mb-50\" id=\"app\" v-cloak>
  440.             <div class=\"container\">
  441.                 <div class=\"row flex-row-reverse\">
  442.                     <div class=\"col-lg-9\">
  443.                         <div class=\"shop-product-fillter\">
  444.                             <div class=\"totall-product\">
  445.                                 <p> Nous avons trouvé <strong class=\"text-brand\">{{ totalItems }}</strong> nouveaux article<span v-if=\"totalItems>1\">s</span> !</p>
  446.                             </div>
  447.                             <div class=\"sort-by-product-area\">
  448.                                 <div class=\"sort-by-cover mr-10\">
  449.                                     <div class=\"sort-by-product-wrap\">
  450.                                         <div class=\"sort-by\">
  451.                                             <span><i class=\"fi-rs-apps\"></i>Montrer:</span>
  452.                                         </div>
  453.                                          <div class=\"sort-by-dropdown-wrap\">
  454.                                             <span v-show=\"pageSize!=9999\"> {{ pageSize }} <i class=\"fi-rs-angle-small-down\"></i></span>
  455.                                             <span v-show=\"pageSize==9999\"> Tous <i class=\"fi-rs-angle-small-down\"></i></span>
  456.                                         </div>
  457.                                     </div>
  458.                                     <div class=\"sort-by-dropdown\">
  459.                                         <ul>
  460.                                             <li class=\"activeFilter\"><a :class=\"{ active: pageSize==9 }\" href=\"#&\" @click=\"pageSize=9;getData(page,true)\">9</a></li>
  461.                                             <li class=\"activeFilter\"><a :class=\"{ active: pageSize==18 }\" href=\"#&\" @click=\"pageSize=18;getData(page,true)\">18</a></li>
  462.                                             <li class=\"activeFilter\"><a :class=\"{ active: pageSize==36 }\" href=\"#&\" @click=\"pageSize=36;getData(page,true)\">36</a></li>
  463.                                             <li class=\"activeFilter\"><a :class=\"{ active: pageSize==9999 }\" href=\"#&\" @click=\"pageSize=9999;getData(page,true)\">Tous</a></li>
  464.                                         </ul>
  465.                                     </div>
  466.                                 </div>
  467.                                 <div class=\"sort-by-cover\">
  468.                                     <div class=\"sort-by-product-wrap\">
  469.                                         <div class=\"sort-by\">
  470.                                             <span><i class=\"fi-rs-apps-sort\"></i>Trier par:</span>
  471.                                         </div>
  472.                                         <div class=\"sort-by-dropdown-wrap\">
  473.                                             <span v-show=\"orderBy==1\"> Nom: A à Z <i class=\"fi-rs-angle-small-down\"></i></span>
  474.                                             <span v-show=\"orderBy==2\"> Nom: Z à A <i class=\"fi-rs-angle-small-down\"></i></span>
  475.                                             <span v-show=\"orderBy==3\"> Prix: croissant <i class=\"fi-rs-angle-small-down\"></i></span>
  476.                                             <span v-show=\"orderBy==4\"> Prix: décroissant <i class=\"fi-rs-angle-small-down\"></i></span>
  477.                                             <span v-show=\"orderBy==5\"> Date ajout: croissant<i class=\"fi-rs-angle-small-down\"></i></span>
  478.                                             <span v-show=\"orderBy==6\"> Date ajout: décroissant<i class=\"fi-rs-angle-small-down\"></i></span>
  479.                                         </div>
  480.                                     </div>
  481.                                     <div class=\"sort-by-dropdown\">
  482.                                         <ul>
  483.                                             <li class=\"activeFilter\"><a :class=\"{ active: orderBy==1 }\" href=\"#&\" @click=\"orderBy=1;getData(page,true)\">Nom: A à Z</a></li>
  484.                                             <li class=\"activeFilter\"><a :class=\"{ active: orderBy==2 }\" href=\"#&\" @click=\"orderBy=2;getData(page,true)\">Nom: Z à A</a></li>
  485.                                             <li class=\"activeFilter\"><a :class=\"{ active: orderBy==3 }\" href=\"#&\" @click=\"orderBy=3;getData(page,true)\">Prix: croissant</a></li>
  486.                                             <li class=\"activeFilter\"><a :class=\"{ active: orderBy==4 }\" href=\"#&\" @click=\"orderBy=4;getData(page,true)\">Prix: décroissant</a></li>
  487.                                             <li class=\"activeFilter\">
  488.                                                 <a :class=\"{ active: orderBy==5 }\" href=\"#&\" @click=\"orderBy=5;getData(page,true)\">Date ajout: croissant</a>
  489.                                             </li>
  490.                                             <li class=\"activeFilter\">
  491.                                                 <a :class=\"{ active: orderBy==6 }\" href=\"#&\" @click=\"orderBy=6;getData(page,true)\">Date ajout: décroissant</a>
  492.                                             </li>
  493.                                         </ul>
  494.                                     </div>
  495.                                 </div>
  496.                             </div>
  497.                         </div>
  498.                         <!-- Produits -->
  499.                         <div class=\"row product-grid-3\">
  500.                             <div class=\"col-lg-4 col-md-4 col-12 col-sm-6 row-product\" v-for=\"entry in products\">
  501.                                 <div class=\"product-cart-wrap mb-30 col-product\">
  502.                                     <div class=\"product-img-action-wrap\" @click=\"openProduct(entry.idProduit,entry.name,entry.id)\">
  503.                                         <div class=\"product-img product-img-zoom\">
  504.                                             <a href=\"#&\">
  505.                                                 <!--<img class=\"default-img\" src=\"../front/assets/imgs/shop/product-2-1.jpg\" alt=\"Sunshine Elegance\">-->
  506.                                                 <img class=\"default-img product-img\" :src=\"'./images/300-400/'+entry.image\" :alt=\"entry.name\">
  507.                                                 <!--<img class=\"hover-img\" src=\"../front/assets/imgs/shop/product-2-2.jpg\" alt=\"Sunshine Elegance\">-->
  508.                                             </a>
  509.                                         </div>
  510.                                         <!--<div class=\"product-action-1\">
  511.                                             <a aria-label=\"Quick view\" class=\"action-btn hover-up\" data-bs-toggle=\"modal\" data-bs-target=\"#quickViewModal\">
  512.                                                 <i class=\"fi-rs-search\"></i>
  513.                                             </a>
  514.                                             <a aria-label=\"Add To Wishlist\" class=\"action-btn hover-up\" href=\"shop-wishlist.html\"><i class=\"fi-rs-heart\"></i></a>
  515.                                             <a aria-label=\"Compare\" class=\"action-btn hover-up\" href=\"shop-compare.html\"><i class=\"fi-rs-shuffle\"></i></a>
  516.                                         </div>-->
  517.                                         <div class=\"product-badges product-badges-position product-badges-mrg\" v-if=\"(entry.promo && entry.promo.isValid) || !entry.stock || entry.isNew\">
  518.                                             <span v-if=\"!entry.stock\" class=\"hot mr-1\" style=\"margin-right: 2px;font-size: 10px;\">Rupture de stock</span>
  519.                                             <span v-if=\"entry.isNew\" class=\"new mr-1\" style=\"margin-right: 2px;font-size: 10px;\">Nouveau</span>
  520.                                             <span class=\"best\" v-if=\"entry.promo && entry.promo.isValid && entry.promo.discountType=='amount'\" style=\"font-size: 10px;\">-{{ entry.promo.discountValue.toFixed(3) }} <sup
  521.                                                         class=\"currency-style\">TND</sup></span>
  522.                                             <span class=\"best\" v-if=\"entry.promo && entry.promo.isValid && entry.promo.discountType=='percent'\" style=\"font-size: 10px;\">-{{ entry.promo.discountValue }} %</span>
  523.                                         </div>
  524.                                     </div>
  525.                                     <div class=\"product-content-wrap\">
  526.                                         <h2 @click=\"openProduct(entry.idProduit,entry.name,entry.id)\"><div class=\"menu-item\">{{ entry.name }}</div></h2>
  527.                                         <!--<div class=\"rating-result\" title=\"90%\">
  528.                                             <span>
  529.                                                 <span>90%</span>
  530.                                             </span>
  531.                                         </div>-->
  532.                                         <div class=\"product-price\">
  533.                                             <span v-if=\"!entry.promo || (entry.promo && !entry.promo.isValid)\">{{ entry.priceTTC.toFixed(3) }} <sup class=\"currency-style\">TND</sup></span>
  534.                                             <span v-if=\"entry.promo && entry.promo.isValid && entry.promo.discountType=='amount'\">{{ (entry.priceTTC-entry.promo.discountValue).toFixed(3) }} <sup class=\"currency-style\">TND</sup></span>
  535.                                             <span v-if=\"entry.promo && entry.promo.isValid && entry.promo.discountType=='percent'\">{{ (entry.priceTTC-(entry.priceTTC*entry.promo.discountValue/100)).toFixed(3) }} <sup class=\"currency-style\">TND</sup></span>
  536.                                             <span class=\"old-price\" v-if=\"entry.promo\">{{ entry.priceTTC.toFixed(3) }} <sup class=\"currency-style\">TND</sup></span>
  537.                                         </div>
  538.                                         <div class=\"product-action-1 show\" @click=\"getProduit(entry.idProduit,entry.id)\">
  539.                                             <button aria-label=\"Acheter maintenant\" class=\"action-btn hover-up\"><i
  540.                                                         class=\"fi-rs-shopping-bag-add\"></i></button>
  541.                                         </div>
  542.                                     </div>
  543.                                 </div>
  544.                             </div>
  545.                         </div>
  546.                         <!--pagination-->
  547.                         <div class=\"pagination-area mt-15 mb-sm-5 mb-lg-0\" v-show=\"pages.length>1\">
  548.                             <nav aria-label=\"Page navigation example\">
  549.                                 <ul class=\"pagination justify-content-start\">
  550.                                     <!--li class=\"page-item active\"><a class=\"page-link\" href=\"#\">01</a></li>-->
  551.                                     <li class=\"page-item\" v-show=\"page>1\" @click=\"getData(page-1)\"><a class=\"page-link\" href=\"#&\"><i class=\"fi-rs-angle-double-small-left\"></i></a></li>
  552.                                     <li v-for=\"entry in pages\" class=\"page-item\" @click=\"getData(entry)\" :class=\"{ active: entry==page }\"><a class=\"page-link\" href=\"#&\">{{ entry }}</a></li>
  553.                                     <!--<li class=\"page-item\"><a class=\"page-link\" href=\"#\">03</a></li>
  554.                                     <li class=\"page-item\"><a class=\"page-link dot\" href=\"#\">...</a></li>
  555.                                     <li class=\"page-item\"><a class=\"page-link\" href=\"#\">16</a></li>-->
  556.                                     <li class=\"page-item\" v-show=\"page<pages[pages.length-1]\" @click=\"getData(page+1)\"><a class=\"page-link\" href=\"#&\"><i class=\"fi-rs-angle-double-small-right\"></i></a></li>
  557.                                 </ul>
  558.                             </nav>
  559.                         </div>
  560.                     </div>
  561.                     <div class=\"col-lg-3 primary-sidebar sticky-sidebar\">
  562.                         <!--<div class=\"widget-category mb-30\">
  563.                             <h5 class=\"section-title style-1 mb-30 wow fadeIn animated\">Category</h5>
  564.                             <ul class=\"categories\">
  565.                                 <li><a href=\"shop-grid-right.html\">Shoes & Bags</a></li>
  566.                                 <li><a href=\"shop-grid-right.html\">Blouses & Shirts</a></li>
  567.                                 <li><a href=\"shop-grid-right.html\">Dresses</a></li>
  568.                                 <li><a href=\"shop-grid-right.html\">Swimwear</a></li>
  569.                                 <li><a href=\"shop-grid-right.html\">Beauty</a></li>
  570.                                 <li><a href=\"shop-grid-right.html\">Jewelry & Watch</a></li>
  571.                                 <li><a href=\"shop-grid-right.html\">Accessories</a></li>
  572.                             </ul>
  573.                         </div>-->
  574.                         <!-- Fillter By Price -->
  575.                         <div class=\"sidebar-widget price_range range mb-30\">
  576.                             <div class=\"widget-header position-relative mb-20 pb-10\">
  577.                                 <h5 class=\"widget-title mb-10\">Filter par prix</h5>
  578.                                 <div class=\"bt-1 border-color-1\"></div>
  579.                             </div>
  580.                             <div class=\"price-filter\">
  581.                                 <div class=\"price-filter-inner\">
  582.                                     <div id=\"slider-range\"></div>
  583.                                     <div class=\"price_slider_amount\">
  584.                                         <div class=\"label-input\">
  585.                                             <span>Intervalle:</span><input type=\"text\" id=\"amount\" name=\"price\"
  586.                                                                            placeholder=\"Add Your Price\"/>
  587.                                         </div>
  588.                                     </div>
  589.                                 </div>
  590.                             </div>
  591.                             <button class=\"btn btn-sm btn-default mt-10\" :disabled=\"disabled\" @click=\"getData(page,true)\"><i
  592.                                         class=\"fi-rs-filter mr-5\"></i> Filtrer
  593.                             </button>
  594.                             <div class=\"list-group\" v-if=\"totalItems\">
  595.                                 <div class=\"list-group-item mb-10 mt-10\">
  596.                                     <label class=\"fw-900\">Tailles</label>
  597.                                     <div class=\"custome-checkbox\">
  598.                                         <div class=\"row\">
  599.                                             <div v-for=\"entry in taillesFilter\" class=\"col-4\" style=\"white-space: nowrap\">
  600.                                                 <input class=\"form-check-input\" type=\"checkbox\" name=\"checkbox\"
  601.                                                        :id=\"'exampleCheckbox'+entry.name\" v-model=\"entry.selected\"
  602.                                                        @change=\"getData(page,true)\">
  603.                                                 <label class=\"form-check-label\" :for=\"'exampleCheckbox'+entry.name\"><span>{{ entry.name }}</span></label>
  604.                                                 <br>
  605.                                             </div>
  606.                                         </div>
  607.                                     </div>
  608.                                     <label class=\"fw-900 mt-15\">Couleurs</label>
  609.                                     <div class=\"attr-detail attr-color mb-15\">
  610.                                         <ul class=\"list-filter color-filter multi\">
  611.                                             <li :class=\"entry.selected ? 'active' : ''\" v-for=\"entry in couleursFilter\" @click=\"entry.selected = !entry.selected,getData(page,true)\">
  612.                                                 <a href=\"#\" :title=\"entry.name\">
  613.                                                     <span :style=\"{ 'background-color': entry.code ? entry.code :'#fff','border': '1px solid #ddd' }\"></span>
  614.                                                 </a>
  615.                                             </li>
  616.                                         </ul>
  617.                                     </div>
  618.                                 </div>
  619.                             </div>
  620.                         </div>
  621.                     </div>
  622.                 </div>
  623.             </div>
  624.         </section>
  625.         {% endverbatim %}
  626.     </main>
  627. {% endblock %}
  628. {% block footer %}
  629.     {{ parent() }}
  630. {% endblock %}
  631. {% block javascripts %}
  632.     {{ parent() }}
  633.     <script>
  634.         // Reinialiser les filtres de recherche
  635.         window.onbeforeunload = function () {
  636.             //unchecked your check box here.
  637.             \$(\"input[type='checkbox']\").prop('checked', false);
  638.             //app.getData(app.page);
  639.         };
  640.     </script>
  641.     <script src=\"{{ asset('front/assets/scripts/category/productsPromoDec.js') }}\"></script>
  642. {% endblock %}
  643. ""front/dec/promoProductsDec.html.twig""/home/sunshil/www/sunshine-elegance/templates/front/dec/promoProductsDec.html.twig");
  644.     }
  645. }