templates/content/Portal.html.twig line 1

Open in your IDE?
  1. {% extends "layout/layout.html.twig" %}
  2. {% block content %}
  3. {% set locale = app.request.locale %}
  4. {% if locale == 'en_GB' %}
  5.     {% set locale = 'en' %}
  6. {% endif %}
  7.     <!--Start Home Banner-->
  8. <span class = "pagetype d-none" >Deafult Home Screen</span>
  9. <div id="section01" class="home-banner">
  10.   <div class="custom-slider home-slider ht-slides home-web-slider">
  11.   {% for homebanner in homebanners %}
  12.   {% set video = homebanner.video %}
  13.    
  14.     {% if homebanner.video %}
  15.     {% set video = video.data %}
  16.       
  17.         <div class="slide ">
  18.             <video id="home-video" class="video-js" muted autoplay loop preload="auto" poster="{{ homebanner.image }}" data-setup="{}" height="902">
  19.                 <source src="{{ video }}" type="video/mp4">
  20.             </video>
  21.         </div>
  22.        <!--   <div class="slide "><img src="<php echo $homebanner->getImage_mobile(); ?>" alt="" /></div> -->
  23.       {% else %}
  24.         <div class="slide"><img src="{{ homebanner.image }}" alt="" /></div>
  25.         <!-- End Mask -->
  26.         {% endif %}
  27.         {% endfor %}
  28.   </div>
  29.    <div class="custom-slider home-slider ht-slides home-mobile-slider">
  30.     {% for homebanner in homebanners %}
  31.     {% set video = homebanner.video_mobile %}
  32.       
  33.         {% if homebanner.video_mobile %}
  34.         {% set video = video.data %}
  35.         <div class="slide ">
  36.             <video id="home-video" class="video-js"  muted autoplay playsinline loop preload="auto" poster="{{ homebanner.image_mobile }}" data-setup="{}" height="902">
  37.                 <source src="{{ video }}" type="video/mp4">
  38.             </video>
  39.         </div>
  40.        <!--   <div class="slide "><img src="<php echo $homebanner->getImage_mobile(); ?>" alt="" /></div> -->
  41.       {% else %}
  42.         
  43.         <div class="slide"><img src="{{ homebanner.image_mobile }}" alt="{{"KarakServingtheoriginaltastesince1955"|trans }}" /></div>
  44.         <!---End Mask -->
  45.         {% endif %}
  46.         {% endfor %}
  47.   </div>
  48.   <!--- Mask  -->
  49.   <div class="banner-mask">
  50.   {% if locale == 'ar' %}
  51.     <!-- <img src="/static/assets/images/Mask_Image/Arabic Band_Desktop.png" alt="Rainbow AMM Footer English 1920"> -->
  52.     <img src="/static/assets/images/home_page_mask_images/mask_image_web_ar.png" alt="Rainbow AMM Footer English 1920">
  53.     {% else %}
  54.       <!-- <img src="/static/assets/images/Rainbow AMM Footer English 1920 copy.png" alt="Rainbow AMM Footer English 1920"> -->
  55.       <img src="/static/assets/images/home_page_mask_images/mask_image_web_en.png" alt="Rainbow AMM Footer English 1920">
  56.     {% endif %}
  57.   </div>
  58. </div>
  59.   <div class="banner-mask-mbl">
  60.     {% if locale == 'ar' %}
  61.     <!-- <img src="/static/assets/images/Mask_Image/Arabic Band for Mobile.png" alt="Rainbow AMM Footer English 1920"> -->
  62.     <img src="/static/assets/images/home_page_mask_images/mask_image_mobile_ar.png" alt="Rainbow AMM Footer English 1920">
  63.     {% else %}
  64.       <!-- <img src="/static/assets/images/Mask_Image/Rainbow English Band@2x (1).png" alt="Rainbow AMM Footer English 1920"> -->
  65.       <img src="/static/assets/images/home_page_mask_images/mask_image_mobile_en.png" alt="Rainbow AMM Footer English 1920">
  66.     {% endif %}
  67.   </div>
  68.   <a href="#section02" class="scrolldown"><span></span></a>
  69. <!--</div>-->
  70. <!--End Home Banner-->
  71. <!--Start World of Karak Section-->
  72. <section id="section02" class="home-section karak-section">
  73.   <div class="karak-section-holder">
  74.     <div class="section-heading">
  75.       <h2 class="sub-xl-heading gtm-contentval">{{ pimcore_input("karakheadline") }}</h2>
  76.       <a href="#section03" class="scrolldown"><span></span></a>
  77.     </div>
  78.     <div class="karak-slider-holder">
  79.       <div class="container custom-container">
  80.         <div class="row">
  81.           <div class="col-xl-9">
  82.             <h3 class="main-xl-heading gtm-contentval">{{ pimcore_input("Enjoytherichcreamytaste") }}</h3>
  83.           </div>
  84.           <div class="karak-mobile-image">
  85.             <img src="/static/assets/images/karakproducts1.png" alt="karakproducts">
  86.           </div>
  87.           <div class="col-xl-9 karak-slider-box">
  88.             <div class="custom-slider fill-slider karak-slider">
  89.            
  90.             {% set count = 1 %}
  91.               {% for product in products %}
  92.                   {% set regions = product.getRegions() %}
  93.                   {% set show = false %}
  94.                   {% if regions %}
  95.                       {% for region in regions %}
  96.                      
  97.                           {% if region in groupids %}
  98.                               {% set show = true %}
  99.                           {% endif %}
  100.                       {% endfor %}
  101.                   {% endif %}
  102.                   {% if show %}
  103.                       {% set count = count + 1 %}
  104.             
  105.                 {% if count <= 4 %}
  106.                   <div class="slide" data-aos="zoom-in-up">
  107.                     <div class="karak-box">
  108.                       <div class="row">
  109.                         <div class="col-md-5 col-xl-5 karak-img">
  110.                           
  111.                             {% if product.attributes %}
  112.                             <a href="/{{locale}}/{{"products"|trans }}/{{product.attributes[0].url}}">
  113.                             <img class="img-fluid" src="{{product.attributes[0].images[0].getFullPath() }}" xoriginal="{{product.attributes[0].images[0].path ~ product.attributes[0].images[0].filename }}" alt ="{{product.name}}" /></a>
  114.                           {% endif %}
  115.                         </div>
  116.                         <div class="col-md-7 col-xl-7 slide-product-info">
  117.                         {% if product.attributes %}
  118.                           <a class="remove-anchor-style1" href="/{{locale}}/{{"products"|trans }}/{{product.attributes[0].url}}">
  119.                             <h5>{{product.name}}</h5>
  120.                           </a>
  121.                           {% endif %}
  122.                           <ul class="list-unstyled con-list">
  123.                           {% for key , productattr in product.attributes %}
  124.                             
  125.                               {% if key < 3 %}
  126.                                 <li class="{{ key == 0 ? 'variantsbold' : '' }}"><a class="remove-anchor-style1 " href="/{{locale}}/{{"products"|trans }}/{{productattr.url}}">{{productattr.size}}</a></li>
  127.                              {% endif %}
  128.                           {% endfor %}
  129.                         {% if product.attributes %}
  130.                           {% set regionslinks = product.attributes[0].buttonlinks %}
  131.                                 {% set rlink =  [] %}
  132.                                 {% for key ,link in regionslinks %}
  133.                                     {% if link['country'].data == country %}
  134.                                         {% set rlink = link %}
  135.                                     {% endif %}
  136.                                 {% endfor %}
  137.                                 {% if not rlink %}
  138.                                     {% for key ,link in regionslinks %}
  139.                                         {% if link['country'].data == 'AE' %}
  140.                                             {% set rlink = link %}
  141.                                         {% endif %}
  142.                                     {% endfor %}
  143.                                 {% endif %}
  144.                                 {% if not rlink %}
  145.                                   {% set rlink = {
  146.                                       'lulu': { 'data': product.lulu },
  147.                                       'unioncool': { 'data': product.unioncool },
  148.                                       'amazon': { 'data': product.amazon },
  149.                                       'carrefour': { 'data': product.carrefour },
  150.                                       'c4': { 'data': '' },
  151.                                       'noon': { 'data': '' },
  152.                                       'danube': { 'data':'' },
  153.                                       'sultancenter': { 'data': '' },
  154.                                       'tawseel': { 'data': ''},
  155.                                       
  156.                                   } %}
  157.                                 {% endif %}
  158.                             {% endif %}
  159.                           </ul>
  160.                           <div class="link-holder">
  161.                     
  162.                             <button class="btn btn-primary ico-btn productbuynow mybutton"
  163.                             data-lulu="{{ (rlink['lulu']) ? rlink['lulu'].data : '' }}"
  164.                 data-union="{{ (rlink['unioncool']) ? rlink['unioncool'].data : '' }}"
  165.                 data-amazon="{{ (rlink['amazon']) ? rlink['amazon'].data : '' }}"
  166.                 data-carrefour="{{ (rlink['carrefour']) ? rlink['carrefour'].data : '' }}"
  167.                   data-c4="{{ (rlink['c4']) ? rlink['c4'].data : '' }}"
  168.                   data-noon="{{ (rlink['noon']) ? rlink['noon'].data : '' }}"
  169.                   data-danube="{{ (rlink['danube']) ? rlink['danube'].data : '' }}"
  170.                   data-tawseel="{{ (rlink['tawseel']) ? rlink['tawseel'].data : '' }}"
  171.                   data-sultancenter="{{ (rlink['sultancenter']) ? rlink['sultancenter'].data : '' }}" onclick="showModal()" value="Open Model">
  172.                               <i><img src="/static/assets/images/shopping-cart.svg" alt="shopping-cart"></i>
  173.                               <span>{{"buyNow"|trans }}</span>
  174.                             </button>
  175.                           </div>
  176.                         </div>
  177.                       </div>
  178.                     </div>
  179.                   </div>
  180.                      {% endif %}
  181.                 {% endif %}
  182.              {% endfor %}
  183.             </div>
  184.           </div>
  185.         </div>
  186.       </div>
  187.     </div>
  188.     <div class="karaktea-img" data-aos="fade-left" data-aos-delay="400">
  189.           {% if locale == 'ar' %}
  190.           <div class="m-image-sections">
  191.                 <div class="image-container">
  192.                     <img src="/static/assets/images/design-one.webp" alt="Rainbow Condensed Full Milk Cream" />
  193.                     <img src="/static/assets/images/design-two.webp" alt="Rainbow Evaporated Milk - Lite" />
  194.                     <img src="/static/assets/images/design-three.png" alt="Rainbow Milk - Lite" />
  195.                     <img src="/static/assets/images/design-four.png" alt="Rainbow Milk - Original" />
  196.                     <img src="/static/assets/images/design-five.png" alt="Rainbow Evaporated Milk - Original" />
  197.                     <img src="/static/assets/images/design-six.webp" alt="Rainbow Milk - Original Quality Milk" />
  198.                 </div>
  199.                 <p class="text-center karak-serving-text">في خدمتك منذ عام 1955</p>
  200.             </div>
  201.         {% else %}
  202.             <div class="m-image-sections">
  203.                 <div class="image-container">
  204.                     <img src="/static/assets/images/design-one.webp" alt="Rainbow Condensed Full Milk Cream" />
  205.                     <img src="/static/assets/images/design-two.webp" alt="Rainbow Evaporated Milk - Lite" />
  206.                     <img src="/static/assets/images/design-three.png" alt="Rainbow Milk - Lite" />
  207.                     <img src="/static/assets/images/design-four.png" alt="Rainbow Milk - Original" />
  208.                     <img src="/static/assets/images/design-five.png" alt="Rainbow Evaporated Milk - Original" />
  209.                     <img src="/static/assets/images/design-six.webp" alt="Rainbow Milk - Original Quality Milk" />
  210.                 </div>
  211.                 <p class="text-center karak-serving-text">Serving you since 1955</p>
  212.             </div>
  213.        {% endif %}
  214.     </div>
  215. </section>
  216. <!--End World of Karak Section-->
  217. <!-- New section Atif -->
  218. <section class="home-section karak-section trending-recipe">
  219.     <div class="karak-section-holder">
  220.       <div class="section-heading">
  221.         <h1 class="sub-xl-heading">{{ pimcore_input("AddMagictoYourHomeCookingwithRainbow") }}</h1>
  222.         <p class="para">{{ pimcore_input("WhetheritsBreakfastLunchDinnerorSpecialOccasionfindarecipereadyforyoutotryDiscoverdeliciousnesswitheveryRainbowproduct") }}</p>
  223.       </div>
  224.       <div class="karak-slider-holder">
  225.         <div class="container custom-container">
  226.           <div class="row">
  227.             <div class="karak-mobile-image">
  228.               <img src="/static/assets/images/karakproducts.png" alt="{{ locale == 'ar' ? 'اشتروا حليب أبو قوس الأصلي بأفضل سعر في الإمارات العربية المتحدة والمملكة العربية السعودية' : 'Buy Rainbow Quality Milk Original at Best Price in UAE & Saudi Arabia' }}">
  229.             </div>
  230.           </div>
  231.         </div>
  232.       </div>
  233.     </div>
  234.     <div class="karaktea-img add-magic-to-home-edited" data-aos="fade-left" data-aos-delay="400">
  235.       <img src="/static/assets/images/cullinary-products.png" alt="cullinary products">
  236.     </div>
  237.   </section>
  238. <!-- New section Atif End -->
  239. <!--Start Featured Recipes-->
  240. <section id="section06" class="home-section similar-recipes featured-recipes portalnew" >
  241.   <div class="container-xl custom-container-xl">
  242.     <div class="section-heading">
  243.       <!-- <h2 class="sub-xl-heading"> <?= $this->translate("FeaturedRecipes"); ?></h2> -->
  244.       <a href="#section07" class="scrolldown"><span></span></a>
  245.     </div>
  246.     <!--Start Slider-->
  247.     <div class="row custom-slider fill-dots similar-slider">
  248.     {% for key , featured in recipe %}
  249.      
  250.         <div class="col-xl-3 slide p-slide-wrap " data-aos="zoom-in-up">
  251.           <div class="slide-box p-slide-wrap">
  252.             <figure class="similar-img home-img-slider">
  253.               <a class="" href="/{{locale}}/{{"all-recipes-link"|trans }}/{{featured.url}}">
  254.                 <img src="{{featured.featured_image}}" alt="{{featured.name}} {{"Recipe"|trans }}" class="img-fluid ">
  255.               </a>
  256.             </figure>
  257.             <a class="remove-anchor-style1" href="/{{locale}}/{{"all-recipes-link"|trans }}/{{featured.url}}">
  258.               <h3 class="similar-title">{{featured.name}}</h3>
  259.             </a>
  260.              {% set rating =  getmyavghome(featured.getId()  ) %}
  261.            
  262.              
  263.             <!--Start Rating Star-->
  264.             <div class="rating-holder">
  265.               <fieldset class="ratings rating-sm">
  266.                        {% if rating == '5' %} 
  267.                     <input type="radio" value="5" checked>
  268.                       {% else %}
  269.                     <input type="radio"  value="5" >
  270.                     {% endif %} 
  271.                     <label class="full" for="1rviewar5" title="5 stars"></label>
  272.                    {% if rating == '4' %} 
  273.                     <input type="radio"  value="4" checked>
  274.                      {% else %}
  275.                     <input type="radio"  value="4" >
  276.                    {% endif %} 
  277.                     <label class="full" for="1reviwstar4" title=" 4 stars"></label>
  278.                    {% if rating == '3' %} 
  279.                     <input type="radio"  value="3" checked>
  280.                      {% else %}
  281.                     <input type="radio"  value="3" >
  282.                    {% endif %} 
  283.                     <label class="full" for="1reviewsar3" title="3 stars"></label>
  284.                    {% if rating == '2' %} 
  285.                     <input type="radio"  value="2" checked>
  286.                       {% else %}
  287.                     <input type="radio"  value="2" >
  288.                     {% endif %} 
  289.                     <label class="full" for="1reviestar2" title="2 stars"></label>
  290.                    {% if rating == '1' %} 
  291.                     <input type="radio"  value="1" checked>
  292.                      {% else %}
  293.                     <input type="radio"  value="1">
  294.                    {% endif %} 
  295.                     <label class="full" for="1reviewar1" title="1 star"></label>
  296.                     
  297.                   </fieldset>
  298.             </div>
  299.             <!--End Rating Star-->
  300.             <div class="serving-info">
  301.               <ul class="list-unstyled">
  302.                 <li class="time">{{featured.time}} {{"mins"|trans }}</li>
  303.                 {% if featured.serving_options.Items[0].serving == '1' %}
  304.                   <li class="serve">{{featured.serving_options.Items[0].serving}} {{ featured.serving_options.Items[0].serving2 ? '- ' ~ featured.serving_options.Items[0].serving2 : '' }}{{"Serving"|trans }}</li>
  305.                   {% else %}
  306.                   <li class="serve">{{featured.serving_options.Items[0].serving}} {{ featured.serving_options.Items[0].serving2 ? '- ' ~ featured.serving_options.Items[0].serving2 : '' }}{{"Servings"|trans }}</li>
  307.                 {% endif %}
  308.               </ul>
  309.             </div>
  310.             <div>
  311.               <p>{{featured.short_description|striptags}}</p>
  312.             </div>
  313.           </div>
  314.         </div>
  315.      {% endfor %}
  316.     </div>
  317.     <!--End Slider-->
  318.     <div class="btn-holder view-recieps-btn">
  319.       <a href="/{{locale}}/{{"all-recipes"|trans }}" class="btn btn-primary ico-btn" data-aos="zoom-in-up">
  320.         <i class="icon-dish"></i>
  321.         <span>{{"ViewallRecipes"|trans }}</span>
  322.       </a>
  323.     </div>
  324.   </div>
  325. </section>
  326. <!--End Featured Recipes-->
  327. <!--End Recipe of the Day Section-->
  328. <!--Start Our Products-->
  329. <section id="section04cat" class="home-section our-products">
  330.   <div class="products-header">
  331.     <h2 class="sub-xl-heading">{{"OurProducts"|trans }}</h2>
  332.     <span class="custom-dropdown">
  333.       <select class="getcat" @change="updateMe">
  334.         <option value="all">{{"AllCategories"|trans }}</option>
  335.         <template v-for="(product,index) in our_products">
  336.           <option :alt ="index">{{"{{index}}"}} </option>
  337.         </template>
  338.       </select>
  339.     </span>
  340.     <a href="#section05" class="scrolldown"><span></span></a>
  341.   </div>
  342.   <template v-if="isLoading">
  343.     <div style="text-align:center">
  344.       <svg style="width: 100px;
  345.   height: 100px;
  346.   margin: 20px;
  347.   display:inline-block;" version="1.1" id="L9" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 0 0" xml:space="preserve">
  348.         <path fill="#000" d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50">
  349.           <animateTransform attributeName="transform" attributeType="XML" type="rotate" dur="1s" from="0 50 50" to="360 50 50" repeatCount="indefinite" />
  350.         </path>
  351.       </svg>
  352.     </div>
  353.   </template>
  354.   <template v-else>
  355.     <!--Start Product Slider-->
  356.     <div class="product-sliderbox">
  357.       <div class="container-xl custom-container-xl">
  358.         <div class="custom-slider fill-slider  product-slider getcatdata">
  359.           <template v-for="(product,index) in listProducts">
  360.             <div v-if='typeof product === "object"' class="slide" data-aos="zoom-in-up">
  361.               <div class="slide-product-holder">
  362.                 <div class="slide-product-img" :class="`${product[2].length > 0 ? 'img'+ product[2][0] : ''}`">
  363.                   <a :href="`/{{locale}}/{{"products"|trans }}/${product[13]}`"> <img class="img-fluid" :src="product[1]" :xoriginal="product[1]"  :alt ="product[0]"/></a>
  364.                   
  365.                 </div>
  366.                 <div class="slide-product-info custom-slide-product-info">
  367.                   <a class="remove-anchor-style1" :href="`/{{locale}}/{{"products"|trans }}/${product[13]}`">
  368.                     <h5>{{"{{product[0]}}"}} </h5>
  369.                   </a>
  370.                   <ul class="list-unstyled con-list">
  371.                     <li :class="`${index == 0 ? 'variantsbold' : ''} `" v-for="(list,index) in product[2]">
  372.                       <a class="remove-anchor-style1" :href="`/{{locale}}/{{"products"|trans }}/${product[14][index]}`">{{"{{list}}"}}</a></li>
  373.                   </ul>
  374.                   <div class="link-holder">
  375.                     <a class="btn btn-secondary ico-btn" :href="`/{{locale}}/{{"products"|trans }}/${product[13]}`">
  376.                       <i class="fa fa-search"></i>
  377.                       <span>{{"KnowMore"|trans }}</span>
  378.                     </a>
  379.                     <a class="btn btn-primary ico-btn productbuynow mybutton"
  380.                     :data-lulu="`${product[4]}`"
  381.                     :data-union="`${product[5]}`"
  382.                     :data-amazon="`${product[6]}`"
  383.                     :data-carrefour="`${product[7]}`"
  384.                     :data-c4="`${product[8]}`"
  385.                     :data-noon="`${product[9]}`"
  386.                     :data-danube="`${product[10]}`"
  387.                     :data-tawseel="`${product[11]}`"
  388.                     :data-sultancenter="`${product[12]}`"
  389.                     >
  390.                       <i><img src="/static/assets/images/shopping-cart.svg" alt="shopping-cart"></i>
  391.                       <span>{{"Buy Now!"|trans }}</span>
  392.                     </a>
  393.                   </div>
  394.                 </div>
  395.               </div>
  396.             </div>
  397.           </template>
  398.         </div>
  399.         </div>
  400.       </div>
  401.       <!--End Product Slider-->
  402.       <!--End Our Products-->
  403.   </template>
  404. </section>
  405. <!--Start Know More-->
  406. <section id="section07" class="home-section know-more">
  407. {% for footervideo in footervideo %}
  408.      <div class="d-none d-sm-block">
  409.         <img src="{{footervideo.footer_image}}" alt="footer image" class="video-js" id="landscape-video">
  410.             <!-- <video id="landscape-video" class="video-js" playsinline autoplay loop muted poster="/static/assets/images/account-bg.jpg" data-setup="{}" width="100%" height="400" poster = "<php echo $footervideo->getFooter_image(); ?>" >
  411.             <source src="<php echo $video->getPath() . $video->getFilename(); ?>" type="video/mp4">
  412.             </video> -->
  413.      </div>
  414. {% endfor %}
  415. {% for footervideo in footervideo %}
  416.     <div class="d-block d-sm-none">
  417.         <!-- <video id="landscape-video" class="video-js" playsinline autoplay loop muted  data-setup="{}" preload="auto"  width="100%" height="400" poster = "<php echo $footervideo->getFooter_image_mobile(); ?>">
  418.         <source src="<php echo $video1->getPath() . $video1->getFilename(); ?>" type="video/mp4">
  419.         </video> -->
  420.         <img src="{{footervideo.footer_image_mobile}}" alt="footer image mobile" class="video-js" id="landscape-video">
  421.     </div>
  422. {% endfor %}
  423.   <div class="know-more-holder footer-up-section-home">
  424.     <!-- <h2 class="sub-xl-heading" data-aos="zoom-in-up"><?= $this->translate("The proud taste maker you know & love"); ?></h2> -->
  425.     <!-- <p data-aos="zoom-in-up"> We’ve been at the heart of kitchens across the Middle East since 1955. Rainbow means rich taste and quality, every time. It means products made with fresh milk, sourced from healthy cows in the lush pastures of Europe.</p> -->
  426.     <div class="btn-holder">
  427.       <a class="btn btn-info ico-btn" href="/{{locale}}/{{"about-us-link"|trans }}" tabindex="0" data-aos="zoom-in-up">
  428.         <i class="fa fa-search"></i>
  429.         <span>{{"knowMore"|trans }}</span>
  430.       </a>
  431.     </div>
  432.   </div>
  433. </section>
  434. <!--End Know More-->
  435. {# <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script> #}
  436. <script src="/static/assets/js/vue.js"></script>
  437. <!-- <script src="/static/assets/js/jquery-3.5.1.min.js"></script> -->
  438. <script src="/static/assets/js/aos.js"></script>
  439. <!-- <script src="/static/assets/js/js.cookie.js"></script> -->
  440. <script type="text/javascript">
  441.   {# window.our_product_homepage = new Vue({
  442.     el: "#section04cat",
  443.     data: {
  444.       altVal: '',
  445.       selectCat: 'all',
  446.       our_products: {{ categorydata| raw }},
  447.       isLoading: false
  448.     },
  449.     methods: {
  450.       updateMe(i) {
  451.         // $('.product-slider').slick('unslick');
  452.         this.selectCat = i.target.value;
  453.         this.isLoading = true;
  454.         // console.log("Loading", this.isLoading)
  455.         setTimeout(() => {
  456.           this.isLoading = false;
  457.           // console.log("Loading Inside ", this.listProducts)
  458.           // console.log("Loading Inside Timeout", this.isLoading,this.listProducts.length)
  459.           if (!this.isLoading && this.listProducts.length > 0) {
  460.             setTimeout(()=>{
  461.             console.log('start prodSlider');
  462.             prodSlider();
  463.             ShowBuyNowModel();
  464.             console.log('end prodSlider');
  465.             //   $('.product-slider').slick({
  466.             //   slidesToShow: 4,
  467.             //   arrows: true,
  468.             //   dots: false,
  469.             //   infinite: false,
  470.             //   responsive: [{
  471.             //     breakpoint: 1159,
  472.             //     settings: {
  473.             //       arrows: false,
  474.             //       slidesToShow: 2,
  475.             //       dots: true
  476.             //     }
  477.             //   }, {
  478.             //     breakpoint: 767,
  479.             //     settings: {
  480.             //       arrows: true,
  481.             //       slidesToShow: 1,
  482.             //       dots: false
  483.             //     }
  484.             //   }]
  485.             // });
  486.             },1);
  487.           }
  488.         }, 5);
  489.       }
  490.     },
  491.     computed: {
  492.       listProducts() {
  493.         // console.log(this.selectCat)
  494.         let products = [];
  495.         if (this.selectCat !== 'all') {
  496.           // console.log('our listProducts',this.our_products);
  497.           // console.log(this.selectCat);
  498.           products = this.our_products[this.selectCat];
  499.           console.log('Categorized filtered prod data', products);
  500.           // return this.our_products[this.selectCat];
  501.           // ;
  502.         }else{
  503.           for (index in this.our_products) {
  504.             products = [...products, ...this.our_products[index]]
  505.           }
  506.           // console.log("After for loop", products);
  507.         }
  508.         // let products = [];
  509.         // for (index in this.our_products) {
  510.         //   products = [...products, ...this.our_products[index]]
  511.         // }
  512.         if(document.documentElement.lang == "ar"){
  513.           products = products.reverse();
  514.           // console.log("initial Prod Data After Reverse",products);
  515.         }        
  516.         return products;
  517.       }
  518.     }
  519.   }); #}
  520. </script>
  521. <!--End Know More-->
  522.     {% if (locale =='ar') %}
  523.         {% set topMenu ="/en" %}
  524.       {% else %}
  525.         {% set topMenu ="/ar" %}
  526.     {% endif %}
  527. <script type="text/javascript">
  528.     var _TopMenuLink = "{{topMenu }}"
  529.      var vuejsresponse = {{ categorydata| raw }}
  530.     $(document).ready(function(){
  531.       ShowBuyNowModel();
  532.     });
  533. </script>
  534. {% endblock %}