templates/Recipe/recipesdetail.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 Banner Video-->
  8.     <span class = "pagetype d-none" >Recipe Detail Page</span>
  9.     <div class="banner-video abc">
  10.         {% if recipedetails.banner_video %}
  11.           <video id="banner-video" class="video-js" muted autoplay loop preload="auto" poster="{{ recipedetails.video_thumbnail}}" data-setup="{}">
  12.             <source src="{{recipedetails.banner_video.data}}" type="video/mp4">
  13.           </video>
  14.           <!-- <img class="banner-video" width="100%" src="/static/assets/images/Products Listing Image (spotlight) Desktop.png" alt=""> -->
  15.         {% else %}
  16.           <img class="banner-video" width="100%" src="{{ recipedetails.video_thumbnail}}" alt="{{recipedetails.name}}">
  17.         {% endif %}
  18.       <!--Start Floating Button-->
  19.       <div class="float-holder">
  20.         <div class="float-btn">
  21.           <a href="#GiveReviewtoForm">
  22.             <i class="icon-favorite-circle"></i>
  23.             <span>{{ "Giveyourreview"|trans }}</span>
  24.             <!-- {{"Giveyourreview"|trans }} -->
  25.           </a>
  26.         </div>
  27.       </div>
  28.       <!--End Floating Button-->
  29.     </div>
  30.     <div class="banner-video home-mobile-slider ">
  31.         {% if recipedetails.banner_video_mobile %}
  32.           <video id="banner-video" class="video-js" muted autoplay playsinline loop preload="auto" poster="{{recipedetails.video_thumbnail_mobile}}" data-setup="{}">
  33.             <source src="{{recipedetails.banner_video_mobile.data}}" type="video/mp4">
  34.           </video>
  35.           <!-- <img class="banner-video" width="100%" src="/static/assets/images/Products Listing Image (spotlight) Desktop.png" alt=""> -->
  36.         {% else %} 
  37.           <img class="banner-video-mobile" width="100%" src="{{recipedetails.video_thumbnail_mobile}}" alt="{{recipedetails.name}}">
  38.         {% endif %}
  39.       <!--Start Floating Button-->
  40.       <div class="float-holder">
  41.         <div class="float-btn">
  42.           <a href="#GiveReviewtoForm">
  43.             <i class="icon-favorite-circle"></i>
  44.             <span>{{"Giveyourreview"|trans }}</span>
  45.             <!-- {{"Giveyourreview"|trans }} -->
  46.           </a>
  47.         </div>
  48.       </div>
  49.       <!--End Floating Button-->
  50.     </div>
  51.   <!--End Banner Video-->
  52.   <!--Start Recipe Holder-->
  53.     <section class="recipe-holder">
  54.       <div class="container custom-container">
  55.         <!--Start Breadcrumbs-->
  56.         <nav aria-label="breadcrumb" class="breadcrumb-holder">
  57.           <ol class="breadcrumb custom-breadcrumb-class">
  58.             <li class="breadcrumb-item"><a href="/{{locale}}">{{"Home"|trans }}</a></li>
  59.             <li class="breadcrumb-item"><a href="/{{locale}}/{{"recipes-link"|trans }}">{{"Recipes"|trans }}</a></li>
  60.             <li class="breadcrumb-item"><a href="javascript:;">{{(recipedetails.category) ? recipedetails.category[0].name : ''}}</a></li>
  61.             <li class="breadcrumb-item active" aria-current="page">{{recipedetails.name}}</li>
  62.           </ol>
  63.         </nav>
  64.         <!--End Breadcrumbs-->
  65.         <!--Start Recipe Box-->
  66.         <div class="recipe-box">
  67.           <!--Start Recipe Image and Title-->
  68.           <div class="row recipe-box-1">
  69.             <!--Start Recipe Image-->
  70.             <div class="col-md-5 col-xl-5 order-md-2 recipe-img-holder  aos-init aos-animate" data-aos="zoom-in-left"
  71.                 data-aos-duration="500">
  72.               <!-- <figure class="recipe-img">
  73.                     <img alt="" class="" src="assets/images/recipe-img.png" />
  74.                   </figure> -->
  75.               <figure class="recipe-img recipe-imgshow aos-init aos-animate" data-aos="zoom-in-up" data-aos-offset="500">
  76.                 <img alt="{{recipedetails.name}}" src="{{recipedetails.featured_image}}" />
  77.               </figure>
  78.             </div>
  79.             <!--End Recipe Image-->
  80.             <!--Start Recipe Title-->
  81.             <div class="col-md-7 col-xl-7 order-md-1">
  82.               <h1 class="main-heading gtm-contentval" >{{recipedetails.name}}</h1>
  83.             </div>
  84.             <!--End Recipe Title-->
  85.           </div>
  86.           <!--End Recipe Image and Title-->
  87.           <!--Start Rating Holder-->
  88.           <div class="recipe-box-2">
  89.             <!--Start Rating Info-->
  90.             <div class="rating-holder">
  91.               <!--Start Rating Star-->
  92.             
  93.               {% set max = 0 %}
  94.               {% set n = reviews|length %}
  95.               {% if reviews %}
  96.                 {% for Reviews in reviews %}
  97.                   {% if Reviews.name %}
  98.                     {% set max = max + Reviews.rating %}
  99.                   {% endif %}
  100.                 {% endfor %}
  101.               {% endif %}
  102.               {% if max != 0 %}
  103.                 {% set rating = (max / n)|round %}
  104.               {% else %}
  105.                 {% set rating = 0 %}
  106.               {% endif %}
  107.               {% if n > 0 %}
  108.                 {% for key , Reviews in reviews %}
  109.                   {% if key == 0 %}
  110.                     <fieldset class="ratings">
  111.                 
  112.                         {% if rating == '5' %} 
  113.                           <input type="radio" value="5" checked>
  114.                         {% else %}
  115.                           <input type="radio"  value="5" >
  116.                         {% endif %}
  117.                         <label class="full" for="1rviewar5" title="5 stars"></label>
  118.                         {% if rating == '4' %} 
  119.                           <input type="radio"  value="4" checked>
  120.                         {% else %}
  121.                           <input type="radio"  value="4" >
  122.                         {% endif %} 
  123.                         <label class="full" for="1reviwstar4" title=" 4 stars"></label>
  124.                         {% if rating == '3' %} 
  125.                           <input type="radio"  value="3" checked>
  126.                         {% else %}
  127.                           <input type="radio"  value="3" >
  128.                         {% endif %}
  129.                         <label class="full" for="1reviewsar3" title="3 stars"></label>
  130.                         {% if rating == '2' %} 
  131.                           <input type="radio"  value="2" checked>
  132.                         {% else %}
  133.                           <input type="radio"  value="2" >
  134.                         {% endif %}
  135.                         <label class="full" for="1reviestar2" title="2 stars"></label>
  136.                         {% if rating == '1' %} 
  137.                           <input type="radio"  value="1" checked>
  138.                         {% else %}
  139.                           <input type="radio"  value="1">
  140.                         {% endif %}
  141.                         <label class="full" for="1reviewar1" title="1 star"></label>
  142.                     </fieldset>
  143.                   {% endif %}
  144.                 {% endfor %}
  145.             
  146.               {% else %}
  147.                 <fieldset class="ratings">
  148.                       <input type="radio" id="naddreviewstar5" name="naddreviewrating" value="5">
  149.                       <label class="full" for="naddreviewstar5" title="5 stars"></label>
  150.                       <input type="radio" id="naddreviewstar4" name="naddreviewrating" value="4">
  151.                       <label class="full" for="naddreviewstar4" title=" 4 stars"></label>
  152.                       <input type="radio" id="naddreviewstar3" name="naddreviewrating" value="3">
  153.                       <label class="full" for="naddreviewstar3" title="3 stars"></label>
  154.                       <input type="radio" id="naddreviewstar2" name="naddreviewrating" value="2">
  155.                       <label class="full" for="naddreviewstar2" title="2 stars"></label>
  156.                       <input type="radio" id="naddreviewstar1" name="naddreviewrating" value="1">
  157.                       <label class="full" for="naddreviewstar1" title="1 star"></label>
  158.                     </fieldset>
  159.               {% endif %}
  160.               <!--End Rating Star-->
  161.               <!--Start Rating and Review Count-->
  162.               <div class="rating-info">
  163.                 <span class="rating-count">{{ratingcount}} {{"Ratings"|trans }}</span><span class="review-count"> {{ratingcount}} {{"Reviews"|trans }}</span>
  164.               </div>
  165.               <!--End Rating and Review Count-->
  166.             </div>
  167.             <!--End Rating Info-->
  168.             <!--Start Serving Info-->
  169.             <div class="serving-info">
  170.               <ul class="list-unstyled">
  171.                 <li class="time">{{recipedetails.time }} {{"mins"|trans }}</li>
  172.                 <li class="serve">{{recipedetails.serving }} {{"servings"|trans }}</li>
  173.                 {# <li class="calories">{{ floor(recipedetails.calories/recipedetails.serving) }} {{"kcal"|trans }}</li> #}
  174.               </ul>
  175.             </div>
  176.             <!--End Serving Info-->
  177.           </div>
  178.           <!--End Rating Holder-->
  179.           <!--Start Recipe Detail Section-->
  180.           <div class="recipe-box-3">
  181.             <!--Start Recipe Detail-->
  182.             <div class="overflow-bg recipe-detail rd-box" data-aos="zoom-in-right">
  183.               <div class="row">
  184.                 <div class="col-md-8 col-xl-7">
  185.                   <span class="gtm-contentval">{{ recipedetails.description|striptags }}</span>
  186.                 </div>
  187.               </div>
  188.             </div>
  189.             <!--End Recipe Detail-->
  190.             <!--Start Share Box-->  
  191.             {% if app.session.get('loginUserName') %}
  192.                 <div class="share-box">
  193.                   <ul class="list-unstyled">
  194.                           {% if Likedcount == 1 %}                  
  195.                             <li class="liked" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="500">
  196.                               <a id="btnRecipeLike" href="javascript:void(0);">{{"like-btn"|trans }}</a>
  197.                             </li>
  198.                           {% else %}
  199.                             <li class="like" onclick="loyaltyProgram(this,{{recipedetails.id}},'Like','{{locale}}')" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="500">
  200.                               <a id="btnRecipeLike" href="javascript:void(0);">{{"like-btn"|trans }}</a>
  201.                             </li>
  202.                           {% endif %}
  203.                           {% if Sharedcount == 1 %}       
  204.                             <li class="shared recipeshare" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="500">
  205.                               <a  href="javascript:void(0);" class="" >{{"share-btn"|trans }}</a>
  206.                             </li>
  207.                           {% else %}
  208.                             <li class="share recipeshare" onclick="loyaltyProgram(this,{{recipedetails.id}},'Share','{{locale}}')" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="500">
  209.                               <a  href="javascript:void(0);" class="" >{{"share-btn"|trans }}</a>
  210.                             </li>
  211.                           {% endif %}
  212.                           {% if Savedcount == 1 %}  
  213.                             <li class="saved" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="500" >
  214.                               <a id="btnRecipeSave" href="javascript:void(0);" >{{"Save"|trans }}</a>
  215.                             </li>
  216.                           {% else %}
  217.                             <li class="save" onclick="loyaltyProgram(this,{{recipedetails.id}},'Save','{{locale}}')"  data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="500" >
  218.                               <a id="btnRecipeSave" href="javascript:void(0);" >{{"Save"|trans }}</a>
  219.                             </li>
  220.                           {% endif %}
  221.                           <!-- <li class="print" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="500"><p onclick="window.print()"><?= $this->translate("Print-icon"|trans }}</p></li> -->
  222.                   </ul>
  223.                 </div>
  224.             {% endif %}
  225.             <!--End Share Box-->
  226.           </div>
  227.           <!--End Recipe Detail Section-->
  228.         </div>
  229.         <!--End Recipe Box-->
  230.         <!--Start Tabs-->
  231.         <div class="cooking-tabs">
  232.           <!--Start Tab Titles-->
  233.           <ul class="row nav nav-pills" id="cooking-tab" role="tablist">
  234.             <li class="col-md-6 col-xl-6 nav-item" role="presentation">
  235.               <class="nav-link sub-sm-heading active" id="ingredients-tab" data-toggle="pill" href="#ingredients"  role="tab" aria-controls="ingredients" aria-selected="true"> {{"ingredients"|trans }} ( {{recipedetails.serving_options.items[0].ingredient|length }}  )</a>
  236.               <!-- <= $this->translate("IngredientHeading"|trans }} -->
  237.             </li>
  238.             <li class="col-md-6 col-xl-6 nav-item" role="presentation">
  239.               <class="nav-link sub-sm-heading" id="instruction-tab"  data-toggle="pill" href="#instruction" role="tab" aria-controls="instruction" aria-selected="false">{{"instructions"|trans }}</a>
  240.             </li>
  241.           </ul>
  242.           <!--End Tab Titles-->
  243.           <!--Start Tab Content-->
  244.           <div class="row tab-content" id="cooking-tabContent">
  245.             <!--Start Ingredients Tab Content-->
  246.             <div class="col-md-6 col-xl-6 tab-pane fade show active" id="ingredients" role="tabpanel" aria-labelledby="ingredients-tab">
  247.               <!--Start Serving Count-->
  248.                 <div class="number-holder">
  249.                   <!-- <div class="number">
  250.                     <span class="btn minus">
  251.                       <class="icon-minus-circle"></i>
  252.                     </span>
  253.                     <input type="text" value="1 Servings" />
  254.                     <span class="btn plus">
  255.                       <class="icon-add-circle"></i>
  256.                     </span>
  257.                   </div> -->
  258.                   <!-- <= $this->translate("Serving-icon"); > -->
  259.                   <form action="" method="get">
  260.                     <div class="select">
  261.                       <select name="select_catalog" id="select_catalog" class="selectpicker">
  262.                         {% for key servingoptions in recipedetails.serving_options %}
  263.                           <option value="{{key}}">{{"Servings"|trans }}
  264.                               {{servingoptions.Serving}} 
  265.                           </option>
  266.                         {% endfor %}
  267.                       </select>
  268.                     </div>
  269.                   </form>
  270.                 </div>
  271.                 <!--End Serving Count-->
  272.               <!--Start Ingredients List-->
  273.               <ul class="list-unstyled ingredients-list">
  274.               {% set shareing = []  %}
  275.             {% for servingoptions in recipedetails.serving_options %}
  276.                 {% for ingredients in servingoptions.ingredient %}
  277.                     {% if locale == 'ar' %}
  278.                         {% set shareing shareing|merge([ingredients.ingqtyunit_ar.data " " ingredients.ingredient.data.name]) %}
  279.                   {% else %}
  280.                         {% set shareing shareing|merge([ingredients.ingqtyunit.data " " ingredients.ingredient.data.name]) %}               
  281.                     {% endif %}
  282.                   {# <li style="display:{{ (i == 0) ? 'block' : 'none' }}" class="wel switching{{i}} hideingredients" data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-duration="3{{ k * 2 }}0" > #}
  283.                   <li class="wel switching{{i}} hideingredients  {{ (i == 0) ? 'display-blockk' : 'display-nonee' }} " data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-duration="3{{ k * 2 }}0" >
  284.                     {# {{ (locale =='en') ? serve:serve_ar}} #}
  285.                   <label class="getingred check-cbox" for="switching{{ i ~ k }}">
  286.                     <input type="checkbox" class="check-control" id="switching{{ i ~ k }}"  value="switching{{ i ~ k }}">
  287.                     <span class="check-mark"></span>
  288.                     {% if locale == 'ar' %}
  289.                       <span>{{ingredients.ingqtyunit_ar.data ' ' ingredients.ingredient.data.name}}</span>
  290.                       {% else %}
  291.                     <span>{{ingredients.ingqtyunit.data  ' ' ingredients.ingredient.data.name}}</span>
  292.                       {% endif %}
  293.                     <div class="lable-img">
  294.                       <img alt="" class="" src="{{ ingredients.ingredient.data.image }}" />
  295.                     </div>
  296.                   </label>
  297.                   </li>
  298.                   {% if == %}
  299.                     {% if recipedetails.featured_product %}
  300.                       {% for recipe_feature_products in recipedetails.featured_product %}
  301.               
  302.                           {% set regions recipe_feature_products.regions %}
  303.                           {% set show false %}
  304.                             {% if regions %}
  305.                               {% for key region in regions %}
  306.                                   {% if region in  groupids %}
  307.                                     {% set show true %}
  308.                                   {% endif %}
  309.                               {% endfor %}
  310.                           {% endif %}
  311.                           {% if show %}
  312.                   
  313.                           
  314.                           {% set regionslinks recipe_feature_products.attributes()[0].buttonlinks %}
  315.                           {% set rlink =  [] %}
  316.                             {% for key link in regionslinks %}
  317.                                 {% if link['country'].data == country %}
  318.                                     {% set rlink link %}
  319.                                 {% endif %}
  320.                             {% endfor %}
  321.                               {% if not rlink %}
  322.                                 {% for key link in regionslinks %}
  323.                                     {% if link['country'].data == 'AE' %}
  324.                                         {% set rlink link %}
  325.                                     {% endif %}
  326.                                 {% endfor %}
  327.                             {% endif %}
  328.                       
  329.                         <li class="hel switching{{ i }} hideingredients featured-product  {{ (i == 0) ? 'display-blockk' : 'display-nonee' }}" data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-duration="360">
  330.                     <!-- <= $this->translate("FeaturedProduct"|trans }} -->
  331.                         <!-- <h3 class="sub-heading head-desktop">Featured Product</h3> -->
  332.                     <div class="product-holder">
  333.                       <div class="row">
  334.                         <div class="col-5 col-md-5 col-xl-5 product-img">
  335.                         {# {% for item in recipe_feature_products.images.Items %} #}
  336.                           {% if recipe_feature_products.attributes()[0].images %}
  337.                             <a  href="/{{locale}}/{{"products-link"|trans }}/{{recipe_feature_products.attributes()[0].url }}"><img class="img-fluid"  src="{{recipe_feature_products.attributes()[0].images[0].path ~ recipe_feature_products.attributes()[0].images[0].filename}}"  /></a>
  338.                             {% endif %}
  339.                         {# {% endfor %} #}
  340.                         </div>
  341.                         <div class="col-7 col-md-7 col-xl-7 product-links">
  342.                           <!-- <h5 class="product-name head-mobile">Rainbow Evaporated Milk Original (385ml)</h5> -->
  343.                           <class="remove-anchor-style1"  href="/{{locale}}/{{"products-link"|trans }}/recipe_feature_products.attributes()[0].url }}"><h5 class="product-name">{{ recipe_feature_products.name }}</h5></a>
  344.                           <div class="links-holder">
  345.                             <button class="btn btn-primary ico-btn productbuynow " 
  346.                             data-lulu="{{ (rlink['lulu']) ? rlink['lulu'].data : '' }}"
  347.                       data-union="{{ (rlink['unioncool']) ? rlink['unioncool'].data : '' }}"
  348.                       data-amazon="{{ (rlink['amazon']) ? rlink['amazon'].data : '' }}"
  349.                       data-carrefour="{{ (rlink['carrefour']) ? rlink['carrefour'].data : '' }}"
  350.                         data-c4="{{ (rlink['c4']) ? rlink['c4'].data : '' }}"
  351.                         data-noon="{{ (rlink['noon']) ? rlink['noon'].data : '' }}"
  352.                         data-danube="{{ (rlink['danube']) ? rlink['danube'].data : '' }}"
  353.                         data-tawseel="{{ (rlink['tawseel']) ? rlink['tawseel'].data : '' }}"
  354.                         data-sultancenter="{{ (rlink['sultancenter']) ? rlink['sultancenter'].data : '' }}" tabindex="0"  data-aos="zoom-in-up" >
  355.                               <i><img src="/static/assets/images/shopping-cart.svg" alt=""></i>
  356.                               <span>{{"BuyNow"|trans }}</span>
  357.                               <!-- <= $this->translate("BuyNow"|trans }} -->
  358.                             </button>
  359.                             <a  href="/{{locale}}/{{"products-link"|trans }}/{{recipe_feature_products.attributes()[0].url }}" class="btn btn-link" >{{"readmore"|trans }}</a>
  360.                           </div>
  361.                         </div>
  362.                       </div>
  363.                     </div>
  364.                     <label class="check-cbox" for="featured-product">
  365.                             <input type="checkbox" class="check-control" id="featured-product"  value="featured-product">
  366.                             <span class="check-mark"></span>
  367.                     </label>
  368.                   </li>
  369.                         {% endif %}
  370.                       {% endfor %}
  371.                     {% endif %}
  372.                   {% endif %}
  373.                 {% endfor %}
  374.                 {% endfor %}
  375.                   <span class="getshare" data-getting='{{ shareing|json_encode()}}'></span>
  376.                 <!-- <li data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-duration="300">
  377.                   <input class="styled-checkbox" id="1" type="checkbox" value="1">
  378.                   <label for="1">1KG full chicken
  379.                     <span class="lable-img">
  380.                       <img alt="" class="" src="/static/assets/images/ing-01.jpg" />
  381.                     </span>
  382.                   </label>
  383.                 </li>
  384.                 <li data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-duration="320">
  385.                   <input class="styled-checkbox" id="2" type="checkbox" value="2">
  386.                   <label for="2">1 large onion chopped
  387.                     <span class="lable-img">
  388.                       <img alt="" class="" src="/static/assets/images/ing-02.jpg" />
  389.                     </span>
  390.                   </label>
  391.                 </li>
  392.                 <li data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-duration="340">
  393.                   <input class="styled-checkbox" id="3" type="checkbox" value="3">
  394.                   <label for="3">250G fresh sliced Mushroom
  395.                     <span class="lable-img">
  396.                       <img alt="" class="" src="/static/assets/images/ing-03.jpg" />
  397.                     </span>
  398.                   </label>
  399.                 </li>
  400.                 <li class="featured-product" data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-duration="360">
  401.                   <h3 class="sub-heading head-desktop">Featured Products</h3>
  402.                   <div class="product-holder">
  403.                     <h5 class="product-name">Rainbow Evaporated Milk Original (385ml)</h5>
  404.                     <div class="row">
  405.                       <div class="col-5 col-md-4 col-xl-4 product-img">
  406.                         <img alt="" class="" src="/static/assets/images/p1.png" />
  407.                       </div>
  408.                       <div class="col-7 col-md-8 col-xl-8 product-links">
  409.                         <h5 class="product-name head-mobile">Rainbow Evaporated Milk Original (385ml)</h5>
  410.                         <div class="links-holder">
  411.                           <button class="btn btn-primary ico-btn">
  412.                             <i><img src="/static/assets/images/shopping-cart.svg" alt=""></i>
  413.                             <span>Buy Now!!!!</span>
  414.                           </button>
  415.                           <a href="javascript:void:;" class="btn btn-link">Read More</a>
  416.                         </div>
  417.                       </div>
  418.                     </div>
  419.                   </div>
  420.                   <input class="styled-checkbox" id="featured-product" type="checkbox" value="featured-product">
  421.                   <label for="featured-product"></label>
  422.                 </li>
  423.                 <li data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-duration="380">
  424.                   <input class="styled-checkbox" id="4" type="checkbox" value="4">
  425.                   <label for="4">1 TSP all seasoning (Flavored Salt)
  426.                     <span class="lable-img">
  427.                       <img alt="" class="" src="/static/assets/images/ing-04.jpg" />
  428.                     </span>
  429.                   </label>
  430.                 </li>
  431.                 <li data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-duration="400">
  432.                   <input class="styled-checkbox" id="5" type="checkbox" value="5">
  433.                   <label for="5">3 TBSP unsalted butter
  434.                     <span class="lable-img">
  435.                       <img alt="" class="" src="/static/assets/images/ing-05.jpg" />
  436.                     </span>
  437.                   </label>
  438.                 </li>
  439.                 <li data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-duration="420">
  440.                   <input class="styled-checkbox" id="6" type="checkbox" value="6">
  441.                   <label for="6">1 TBSP all-purpose flour
  442.                     <span class="lable-img">
  443.                       <img alt="" class="" src="/static/assets/images/ing-06.jpg" />
  444.                     </span>
  445.                   </label>
  446.                 </li> -->
  447.               </ul>
  448.               <!--End Ingredients List-->
  449.               <!--Start Share Buttons-->
  450.               <div class="ingredient-share-btns">
  451.                 <button class="d-inline-block d-md-none btn btn-secondary ico-btn s-ingredient">
  452.                   <i><img src="/static/assets/images/share.svg" alt=""></i>
  453.                   <span>{{"ShareIngredients"|trans }}</span>
  454.                   <!-- <= $this->translate("ShareIngredients"|trans }} -->
  455.                 </button>
  456.                 <button class="btn btn-primary ico-btn copytoclipboard">
  457.                   <i><img src="/static/assets/images/copy.svg" alt=""></i>
  458.                   <span>{{"CopytoClipboard"|trans }}</span></button>
  459.                   <!-- <= $this->translate("CopytoClipboard"|trans }} -->
  460.               </div>
  461.               <!--End Share Buttons-->
  462.             </div>
  463.             <!--End Ingredients Tab Content-->
  464.             <!--Start Instruction Tab Content-->
  465.             <div class="col-md-6 col-xl-6 tab-pane fade" id="instruction" role="tabpanel" aria-labelledby="instruction-tab">
  466.               <!--Start Instruction Video-->
  467.               {# <?php
  468.                 // $fsteps = $this->recipee->getSteps();
  469.                 // foreach ($fsteps as $fstep) {
  470.                 //   if($fstep['video']->getData()){
  471.                 //   $fvideo  =  $fstep['video']->getData()->getData();
  472.                 // }else{
  473.                 //   $fvideo = false;
  474.                 // }
  475.                 //   $fthmb  =  $fstep['thumbnail']->getData();
  476.                 //   // dd();
  477.                 //   break;
  478.                 // }
  479.                 //    $Mfsteps = $this->recipee->getSteps();
  480.                 // foreach ($Mfsteps as $Mfstep) {
  481.                 //   if($Mfstep['video_mobile']->getData()){
  482.                 //   $Mfvideo  =  $Mfstep['video_mobile']->getData()->getData();
  483.                 // }else{
  484.                 //   $Mfvideo = false;
  485.                 // }
  486.                 //   $Mfthmb  =  $fstep['thumbnail_mobile']->getData();
  487.                 //   // dd();
  488.                 //   break;
  489.                 // }
  490.               ?> #}
  491.             
  492.                       {% set insth = recipedetails.instruction_thumbnail  %}
  493.                     {% set insthm = recipedetails.instruction_thumbnail_mobile %}
  494.                       {% if recipedetails.instruction  %}
  495.                       {% set ins = recipedetails.instruction.data %}
  496.                         {% set res = true %}
  497.                       {% else %}
  498.                         {% set res = false %}
  499.                       {% endif %}
  500.                       {% if recipedetails.instruction_mobile %}
  501.                       {% set insm = recipedetails.instruction_mobile.data %}
  502.                         {% set res1 = true %}
  503.                     {% else %}
  504.                         {% set res1 = false %}
  505.                       {% endif %}
  506.                 
  507.           
  508.               <div class="instruction-video">
  509.               {% if ins is defined %}
  510.                   {% set res = true %}
  511.               
  512.                 <video class="video-js" controls playsinline preload="auto" height="395" poster="{{ insth }}"
  513.                       data-setup="{}">
  514.                       <source src="{{ins}}" type="video/mp4">
  515.                     </video>
  516.                   {% else %}
  517.                     <img  class="video-js" src="{{ insth }}">
  518.                   {% endif %}
  519.               </div>
  520.               <div class="instruction-video home-mobile d-none">
  521.               {% if insm is defined %}
  522.                     {% set res1 = true %}
  523.               
  524.                 <video class="video-js" controls playsinline preload="auto" height="395" poster="{{insthm}}"
  525.                       data-setup="{}">
  526.                       <source src="{{insm}}" type="video/mp4">
  527.                     </video>
  528.                   {% else %}
  529.                     <img  class="video-js" src="{{insthm}}">
  530.                 {% endif %}
  531.               </div>
  532.               <!--End Instruction Video-->
  533.               <!--Start Step by Step Guide-->
  534.               <div class="stepguide-holder abc">
  535.               {% set steps = recipedetails.steps %}
  536.               {% set SV = [] %}
  537.               {% for step in steps %}
  538.                     {% if step['video'].data is defined %}
  539.                     {% set SV = step['video'].data %}
  540.                     {% endif %}
  541.                       {% endfor %}
  542.                     {% if SV != '' %}
  543.                 <div class="btn-holder">
  544.                   <button class="btn btn-primary ico-btn" data-toggle="modal" data-target="#stepguide">
  545.                     <i class="icon-dishstep"></i>
  546.                     <span>{{"StepbyStepGuide"|trans }}</span>
  547.                     <!-- <= $this->translate("StepbyStepGuide"|trans }} -->
  548.                   </button>
  549.                 </div>
  550.             {% endif %}
  551.                 <ul class="list-unstyled stepguide-list">
  552.                 {% set steps = recipedetails.steps %}
  553.                   {% set stepcount = 0  %}
  554.                   {% set recipesteps = []  %}
  555.                   
  556.                     {% for step in steps %}
  557.                     
  558.                 
  559.                   {% if step['video'].data is defined %}
  560.                   {% set SV = step['video'].data %}
  561.                   {% endif %}
  562.                           
  563.                 
  564.                     <li data-aos="fade-left" data-aos-anchor-placement="top-bottom"  data-aos-duration="5{{ stepcount * 2 }}0">
  565.                       <label class="getingred check-cbox" for="step{{ stepcount + 1 }}">
  566.                           <input type="checkbox" class="check-control" id="step{{ stepcount + 1 }}" name="step{{ stepcount + 1 }}">
  567.                           <span class="check-mark"></span>     
  568.                           {% if locale == 'ar' %}               
  569.                             <span>{{ step.label_ar.data }}</span>      
  570.                             {% else %}
  571.                             <span>{{ step.label.data  }}</span>    
  572.                           {% endif %}           
  573.                       </label>        
  574.                       {% if locale == 'ar' %}               
  575.                             <p>{{ step.description_ar.data }}</p>
  576.                             {% else %}
  577.                           <p>{{ step.description.data }}</p>
  578.                           {% endif %}         
  579.                        
  580.                     
  581.                       {# <p><?php echo $con?></p> #}
  582.                     </li>
  583.                 
  584.                     {% set stepcount = stepcount + 1 %}
  585.                   {% endfor %}
  586.                 
  587.                     <span class="stepguide-holder-to-copy" data-recipesteps='{{ (recipesteps)|json_encode }}'></span>
  588.                 </ul>
  589.               </div>
  590.               <!--End Step by Step Guide-->
  591.             </div>
  592.             <!--End Instruction Tab Content-->
  593.           </div>
  594.           <!--End Tab Content-->
  595.         </div>
  596.         <!--End Tabs-->
  597.         <!--Start Tips & Facts-->
  598.         <!-- <div class="tipsfacts-holder"> -->
  599.           <!--Start -->
  600.           <!-- <div class="overflow-bg overflowhalf-bg tip-text">
  601.             <strong>
  602.               <i><img src="/static/assets/images/tip.svg" alt="" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="500" /></i>
  603.               <= $this->translate("Tips & Facts"|trans }}
  604.               <= $this->translate("TipsAndFacts"|trans }}
  605.             </strong>
  606.             {# <span data-aos="zoom-in-left" data-aos-offset="200" data-aos-duration="500"><?php echo $this->recipee->getTips(|trans }}</span#}
  607.           </div> -->
  608.           <!--Start Share Box-->
  609.           <!-- <div class="share-box">
  610.             <ul class="list-unstyled">
  611.               <li class="like" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="500"><a href="javascript:void:;">Like</a></li>
  612.               <li class="share" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="520"><a href="javascript:void(0);" class="recipeshare" tabindex="0"><?= $this->translate("share-btn"|trans }}</a></li>
  613.               <li class="save" style=" display: none;" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="540"><a href="javascript:void:;" >Save</a></li>
  614.               <li class="print" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="560"><p onclick="window.print()"><?= $this->translate("Print-icon"|trans }}</p></li> -->
  615.               <!-- <= $this->translate("Like-btn"|trans }} -->
  616.               <!-- <= $this->translate("share-icon"|trans }}
  617.               <= $this->translate("Save-icon"|trans }}
  618.               <= $this->translate("Print-icon"|trans }} -->
  619.             <!-- </ul>
  620.           </div> -->
  621.           <!--End Share Box-->
  622.         <!-- </div> -->
  623.         <!--End Tips Facts-->
  624.         <!--Start Nutrition Facts and Share Dish-->
  625.         <div class="nutrition-dish-holder">
  626.           <div class="row">
  627.             <!--Start Nutrition Facts-->
  628.             <div class="col-md-6 col-xl-6">
  629.               <div class="nutrition-holder">
  630.                 <h3 class="sub-sm-heading">{{"RecipePerServingInfo"|trans }}</h3>
  631.                 <!-- <= $this->translate("NutritionFactsbtn"|trans }} -->
  632.                 <div class="facts-board" data-aos="fade-right"  data-aos-duration="1500">
  633.                   <strong>{{"PerServing"|trans }}</strong>
  634.                   <!-- <= $this->translate("PerServing"|trans }} -->
  635.                   {% if recipedetails.nutrition_facts()[0].text.data is defined%}
  636.                   <p>{{recipedetails.nutrition_facts()[0].text.data}}</p>
  637.                   {% endif %}
  638.                   <a href="javascript:void:;" class="btn btn-primary ico-btn" data-aos="fade-up" data-aos-offset="300" data-aos-duration="300">
  639.                     <class="icon-diet"></i>
  640.                     <span class ="gtm-contentval">{{"FullNutrition"|trans }}</span>
  641.                     <!-- <= $this->translate("FullNutrition"|trans }} -->
  642.                   </a>
  643.                 </div>
  644.               </div>
  645.             </div>
  646.             <!--End Nutrition Facts-->
  647.             <!--Start Share Dish-->
  648.             <div class="col-md-6 col-xl-6">
  649.               <div class="sharedish-holder">
  650.                 <h3 class="sub-sm-heading">{{"Shareyourdish"|trans }}</h3>
  651.                 <!-- <= $this->translate("Shareyourdish"|trans }} -->
  652.                 <div class="sharedish-box" data-aos="fade-left"  data-aos-duration="1500">
  653.                   <div class="row">
  654.                     <div class="col-8 col-xl-8 sharedish-info">
  655.                       <h5>{{"Didyoutrythisrecipe"|trans }}</h5>
  656.                       <p>{{"Clickapictureandmention"|trans }}<br />
  657.                         <!-- <a href="javascript:void:;">@rainbow.recipes</a><br /> -->
  658.                       {% if locale == 'ar' %}
  659.                           <a href="javascript:void:;">RainbowMilk@</a><br />
  660.                     {{"ortagus"|trans }}<br />
  661.                         <a href="javascript:void:;">RainbowKitchenMagic#</a><br />
  662.                     {{"inInstagramorTwitter"|trans }}
  663.                     {% else %}
  664.                         <a href="javascript:void:;">@RainbowMilk</a><br />
  665.                     {{"ortagus"|trans }}<br />
  666.                         <a href="javascript:void:;">#RainbowKitchenMagic</a><br />
  667.                     {{"inInstagramorTwitter"|trans }}
  668.                     {% endif %}
  669.                       
  670.                       </p>
  671.                     </div>
  672.                     <div class="col-4 col-xl-4 sharedish-img">
  673.                       <a href="https://www.instagram.com/rainbowmilk/" data-aos="fade-up" ><img src="/static/assets/images/instagram.png" alt="" class="insta"></a>
  674.                       <a href="https://twitter.com/rainbowmilk" data-aos="fade-up" ><img src="/static/assets/images/twitter1.png" alt="" class="twitter"></a>
  675.                     </div>
  676.                   </div>
  677.                 </div>
  678.               </div>
  679.             </div>
  680.             <!--End Share Dish-->
  681.           </div>
  682.         </div>
  683.         <!--End Nutrition Facts and Share Dish-->
  684.       </div>
  685.     </section>
  686.   <!--End Recipe Holder-->
  687.   <!--Start Similar Recipes-->
  688.     <section class="similar-recipes">
  689.         {% if featuredrecipe|length %}
  690.           <div class="container-xl custom-container-xl">
  691.             <h3 class="sub-sm-heading gtm-contentval">{{"SimilarRecipes"|trans }}</h3>
  692.             <!-- <= $this->translate("SimilarRecipes"|trans }} -->
  693.             <!--Start Slider-->
  694.             <div class="row custom-slider fill-dots similar-slider">
  695.                 {% for featured in featuredrecipe %}
  696.                 
  697.                     {% if recipedetails.name != featured.name %}
  698.                       {% if recipedetails.category[0].name == featured.category[0].name  %}
  699.                 
  700.                           <div class="col-xl-3 slide boxs" data-aos="fade-up">
  701.                           
  702.                             <div class="slide-box s-slide-wrap">
  703.                                 <figure class="similar-img">
  704.                                   <a  href="{{ featured.url }}"><img src="{{ featured.featured_image }}" alt="{{ featured.name }}" class="img-fluid"></a>
  705.                                 </figure>
  706.                                 <class="remove-anchor-style1" href="{{ featured.url }}"><h3 class="similar-title">{{ featured.name }}</h3></a>
  707.                                 <!-- <php echo getmyavg($featured->getId()|trans }} -->
  708.                                         {% set rating %}
  709.                                         {% set totalrating %}
  710.                                         {% set totalreviews %}
  711.                                         {% for Reaturedreviews in featuredreviews %}
  712.                                           {% if Reaturedreviews.recipe_id.id ==  featured.id %}
  713.                                           
  714.                                               {% set totalreviews totalreviews %}
  715.                                               {% set totalrating totalrating Reaturedreviews.rating %}
  716.                                               {% set rating = (totalrating totalreviews)|round %}
  717.                                           {% endif %}
  718.                                         {% endfor %}
  719.                                         <!--Start Rating Star-->
  720.                                           <div class="rating-holder">
  721.                                               <fieldset class="ratings ratings-sm">
  722.                                                     {% if rating == '5' %}
  723.                                                       <input type="radio" value="5" checked>
  724.                                                     {% else %}
  725.                                                       <input type="radio"  value="5" >
  726.                                                     {% endif %}
  727.                                                     <label class="full" for="1rviewar5" title="5 stars"></label>
  728.                                                     {% if rating == '4' %}
  729.                                                       <input type="radio"  value="4" checked>
  730.                                                     {% else %}
  731.                                                       <input type="radio"  value="4" >
  732.                                                     {% endif %}
  733.                                                     <label class="full" for="1reviwstar4" title=" 4 stars"></label>
  734.                                                     {% if rating == '3' %}
  735.                                                       <input type="radio"  value="3" checked>
  736.                                                     {% else %}
  737.                                                       <input type="radio"  value="3" >
  738.                                                     {% endif %}
  739.                                                     <label class="full" for="1reviewsar3" title="3 stars"></label>
  740.                                                     {% if rating == '2' %}
  741.                                                       <input type="radio"  value="2" checked>
  742.                                                     {% else %}
  743.                                                       <input type="radio"  value="2" >
  744.                                                     {% endif %}
  745.                                                     <label class="full" for="1reviestar2" title="2 stars"></label>
  746.                                                     {% if rating == '1' %}
  747.                                                       <input type="radio"  value="1" checked>
  748.                                                     {% else %}
  749.                                                       <input type="radio"  value="1">
  750.                                                     {% endif %}
  751.                                                     <label class="full" for="1reviewar1" title="1 star"></label>
  752.                                               </fieldset>
  753.                                           </div
  754.                                         <!--End Rating Star-->
  755.                                           <div class="serving-info">
  756.                                             <ul class="list-unstyled">
  757.                                               <li class="time">{{ featured.time }}{{"mins"|trans }}</li>
  758.                                               <li class="serve">{{ featured.serving_options.Items[0].Serving }} {{"Serving"|trans }}</li>     
  759.                                             </ul>
  760.                                           </div>
  761.                                           
  762.                                           <div class="disc_mobile">
  763.                                             <p>{{ featured.description|striptags }}</p>
  764.                                           </div>
  765.                             </div>
  766.                           </div>
  767.                   
  768.                       {% endif %}
  769.                   {% endif %}
  770.                 {% endfor %}
  771.             </div>
  772.             <!--End Slider-->
  773.           </div>
  774.         {% endif %}
  775.         {#
  776.         <!-- <div class="stepguide-holder-to-copy" style="display: none;">
  777.                   <?php
  778.                   $steps $this->recipee->getSteps();
  779.                   $stepcount ;
  780.                   foreach ($steps as $step) {
  781.                     $SL = @$step['label']->getData();
  782.                     $SD = @$step['description']->getData();
  783.                     $SL_AR = @$step['label_ar']->getData();
  784.                     $SD_AR = @$step['description_ar']->getData();
  785.                     $SV = @$step['video']->getData();
  786.                           //dd($SV);?>
  787.                           <?php if($this->getLocale() == 'ar'){ ?>
  788.                           <pack><?php echo $SL_AR?></pack>
  789.                           <?php  }else{ ?>
  790.                             <p><?php echo $SL?></p>
  791.                           <?php ?>
  792.                       <?php if($this->getLocale() == 'ar'){ ?>
  793.                       <p><?php echo $SD_AR?></p>
  794.                       <?php  }else{ ?>
  795.                         <p><?php echo $SD?></p>
  796.                         <?php ?>
  797.                       <p><?php echo $con?></p>
  798.                   <?php
  799.                   $stepcount++;
  800.                   }
  801.                   ?>
  802.         </div> -->
  803.         #}
  804.     </section>
  805.   <!--End Similar Recipes-->
  806.   <!--Start All Topics-->
  807.     <section class="all-topics">
  808.       <div class="container custom-container">
  809.         <h3 class="main-sm-heading">All Topics in {{recipedetails.name}}</h3>
  810.         <ul class="list-unstyled all-topics-list">
  811.       
  812.         {% for tags in recipedetails.tags %}
  813.           <li data-aos="fade-up" data-aos-offset="400" data-aos-duration="400"><a href="{{ '/' ~ locale ~ '/' ~ 'searchbytag'|trans ~ '/' ~ tags.tag }}">{{ tags.tag }}</a></li>
  814.       {% endfor %}
  815.         </ul>
  816.       </div>
  817.     </section>
  818.   <!--End All Topics-->
  819.   <!--Start Reviews & Ratings Section-->
  820.     <section class="reviews-ratings-section">
  821.       <!--Start Add Review Section-->
  822.       <div class="add-review-box">
  823.         <div class="container custom-container">
  824.           <div class="heading-holder">
  825.             <h2 class="sub-xl-heading">{{"Reviews&Ratings"|trans }}</h2>
  826.             <div class="rating-info">
  827.               <span class="rating-count">{{ ratingcount ? ratingcount : '0'  }} {{"Ratings"|trans }}</span><span class="review-count">{{ reviewcount ? reviewcount : '0'}} {{"Reviews"|trans }}</span>
  828.             </div>
  829.           </div>
  830.           <form action="../review" method="post" >
  831.             <div class="overflow-bg overflowhalf-bg add-review-head">
  832.               <div class="review-text">
  833.                 <p>{{"Yourinsightsareimportanttous."|trans }}</p>
  834.                 <p>{{"Giveusfeedbackonthisrecipe."|trans }}</p>
  835.               </div>
  836.               <div class="rating-holder">
  837.                 <!--Start Rating Star-->
  838.                 <fieldset class="rating">
  839.                     <input type="radio"  value="5"  checked>
  840.                     <label class="full" for="naddreviewstar5" title="5 stars"></label>
  841.                     <input type="radio"  value="4" checked>
  842.                     <label class="full" for="naddreviewstar4" title="4 stars"></label>
  843.                     <input type="radio"  value="3"  checked>
  844.                     <label class="full" for="naddreviewstar3" title="3 stars"></label>
  845.                     <input type="radio"  value="2"  checked>
  846.                     <label class="full" for="naddreviewstar2" title="2 stars"></label>
  847.                     <input type="radio"  value="1" checked>
  848.                     <label class="full" for="naddreviewstar1" title="1 star"></label>
  849.                     
  850.                 </fieldset>
  851.                 <!--End Rating Star-->
  852.                 <!--Start Rating and Review Count-->
  853.                 <!--End Rating and Review Count-->
  854.               </div>
  855.               <input type="hidden" class="form-control" name="recipe_id" value="{{ recipedetails.id }}"/>
  856.               <input type="hidden" class="form-control" name="recipe_url" value="{{ recipedetails.url }}"/>
  857.               <a href="#cmnt" type="button" class="btn btn-primary ico-btn" data-aos="fade-up" data-aos-duration="400">
  858.                 <i class="icon-favorite"></i>
  859.                 <span>{{"AddReview&Ratings"|trans }}</span>
  860.               </a>
  861.             </div>
  862.           </form>
  863.         </div>
  864.       </div>
  865.       <!--End Add Review Section-->
  866.       <!--Start Read Review Section-->
  867.     
  868.       <div class="read-reviews marge-top" id="cmnt">
  869.         <div class="container custom-container">
  870.           <div class="read-reviews-holder">
  871.             <!--Start Add Reviews-->
  872.             <div class="overflow-bg overflowhalf-bg add-review-holder">
  873.               <div class="add-review-box">
  874.                 <form action="../reviews" method="post" id="GiveReviewtoForm">
  875.                     <div class="clearfix read-imgbox">
  876.                         <figure class="read-img">
  877.                           <img src="/static/assets/images/user.png" alt="">
  878.                         </figure>
  879.                     </div>
  880.                     <div class="clearfix detail-box">
  881.                         <strong class="name">&nbsp;</strong>
  882.                     </div>
  883.                     <div class="row write-comment" id = "message-alertt">
  884.                         <div class="col-md-8 col-xl-10 comment-box">
  885.                           <input type="text" class="form-control" name="name" placeholder="{{"Name"|trans }}" required/>
  886.                           <input type="email" class="form-control" name="email" placeholder="{{"Email"|trans }}" required/>
  887.                           <input type="hidden" class="form-control" name="recipe_id" value="{{recipedetails.id}}"/>
  888.                           <input type="hidden" class="form-control" name="recipe_url" value="{{recipedetails.url}}"/>
  889.                           <input type="hidden" class="form-control" name="rates" value="yes"/>
  890.                           <textarea class="form-control" name="comment" required placeholder="{{"writeyourcommenthere"|trans }}"></textarea>
  891.                         </div>
  892.                         <div class="col-md-4 col-xl-2 comment-rating">
  893.                           <strong>{{"Ratethisrecipe"|trans }}</strong>
  894.                           <fieldset class="rating rating-white ratings-md">
  895.                             <input type="radio" id="addreviewstar5" class="star-check5" name="addreviewrating" value="5">
  896.                             <label class="full" for="addreviewstar5" title="5 stars"></label>
  897.                             <input type="radio" id="addreviewstar4" class="star-check4" name="addreviewrating" value="4">
  898.                             <label class="full" for="addreviewstar4" title=" 4 stars"></label>
  899.                             <input type="radio" id="addreviewstar3" class="star-check3" name="addreviewrating" value="3">
  900.                             <label class="full" for="addreviewstar3" title="3 stars"></label>
  901.                             <input type="radio" id="addreviewstar2" class="star-check2" name="addreviewrating" value="2">
  902.                             <label class="full" for="addreviewstar2" title="2 stars"></label>
  903.                             <input type="radio" id="addreviewstar1" class="star-check1" name="addreviewrating" value="1" >
  904.                             <label class="full" for="addreviewstar1" title="1 star"></label>
  905.                           
  906.                           </fieldset>
  907.                         </div>
  908.                     </div>
  909.                   
  910.                       <div class="g-recaptcha" data-sitekey="6LePrpohAAAAAH-q_y6n_eK9e8haH7s8_cGJy_8j" data-theme="light" data-size="normal" data-image="image" id="recaptcha"></div>
  911.                     
  912.                       <div class="col-md-8 col-xl-10 comment-box">
  913.                       <div class="alert alert-success alert_display__opacity" id="success-alert-comment"><button class="close" data-dismiss="alert" type="button">x</button> Thank you for your feedback.</div>
  914.                       <div class="alert alert-warning alert_display__opacity" id="warning-alertt-comment"><button class="close" data-dismiss="alert" type="button">x</button> Please check the the captcha form.</div>
  915.                       <div class="alert alert-danger alert_display__opacity" id="failed-alert-comment"><button class="close" data-dismiss="alert" type="button">x</button> something went wrong.</div>
  916.                       </div>
  917.                     <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  918.                     <div class="btn-holder postcmnt" >
  919.                       <button  type= "submit" name="typereivew"  class="btn btn-primary ico-btn" data-aos="fade-up" data-aos-duration="400">
  920.                         <i><img src="/static/assets/images/icon-comment.svg" alt=""></i>
  921.                         <span>{{"postcomment"|trans }}</span>
  922.                       </button>
  923.                     </div>
  924.                 </form>
  925.               </div>
  926.             </div>
  927.             <!--End Add Reviews-->
  928.               {% set mycount = 0 %}
  929.               {% for Count in count %}
  930.               {% set mycount = Count.comments_counts %}
  931.               {% endfor %}
  932.               {% set readmore = 1 %}
  933.               {% set read = "r1" %}
  934.               
  935.                 {% if reviews %}
  936.                   {% for key , review in reviews %}
  937.                     {% if review.name %}
  938.                       {% if key == readmore * mycount %}
  939.                         {% set readmore = readmore + 1 %}
  940.                         {% set read = "r" ~ readmore %}
  941.                       {% endif %}
  942.                 <div class="box-holder read-review-box  {{ read == 'r1' ? read : read ~ ' d-none' }}">
  943.                   <div class="clearfix read-imgbox">
  944.                     <figure class="read-img">
  945.                       <img src="/static/assets/images/user.png" alt="">
  946.                     </figure>
  947.                     <fieldset class="rating">
  948.                   
  949.                       {% if review.rating == '5' %}
  950.                       <input type="radio" value="5" checked>
  951.                       {% else %}
  952.                       <input type="radio"  value="5" >
  953.                       {% endif %}
  954.                       <label class="full" for="1rviewar5" title="5 stars"></label>
  955.                     
  956.                       {% if review.rating == '4' %}
  957.                       <input type="radio"  value="4" checked>
  958.                       {% else %}
  959.                       <input type="radio"  value="4" >
  960.                       {% endif %}
  961.                       <label class="full" for="1reviwstar4" title=" 4 stars"></label>
  962.                     
  963.                       {% if review.rating == '3' %}
  964.                       <input type="radio"  value="3" checked>
  965.                       {% else %}
  966.                       <input type="radio"  value="3" >
  967.                       {% endif %}
  968.                       <label class="full" for="1reviewsar3" title="3 stars"></label>
  969.                   
  970.                       {% if review.rating == '2' %}
  971.                       <input type="radio"  value="2" checked>
  972.                       {% else %}
  973.                       <input type="radio"  value="2" >
  974.                       {% endif %}
  975.                       <label class="full" for="1reviestar2" title="2 stars"></label>
  976.                       
  977.                       {% if review.rating == '1' %}
  978.                       <input type="radio"  value="1" checked>
  979.                       {% else %}
  980.                       <input type="radio"  value="1">
  981.                       {% endif %}
  982.                       <label class="full" for="1reviewar1" title="1 star"></label>
  983.                     </fieldset>
  984.                   </div>
  985.                   <div class="clearfix detail-box">
  986.                     <strong class="name">{{ review.name}}</strong>
  987.                     <small class="date">{{ review.mydate }}</small>
  988.                   </div>
  989.                   <p class="review-detail">
  990.                   {{ review.comment}}
  991.                   </p>
  992.                 </div>
  993.               
  994.               {% endif %}
  995.               {% endfor %}
  996.               {% endif %}
  997.           </div>
  998.           {% set rev = reviews|length %}
  999.           {% for Count in count %}
  1000.             {% if rev > Count.comments_counts %}
  1001.           
  1002.           <div class="btn-holder readmoreow" data-more='2' data-final='{{ Count.comments_counts }}'>
  1003.             <a href="javascript:void:;" class="btn btn-primary ico-btn" data-aos="fade-up" data-aos-duration="400">
  1004.               <i class="icon-commentary"></i>
  1005.               <span>Read More</span>
  1006.             </a>
  1007.           </div>
  1008.         {% endif %}
  1009.         {% endfor %}
  1010.         </div>
  1011.       </div>
  1012.       
  1013.       <!--End Read Review Section-->
  1014.     </section>
  1015.   <!--End Reviews & Ratings Section-->
  1016. <!-- Modal Section -->
  1017.   <!--Start Step By Step Modal-->
  1018.     <div class="modal fade white-modal stepguide-modal" id="stepguide" tabindex="-1" aria-labelledby="stepguideModalLabel"
  1019.       aria-hidden="true" data-backdrop="static">
  1020.       <div class="modal-dialog">
  1021.         <div class="modal-content">
  1022.           <div class="modal-header">
  1023.             <h5 class="modal-title" id="stepguideModalLabel">{{recipedetails.name}}</h5>
  1024.             <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  1025.               <span aria-hidden="true">&times;</span>
  1026.             </button>
  1027.           </div>
  1028.           <div class="modal-body">
  1029.             <div class="guide-slider">
  1030.                   {% for step in steps %}
  1031.                     <div class="slide">
  1032.                       <div class="video-holder">
  1033.                         {% if step['video'].data.data is defined %}
  1034.                           <video class="video-js"  muted autoplay loop playsinline preload="auto" height="485" poster=""
  1035.                             data-setup="{}">
  1036.                             <source src="{{step['video'].data.data}}" type="video/mp4">
  1037.                           </video>
  1038.                         {% else %}
  1039.                           <img class="video-js" src="{{step['thumbnail'].data}}">
  1040.                         {% endif %}
  1041.                       </div>
  1042.                       <ul class="list-unstyled stepguide-list">
  1043.                         <li>
  1044.                        
  1045.                           <strong>
  1046.                            {% if locale == 'ar' %}               
  1047.                             <span>{{ step.label_ar.data }}</span>      
  1048.                             {% else %}
  1049.                             <span>{{ step.label.data }}</span>    
  1050.                           {% endif %}    
  1051.                           
  1052.                           
  1053.                           </strong>
  1054.                            {% if locale == 'ar' %}               
  1055.                             <p>{{ step.description.data }}</p>      
  1056.                             {% else %}
  1057.                             <p>{{ step.description.data }}</p>    
  1058.                           {% endif %}    
  1059.                           
  1060.                    
  1061.                         </li>
  1062.                       </ul>
  1063.                     </div>
  1064.                 {% endfor %}
  1065.           
  1066.               <!-- <div class="slide">
  1067.                 <div class="video-holder">
  1068.                   <video class="video-js" controls preload="auto" height="485" poster="/static/assets/images/banner-vdo.png"
  1069.                     data-setup="{}">
  1070.                     <source src="/static/assets/video/videoplayback.mp4" type="video/mp4">
  1071.                   </video>
  1072.                 </div>
  1073.                 <ul class="list-unstyled stepguide-list">
  1074.                   <li>
  1075.                     <strong>Step 02</strong>
  1076.                     <p>In a food processor, combine the shallots, jalape�os, ginger, macadamia nuts, coriander and
  1077.                       turmeric with 2 tablespoons of the fish sauce and 2 tablespoons of the canola oil; puree until
  1078.                       smooth.</p>
  1079.                   </li>
  1080.                 </ul>
  1081.               </div>
  1082.               <div class="slide">
  1083.                 <div class="video-holder">
  1084.                   <video class="video-js" controls preload="auto" height="485" poster="/static/assets/images/banner-vdo.png"
  1085.                     data-setup="{}">
  1086.                     <source src="/static/assets/video/videoplayback.mp4" type="video/mp4">
  1087.                   </video>
  1088.                 </div>
  1089.                 <ul class="list-unstyled stepguide-list">
  1090.                   <li>
  1091.                     <strong>Step 03</strong>
  1092.                     <p>In a soup pot, heat the remaining 2 tablespoons of oil. Add the seasoning paste and cook over
  1093.                       moderate heat, stirring, until fragrant, about 2 minutes. Add the lemongrass and cook, stirring
  1094.                       occasionally, until the mixture darkens slightly and the oil separates, about 10 minutes.</p>
  1095.                   </li>
  1096.                 </ul>
  1097.               </div>
  1098.               <div class="slide">
  1099.                 <div class="video-holder">
  1100.                   <video class="video-js" controls preload="auto" height="485" poster="/static/assets/images/banner-vdo.png"
  1101.                     data-setup="{}">
  1102.                     <source src="/static/assets/video/videoplayback.mp4" type="video/mp4">
  1103.                   </video>
  1104.                 </div>
  1105.                 <ul class="list-unstyled stepguide-list">
  1106.                   <li>
  1107.                     <strong>Step 04</strong>
  1108.                     <p>Add the reserved shrimp stock, coconut milk, brown sugar and the remaining 2 tablespoons of fish
  1109.                       sauce. Simmer over moderate heat until the soup is reduced to 6 cups, about 15 minutes.</p>
  1110.                   </li>
  1111.                 </ul>
  1112.               </div>
  1113.               <div class="slide">
  1114.                 <div class="video-holder">
  1115.                   <video class="video-js" controls preload="auto" height="485" poster="/static/assets/images/banner-vdo.png"
  1116.                     data-setup="{}">
  1117.                     <source src="/static/assets/video/videoplayback.mp4" type="video/mp4">
  1118.                   </video>
  1119.                 </div>
  1120.                 <ul class="list-unstyled stepguide-list">
  1121.                   <li>
  1122.                     <strong>Step 05</strong>
  1123.                     <p>Meanwhile, in a large pot of boiling water, cook the rice noodles just until pliable, about 1
  1124.                       minute. Drain, shaking out the excess water. Transfer to 8 soup bowls.</p>
  1125.                   </li>
  1126.                 </ul>
  1127.               </div>
  1128.               <div class="slide">
  1129.                 <div class="video-holder">
  1130.                   <video class="video-js" controls preload="auto" height="485" poster="/static/assets/images/banner-vdo.png"
  1131.                     data-setup="{}">
  1132.                     <source src="/static/assets/video/videoplayback.mp4" type="video/mp4">
  1133.                   </video>
  1134.                 </div>
  1135.                 <ul class="list-unstyled stepguide-list">
  1136.                   <li>
  1137.                     <strong>Step 06</strong>
  1138.                     <p>Add the shrimp to the soup and cook until pink and curled, about 5 minutes. Season the soup with
  1139.                       salt and ladle it over the noodles. Garnish with lime wedges and serve.</p>
  1140.                   </li>
  1141.                 </ul>
  1142.               </div> -->
  1143.               <div class="slide">
  1144.                   <div class="video-holder">
  1145.                       {% if recipedetails.Final_Step_Image is defined %}
  1146.                         <img class="video-js" src="{{ recipedetails.Final_Step_Image }}">
  1147.                       {% endif %}
  1148.                       {#
  1149.                       <!-- <video class="video-js" controls playsinline preload="auto" height="395" poster="<?php echo $fstepim ?>"
  1150.                         data-setup="{}">
  1151.                         <source src="<php echo $video->getPath() . $video->getFilename(|trans }}" type="video/mp4">
  1152.                       </video> -->
  1153.                       #}
  1154.                   </div>
  1155.                   <div class="video-holder-mbl">
  1156.                     {% if recipedetails.Final_Step_Image_Mobile is defined %}
  1157.                         <img class="video-js" src="{{ recipedetails.Final_Step_Image_Mobile }}">
  1158.                     {% endif %}
  1159.                     {#
  1160.                     <!-- <video class="video-js" controls playsinline preload="auto" height="395" poster="<?php echo $fstepim ?>"
  1161.                       data-setup="{}">
  1162.                       <source src="<php echo $video->getPath() . $video->getFilename(|trans }}" type="video/mp4">
  1163.                     </video> -->
  1164.                     #}
  1165.                   </div>
  1166.                 <ul class="list-unstyled stepguide-list rd-laststep-content">
  1167.                   <li>
  1168.                     <strong>{{"Shareyourdish"|trans }}</strong>
  1169.                     <p>{{"Letusknowhowyourdishlooksprepared."|trans }}</p>
  1170.                     <div class="sharebox">
  1171.                       <div class="row">
  1172.                         <div class="col-xl-8">
  1173.                           <p class="title">{{"Clickapictureandmention"|trans }}</p>
  1174.                           <p><a href="javascript:void:;">@RainbowMilk</a> {{"ortagus"|trans }}</p>
  1175.                           <p><a href="javascript:void:;">#RainbowKitchenMagic</a> {{"onInstaorTwitter"|trans }}</p>
  1176.                         </div>
  1177.                         <div class="col-xl-4 sharebox-icons">
  1178.                           <a href="https://www.instagram.com/rainbowmilk/"><img src="/static/assets/images/instagram.png" alt="" class="insta"></a>
  1179.                           <a href="https://twitter.com/rainbowmilk"><img src="/static/assets/images/twitter.png" alt="" class="twitter"></a>
  1180.                         </div>
  1181.                       </div>
  1182.                     </div>
  1183.                   </li>
  1184.                 </ul>
  1185.               </div>
  1186.             </div>
  1187.             <div class="guide-dots"></div>
  1188.             <div class="guide-btns"></div>
  1189.           </div>
  1190.         </div>
  1191.       </div>
  1192.     </div>
  1193.   <!--End Step By Step Modal-->
  1194.   <!--Start-->
  1195.   <div class="modal fade custom-modal recrecipe-modal" id="recrecipe" tabindex="-1" aria-hidden="true"
  1196.     data-backdrop="static">
  1197.     <div class="modal-dialog"> 
  1198.       <div class="modal-content">
  1199.         <div class="modal-header">
  1200.      {{"SuggestedRecipe"|trans }} 
  1201.    
  1202.         </div>
  1203.         <div class="modal-body">
  1204.           <div class="row">
  1205.           {% for key , featured in myrecipes %}
  1206.           
  1207.             {% if recipedetails.category[0].name == featured.category[0].name %}
  1208.               {% if recipedetails.name != featured.name %}
  1209.                   {% if key == 1 %}
  1210.             <div class="col-md-7 col-xl-7 recrecipe-text">
  1211.             <a class="remove-anchor-style1" href="{{featured.url}}">
  1212.               <h5 class="main-xs-heading">{{ featured.name }}</h5>
  1213.             </a>
  1214.               <div class="rating-holder">
  1215.                 <!--Start Rating Star-->
  1216.                 {% set max = 0 %}
  1217.                 {% set n = reviews|length %}
  1218.                 {% if reviews %}
  1219.                   {% for Reviews in reviews %}
  1220.                     {% if Reviews.name %}
  1221.                       {% set max  = max + Reviews.rating %}
  1222.                     {% endif %}
  1223.                   {% endfor %}
  1224.                 {% endif %}
  1225.                
  1226.           {% if max != 0 %}
  1227.             {% set rating = (max / n)|round %}
  1228.           {% else %}
  1229.             {% set rating = 0 %}
  1230.           {% endif %}  
  1231.           {% if n > 0 %}
  1232.             {% for key , Reviews in reviews %}
  1233.             {% if key == 1 %}
  1234.           <fieldset class="ratings">
  1235.              
  1236.               {% if rating == 5 %}
  1237.               <input type="radio" value="5" checked>
  1238.               {% else %}
  1239.               <input type="radio"  value="5" >
  1240.              {% endif %}  
  1241.               <label class="full" for="1rviewar5" title="5 stars"></label>
  1242.              {% if rating == 4 %}
  1243.               <input type="radio"  value="4" checked>
  1244.                {% else %}
  1245.               <input type="radio"  value="4" >
  1246.              {% endif %}  
  1247.               <label class="full" for="1reviwstar4" title=" 4 stars"></label>
  1248.              {% if rating == 3 %}
  1249.               <input type="radio"  value="3" checked>
  1250.               {% else %}
  1251.               <input type="radio"  value="3" >
  1252.               {% endif %}  
  1253.               <label class="full" for="1reviewsar3" title="3 stars"></label>
  1254.               {% if rating == 2 %}
  1255.               <input type="radio"  value="2" checked>
  1256.               {% else %}
  1257.               <input type="radio"  value="2" >
  1258.             {% endif %}  
  1259.               <label class="full" for="1reviestar2" title="2 stars"></label>
  1260.                 {% if rating == 1 %}
  1261.               <input type="radio"  value="1" checked>
  1262.               {% else %}
  1263.               <input type="radio"  value="1">
  1264.              {% endif %}  
  1265.               <label class="full" for="1reviewar1" title="1 star"></label>
  1266.             </fieldset>
  1267.                 {% endif %}
  1268.               {% endfor %}
  1269.           {% else %}
  1270.             <fieldset class="rating">
  1271.                   <input type="radio" id="naddreviewstar5" name="naddreviewrating" value="5">
  1272.                   <label class="full" for="naddreviewstar5" title="5 stars"></label>
  1273.                   <input type="radio" id="naddreviewstar4" name="naddreviewrating" value="4">
  1274.                   <label class="full" for="naddreviewstar4" title=" 4 stars"></label>
  1275.                   <input type="radio" id="naddreviewstar3" name="naddreviewrating" value="3">
  1276.                   <label class="full" for="naddreviewstar3" title="3 stars"></label>
  1277.                   <input type="radio" id="naddreviewstar2" name="naddreviewrating" value="2">
  1278.                   <label class="full" for="naddreviewstar2" title="2 stars"></label>
  1279.                   <input type="radio" id="naddreviewstar1" name="naddreviewrating" value="1">
  1280.                   <label class="full" for="naddreviewstar1" title="1 star"></label>
  1281.                 </fieldset>
  1282.               
  1283.           {% endif %}
  1284.           <!--End Rating Star-->
  1285.           <!--Start Rating and Review Count-->
  1286.           <div class="rating-info">
  1287.             <span class="rating-count">{{ ratingcount ? ratingcount : '0'}} {{"Ratings"|trans }}</span><span class="review-count">{{ reviewcount ? reviewcount : '0'}} {{"Reviews"|trans }}</span>
  1288.           </div>
  1289.           <!--End Rating and Review Count-->
  1290.         </div>
  1291.               <div class="btn-box">
  1292.                 <a href="/{{locale}}/{{"all-recipes"|trans }}" class="btn btn-primary ico-btn">
  1293.                   <i class="icon-dish"></i>
  1294.                   <span>{{"ViewallRecipes"|trans }}</span>
  1295.                 </a>
  1296.               </div>
  1297.             </div>
  1298.             <div class="col-md-5 col-xl-5 recrecipe-img">
  1299.               <figure>
  1300.               <a  href="{{'/' ~ locale ~ '/' }}{{"all-recipes"|trans}}{{ '/' ~ featured.url }}"><img src="{{ featured.featured_image }}" alt="{{featured.name}}" ></a>
  1301.               </figure>
  1302.             </div>
  1303.                   {% endif %} 
  1304.                 {% endif %} 
  1305.               {% endif %}  
  1306.                 {# <?php  if ($this->recipee->getName() != $featured->getName()){ break; } ?> #}
  1307.             {% endfor %}
  1308.           </div>
  1309.         </div>
  1310.         <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  1311.           <span aria-hidden="true">
  1312.             <i><img src="/static/assets/images/pop-close.svg" alt="" /></i>
  1313.               {{"Close"|trans }}
  1314.           </span>
  1315.         </button>
  1316.       </div>
  1317.     </div>
  1318.   </div>
  1319.     {% if (locale =='ar') %}
  1320.         {% set topMenu ="/en/all-recipes/" ~ recipedetails.url('en') %}
  1321.     {% else %}
  1322.         {% set topMenu ="/ar/كل-الوصفات/" ~ recipedetails.url('ar') %}
  1323.     {% endif %}
  1324. <script type="text/javascript">
  1325.   {# $(document).ready(function(){
  1326.       $('.recipeshare').click(function(){
  1327.           $('#myshare').modal('show');
  1328.       });
  1329.   }); #}
  1330.   var _TopMenuLink = "{{topMenu }}"
  1331. </script>
  1332. {% endblock %}