var/cache/dev/twig/1f/1f3722d9043a825eb2bd83b2c995708f.php line 81

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