{% extends 'front/base.html.twig' %}{% block body %} <main class="main" > {% if sliders %} <section class="home-slider position-relative mb-30"> <div class="container"> <div class="home-slide-cover {#bg-grey-10#} mt-30"> <div class="hero-slider-1 style-4 dot-style-1 dot-style-1-position-1"> {% for slider in sliders %} <div class="single-hero-slider single-animation-wrap"> <div class="container"> <div class="row align-items-center slider-animated-1"> {% if slider.title %} <div class="col-lg-5 col-md-6"> <div class="hero-slider-content-2 m-4"> <h3 class="animated fw-900 text-brand">{{ slider.title}}</h3> {{ slider.description|raw }} <a class="animated btn btn-brush btn-brush-3" href="{{ slider.url}}" tabindex="0"> Visiter </a> </div> </div> {% endif %} <div class="{{ slider.title?"col-lg-7 col-md-6":"col-md-12" }}"> <div class="single-slider-img single-slider-img-1"> <img class="animated" src="{{ asset( slider.image) }}" alt="Sunshine Elegance" style="width: 100%;"> </div> </div> </div> </div> </div> {% endfor %} </div> <div class="slider-arrow hero-slider-1-arrow"></div> </div> </div> </section> {% endif %} <div id="app" class="pb-30"> <section class="section-padding" v-if="categories.length" v-for="(entry,index) in categories"> <div class="container pt-5 pb-5"> <div class="heading-tab d-flex"> <div class="heading-tab-left wow fadeIn animated"> <h3 class="section-title mb-30 hidden"><span>${ entry.category.name }</span></h3> </div> <a href="#&" class="view-more d-none d-md-flex mb-30 " @click="openCategory(entry.category.id,entry.category.name)">Voir plus<i class="fi-rs-angle-double-small-right"></i></a> </div> <div class="row"> <div class="col-lg-12 col-md-12"> <div class="tab-content wow fadeIn animated" id="myTabContent-1"> <div class="tab-pane fade show active" id="tab-one-1" role="tabpanel" aria-labelledby="tab-one-1"> <div class="carausel-4-columns-cover arrow-center position-relative"> <div class="slider-arrow slider-arrow-2 carausel-4-columns-arrow" :id="'carausel-4-columns-'+entry.category.id+'-arrows'"></div> <div class="carausel-4-columns carausel-arrow-center" :id="'carausel-4-columns-'+entry.category.id"> <div class="product-cart-wrap" v-for="prod in entry.products"> <div class="product-img-action-wrap col-product" @click="openProduct(prod.id,prod.name)"> <div class="product-img product-img-zoom"> <a href="#&"> <img class="default-img product-img" :src="'images/300-400/'+prod.image" :alt="prod.name"> {# <img class="hover-img" src="assets/imgs/shop/product-1-2.jpg" alt="Sunshine Elegance"> #} </a> </div> <div class="product-badges product-badges-position product-badges-mrg" v-if="(prod.promo && prod.promo.isValid) || !prod.stock || prod.isNew"> <span v-if="!prod.stock" class="hot mr-1" style="margin-right: 2px;font-size: 10px;">Rupture de stock</span> <span v-if="prod.isNew" class="new mr-1" style="margin-right: 2px;font-size: 10px;">Nouveau</span> <span class="best" v-if="prod.promo && prod.promo.isValid && prod.promo.discountType=='amount'" style="font-size: 10px;">-${ prod.promo.discountValue.toFixed(3) } <sup class="currency-style">TND</sup></span> <span class="best" v-if="prod.promo && prod.promo.isValid && prod.promo.discountType=='percent'" style="font-size: 10px;">-${ prod.promo.discountValue } %</span> </div> </div> <div class="product-content-wrap"> <h2><a href="#&" @click="openProduct(prod.id,prod.name)">${ prod.name }</a></h2> <div class="product-price"> <span v-if="!prod.promo || (prod.promo && !prod.promo.isValid)">${ prod.priceTTC.toFixed(3) } <sup class="currency-style">TND</sup></span> <span v-if="prod.promo && prod.promo.isValid && prod.promo.isValid && prod.promo.discountType=='amount'">${ (prod.priceTTC-prod.promo.discountValue).toFixed(3) } <sup class="currency-style">TND</sup></span> <span v-if="prod.promo && prod.promo.isValid && prod.promo.isValid && prod.promo.discountType=='percent'">${ (prod.priceTTC-(prod.priceTTC*prod.promo.discountValue/100)).toFixed(3) } <sup class="currency-style">TND</sup></span> <span class="old-price" v-if="prod.promo && prod.promo.isValid && prod.promo.isValid">${ prod.priceTTC.toFixed(3) } <sup class="currency-style">TND</sup></span> </div> <div class="product-action-1 show" @click="getProduit(prod.id)"> <button aria-label="Acheter maintenant" class="action-btn hover-up"><i class="fi-rs-shopping-bag-add"></i></button> </div> </div> </div> </div> </div> </div> <!--End tab-pane--> </div> <!--End tab-content--> </div> <!--End Col-lg-9--> </div> </div> </section> </div> </main>{% endblock %}{% block javascripts %} {{ parent() }} <script src="{{ asset('front/assets/scripts/home/home.js') }}"></script> <script> $("#preloader-active-loading").css('display', 'none'); </script>{% endblock %}