{% extends "layout/layout.html.twig" %}
{% block content %}
{% set locale = app.request.locale %}
{% if locale == 'en_GB' %}
{% set locale = 'en' %}
{% endif %}
<!--Start Banner Video-->
<span class = "pagetype d-none" >Recipe Detail Page</span>
<div class="banner-video abc">
{% if recipedetails.banner_video %}
<video id="banner-video" class="video-js" muted autoplay loop preload="auto" poster="{{ recipedetails.video_thumbnail}}" data-setup="{}">
<source src="{{recipedetails.banner_video.data}}" type="video/mp4">
</video>
<!-- <img class="banner-video" width="100%" src="/static/assets/images/Products Listing Image (spotlight) Desktop.png" alt=""> -->
{% else %}
<img class="banner-video" width="100%" src="{{ recipedetails.video_thumbnail}}" alt="{{recipedetails.name}}">
{% endif %}
<!--Start Floating Button-->
<div class="float-holder">
<div class="float-btn">
<a href="#GiveReviewtoForm">
<i class="icon-favorite-circle"></i>
<span>{{ "Giveyourreview"|trans }}</span>
<!-- {{"Giveyourreview"|trans }} -->
</a>
</div>
</div>
<!--End Floating Button-->
</div>
<div class="banner-video home-mobile-slider ">
{% if recipedetails.banner_video_mobile %}
<video id="banner-video" class="video-js" muted autoplay playsinline loop preload="auto" poster="{{recipedetails.video_thumbnail_mobile}}" data-setup="{}">
<source src="{{recipedetails.banner_video_mobile.data}}" type="video/mp4">
</video>
<!-- <img class="banner-video" width="100%" src="/static/assets/images/Products Listing Image (spotlight) Desktop.png" alt=""> -->
{% else %}
<img class="banner-video-mobile" width="100%" src="{{recipedetails.video_thumbnail_mobile}}" alt="{{recipedetails.name}}">
{% endif %}
<!--Start Floating Button-->
<div class="float-holder">
<div class="float-btn">
<a href="#GiveReviewtoForm">
<i class="icon-favorite-circle"></i>
<span>{{"Giveyourreview"|trans }}</span>
<!-- {{"Giveyourreview"|trans }} -->
</a>
</div>
</div>
<!--End Floating Button-->
</div>
<!--End Banner Video-->
<!--Start Recipe Holder-->
<section class="recipe-holder">
<div class="container custom-container">
<!--Start Breadcrumbs-->
<nav aria-label="breadcrumb" class="breadcrumb-holder">
<ol class="breadcrumb custom-breadcrumb-class">
<li class="breadcrumb-item"><a href="/{{locale}}">{{"Home"|trans }}</a></li>
<li class="breadcrumb-item"><a href="/{{locale}}/{{"recipes-link"|trans }}">{{"Recipes"|trans }}</a></li>
<li class="breadcrumb-item"><a href="javascript:;">{{(recipedetails.category) ? recipedetails.category[0].name : ''}}</a></li>
<li class="breadcrumb-item active" aria-current="page">{{recipedetails.name}}</li>
</ol>
</nav>
<!--End Breadcrumbs-->
<!--Start Recipe Box-->
<div class="recipe-box">
<!--Start Recipe Image and Title-->
<div class="row recipe-box-1">
<!--Start Recipe Image-->
<div class="col-md-5 col-xl-5 order-md-2 recipe-img-holder aos-init aos-animate" data-aos="zoom-in-left"
data-aos-duration="500">
<!-- <figure class="recipe-img">
<img alt="" class="" src="assets/images/recipe-img.png" />
</figure> -->
<figure class="recipe-img recipe-imgshow aos-init aos-animate" data-aos="zoom-in-up" data-aos-offset="500">
<img alt="{{recipedetails.name}}" src="{{recipedetails.featured_image}}" />
</figure>
</div>
<!--End Recipe Image-->
<!--Start Recipe Title-->
<div class="col-md-7 col-xl-7 order-md-1">
<h1 class="main-heading gtm-contentval" >{{recipedetails.name}}</h1>
</div>
<!--End Recipe Title-->
</div>
<!--End Recipe Image and Title-->
<!--Start Rating Holder-->
<div class="recipe-box-2">
<!--Start Rating Info-->
<div class="rating-holder">
<!--Start Rating Star-->
{% set max = 0 %}
{% set n = reviews|length %}
{% if reviews %}
{% for Reviews in reviews %}
{% if Reviews.name %}
{% set max = max + Reviews.rating %}
{% endif %}
{% endfor %}
{% endif %}
{% if max != 0 %}
{% set rating = (max / n)|round %}
{% else %}
{% set rating = 0 %}
{% endif %}
{% if n > 0 %}
{% for key , Reviews in reviews %}
{% if key == 0 %}
<fieldset class="ratings">
{% if rating == '5' %}
<input type="radio" value="5" checked>
{% else %}
<input type="radio" value="5" >
{% endif %}
<label class="full" for="1rviewar5" title="5 stars"></label>
{% if rating == '4' %}
<input type="radio" value="4" checked>
{% else %}
<input type="radio" value="4" >
{% endif %}
<label class="full" for="1reviwstar4" title=" 4 stars"></label>
{% if rating == '3' %}
<input type="radio" value="3" checked>
{% else %}
<input type="radio" value="3" >
{% endif %}
<label class="full" for="1reviewsar3" title="3 stars"></label>
{% if rating == '2' %}
<input type="radio" value="2" checked>
{% else %}
<input type="radio" value="2" >
{% endif %}
<label class="full" for="1reviestar2" title="2 stars"></label>
{% if rating == '1' %}
<input type="radio" value="1" checked>
{% else %}
<input type="radio" value="1">
{% endif %}
<label class="full" for="1reviewar1" title="1 star"></label>
</fieldset>
{% endif %}
{% endfor %}
{% else %}
<fieldset class="ratings">
<input type="radio" id="naddreviewstar5" name="naddreviewrating" value="5">
<label class="full" for="naddreviewstar5" title="5 stars"></label>
<input type="radio" id="naddreviewstar4" name="naddreviewrating" value="4">
<label class="full" for="naddreviewstar4" title=" 4 stars"></label>
<input type="radio" id="naddreviewstar3" name="naddreviewrating" value="3">
<label class="full" for="naddreviewstar3" title="3 stars"></label>
<input type="radio" id="naddreviewstar2" name="naddreviewrating" value="2">
<label class="full" for="naddreviewstar2" title="2 stars"></label>
<input type="radio" id="naddreviewstar1" name="naddreviewrating" value="1">
<label class="full" for="naddreviewstar1" title="1 star"></label>
</fieldset>
{% endif %}
<!--End Rating Star-->
<!--Start Rating and Review Count-->
<div class="rating-info">
<span class="rating-count">{{ratingcount}} {{"Ratings"|trans }}</span><span class="review-count"> {{ratingcount}} {{"Reviews"|trans }}</span>
</div>
<!--End Rating and Review Count-->
</div>
<!--End Rating Info-->
<!--Start Serving Info-->
<div class="serving-info">
<ul class="list-unstyled">
<li class="time">{{recipedetails.time }} {{"mins"|trans }}</li>
<li class="serve">{{recipedetails.serving }} {{"servings"|trans }}</li>
{# <li class="calories">{{ floor(recipedetails.calories/recipedetails.serving) }} {{"kcal"|trans }}</li> #}
</ul>
</div>
<!--End Serving Info-->
</div>
<!--End Rating Holder-->
<!--Start Recipe Detail Section-->
<div class="recipe-box-3">
<!--Start Recipe Detail-->
<div class="overflow-bg recipe-detail rd-box" data-aos="zoom-in-right">
<div class="row">
<div class="col-md-8 col-xl-7">
<span class="gtm-contentval">{{ recipedetails.description|striptags }}</span>
</div>
</div>
</div>
<!--End Recipe Detail-->
<!--Start Share Box-->
{% if app.session.get('loginUserName') %}
<div class="share-box">
<ul class="list-unstyled">
{% if Likedcount == 1 %}
<li class="liked" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="500">
<a id="btnRecipeLike" href="javascript:void(0);">{{"like-btn"|trans }}</a>
</li>
{% else %}
<li class="like" onclick="loyaltyProgram(this,{{recipedetails.id}},'Like','{{locale}}')" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="500">
<a id="btnRecipeLike" href="javascript:void(0);">{{"like-btn"|trans }}</a>
</li>
{% endif %}
{% if Sharedcount == 1 %}
<li class="shared recipeshare" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="500">
<a href="javascript:void(0);" class="" >{{"share-btn"|trans }}</a>
</li>
{% else %}
<li class="share recipeshare" onclick="loyaltyProgram(this,{{recipedetails.id}},'Share','{{locale}}')" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="500">
<a href="javascript:void(0);" class="" >{{"share-btn"|trans }}</a>
</li>
{% endif %}
{% if Savedcount == 1 %}
<li class="saved" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="500" >
<a id="btnRecipeSave" href="javascript:void(0);" >{{"Save"|trans }}</a>
</li>
{% else %}
<li class="save" onclick="loyaltyProgram(this,{{recipedetails.id}},'Save','{{locale}}')" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="500" >
<a id="btnRecipeSave" href="javascript:void(0);" >{{"Save"|trans }}</a>
</li>
{% endif %}
<!-- <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> -->
</ul>
</div>
{% endif %}
<!--End Share Box-->
</div>
<!--End Recipe Detail Section-->
</div>
<!--End Recipe Box-->
<!--Start Tabs-->
<div class="cooking-tabs">
<!--Start Tab Titles-->
<ul class="row nav nav-pills" id="cooking-tab" role="tablist">
<li class="col-md-6 col-xl-6 nav-item" role="presentation">
<a 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>
<!-- <= $this->translate("IngredientHeading"|trans }} -->
</li>
<li class="col-md-6 col-xl-6 nav-item" role="presentation">
<a 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>
</li>
</ul>
<!--End Tab Titles-->
<!--Start Tab Content-->
<div class="row tab-content" id="cooking-tabContent">
<!--Start Ingredients Tab Content-->
<div class="col-md-6 col-xl-6 tab-pane fade show active" id="ingredients" role="tabpanel" aria-labelledby="ingredients-tab">
<!--Start Serving Count-->
<div class="number-holder">
<!-- <div class="number">
<span class="btn minus">
<i class="icon-minus-circle"></i>
</span>
<input type="text" value="1 Servings" />
<span class="btn plus">
<i class="icon-add-circle"></i>
</span>
</div> -->
<!-- <= $this->translate("Serving-icon"); > -->
<form action="" method="get">
<div class="select">
<select name="select_catalog" id="select_catalog" class="selectpicker">
{% for key , servingoptions in recipedetails.serving_options %}
<option value="{{key}}">{{"Servings"|trans }}
{{servingoptions.Serving}}
</option>
{% endfor %}
</select>
</div>
</form>
</div>
<!--End Serving Count-->
<!--Start Ingredients List-->
<ul class="list-unstyled ingredients-list">
{% set shareing = [] %}
{% for i , servingoptions in recipedetails.serving_options %}
{% for k , ingredients in servingoptions.ingredient %}
{% if locale == 'ar' %}
{% set shareing = shareing|merge([ingredients.ingqtyunit_ar.data ~ " " ~ ingredients.ingredient.data.name]) %}
{% else %}
{% set shareing = shareing|merge([ingredients.ingqtyunit.data ~ " " ~ ingredients.ingredient.data.name]) %}
{% endif %}
{# <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" > #}
<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" >
{# {{ (locale =='en') ? serve:serve_ar}} #}
<label class="getingred check-cbox" for="switching{{ i ~ k }}">
<input type="checkbox" class="check-control" id="switching{{ i ~ k }}" value="switching{{ i ~ k }}">
<span class="check-mark"></span>
{% if locale == 'ar' %}
<span>{{ingredients.ingqtyunit_ar.data ~ ' ' ~ ingredients.ingredient.data.name}}</span>
{% else %}
<span>{{ingredients.ingqtyunit.data ~ ' ' ~ ingredients.ingredient.data.name}}</span>
{% endif %}
<div class="lable-img">
<img alt="" class="" src="{{ ingredients.ingredient.data.image }}" />
</div>
</label>
</li>
{% if k == 1 %}
{% if recipedetails.featured_product %}
{% for recipe_feature_products in recipedetails.featured_product %}
{% set regions = recipe_feature_products.regions %}
{% set show = false %}
{% if regions %}
{% for key , region in regions %}
{% if region in groupids %}
{% set show = true %}
{% endif %}
{% endfor %}
{% endif %}
{% if show %}
{% set regionslinks = recipe_feature_products.attributes()[0].buttonlinks %}
{% set rlink = [] %}
{% for key , link in regionslinks %}
{% if link['country'].data == country %}
{% set rlink = link %}
{% endif %}
{% endfor %}
{% if not rlink %}
{% for key , link in regionslinks %}
{% if link['country'].data == 'AE' %}
{% set rlink = link %}
{% endif %}
{% endfor %}
{% endif %}
<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">
<!-- <= $this->translate("FeaturedProduct"|trans }} -->
<!-- <h3 class="sub-heading head-desktop">Featured Product</h3> -->
<div class="product-holder">
<div class="row">
<div class="col-5 col-md-5 col-xl-5 product-img">
{# {% for item in recipe_feature_products.images.Items %} #}
{% if recipe_feature_products.attributes()[0].images %}
<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>
{% endif %}
{# {% endfor %} #}
</div>
<div class="col-7 col-md-7 col-xl-7 product-links">
<!-- <h5 class="product-name head-mobile">Rainbow Evaporated Milk Original (385ml)</h5> -->
<a 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>
<div class="links-holder">
<button class="btn btn-primary ico-btn productbuynow "
data-lulu="{{ (rlink['lulu']) ? rlink['lulu'].data : '' }}"
data-union="{{ (rlink['unioncool']) ? rlink['unioncool'].data : '' }}"
data-amazon="{{ (rlink['amazon']) ? rlink['amazon'].data : '' }}"
data-carrefour="{{ (rlink['carrefour']) ? rlink['carrefour'].data : '' }}"
data-c4="{{ (rlink['c4']) ? rlink['c4'].data : '' }}"
data-noon="{{ (rlink['noon']) ? rlink['noon'].data : '' }}"
data-danube="{{ (rlink['danube']) ? rlink['danube'].data : '' }}"
data-tawseel="{{ (rlink['tawseel']) ? rlink['tawseel'].data : '' }}"
data-sultancenter="{{ (rlink['sultancenter']) ? rlink['sultancenter'].data : '' }}" tabindex="0" data-aos="zoom-in-up" >
<i><img src="/static/assets/images/shopping-cart.svg" alt=""></i>
<span>{{"BuyNow"|trans }}</span>
<!-- <= $this->translate("BuyNow"|trans }} -->
</button>
<a href="/{{locale}}/{{"products-link"|trans }}/{{recipe_feature_products.attributes()[0].url }}" class="btn btn-link" >{{"readmore"|trans }}</a>
</div>
</div>
</div>
</div>
<label class="check-cbox" for="featured-product">
<input type="checkbox" class="check-control" id="featured-product" value="featured-product">
<span class="check-mark"></span>
</label>
</li>
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
<span class="getshare" data-getting='{{ shareing|json_encode()}}'></span>
<!-- <li data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-duration="300">
<input class="styled-checkbox" id="1" type="checkbox" value="1">
<label for="1">1KG full chicken
<span class="lable-img">
<img alt="" class="" src="/static/assets/images/ing-01.jpg" />
</span>
</label>
</li>
<li data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-duration="320">
<input class="styled-checkbox" id="2" type="checkbox" value="2">
<label for="2">1 large onion chopped
<span class="lable-img">
<img alt="" class="" src="/static/assets/images/ing-02.jpg" />
</span>
</label>
</li>
<li data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-duration="340">
<input class="styled-checkbox" id="3" type="checkbox" value="3">
<label for="3">250G fresh sliced Mushroom
<span class="lable-img">
<img alt="" class="" src="/static/assets/images/ing-03.jpg" />
</span>
</label>
</li>
<li class="featured-product" data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-duration="360">
<h3 class="sub-heading head-desktop">Featured Products</h3>
<div class="product-holder">
<h5 class="product-name">Rainbow Evaporated Milk Original (385ml)</h5>
<div class="row">
<div class="col-5 col-md-4 col-xl-4 product-img">
<img alt="" class="" src="/static/assets/images/p1.png" />
</div>
<div class="col-7 col-md-8 col-xl-8 product-links">
<h5 class="product-name head-mobile">Rainbow Evaporated Milk Original (385ml)</h5>
<div class="links-holder">
<button class="btn btn-primary ico-btn">
<i><img src="/static/assets/images/shopping-cart.svg" alt=""></i>
<span>Buy Now!!!!</span>
</button>
<a href="javascript:void:;" class="btn btn-link">Read More</a>
</div>
</div>
</div>
</div>
<input class="styled-checkbox" id="featured-product" type="checkbox" value="featured-product">
<label for="featured-product"></label>
</li>
<li data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-duration="380">
<input class="styled-checkbox" id="4" type="checkbox" value="4">
<label for="4">1 TSP all seasoning (Flavored Salt)
<span class="lable-img">
<img alt="" class="" src="/static/assets/images/ing-04.jpg" />
</span>
</label>
</li>
<li data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-duration="400">
<input class="styled-checkbox" id="5" type="checkbox" value="5">
<label for="5">3 TBSP unsalted butter
<span class="lable-img">
<img alt="" class="" src="/static/assets/images/ing-05.jpg" />
</span>
</label>
</li>
<li data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-duration="420">
<input class="styled-checkbox" id="6" type="checkbox" value="6">
<label for="6">1 TBSP all-purpose flour
<span class="lable-img">
<img alt="" class="" src="/static/assets/images/ing-06.jpg" />
</span>
</label>
</li> -->
</ul>
<!--End Ingredients List-->
<!--Start Share Buttons-->
<div class="ingredient-share-btns">
<button class="d-inline-block d-md-none btn btn-secondary ico-btn s-ingredient">
<i><img src="/static/assets/images/share.svg" alt=""></i>
<span>{{"ShareIngredients"|trans }}</span>
<!-- <= $this->translate("ShareIngredients"|trans }} -->
</button>
<button class="btn btn-primary ico-btn copytoclipboard">
<i><img src="/static/assets/images/copy.svg" alt=""></i>
<span>{{"CopytoClipboard"|trans }}</span></button>
<!-- <= $this->translate("CopytoClipboard"|trans }} -->
</div>
<!--End Share Buttons-->
</div>
<!--End Ingredients Tab Content-->
<!--Start Instruction Tab Content-->
<div class="col-md-6 col-xl-6 tab-pane fade" id="instruction" role="tabpanel" aria-labelledby="instruction-tab">
<!--Start Instruction Video-->
{# <?php
// $fsteps = $this->recipee->getSteps();
// foreach ($fsteps as $fstep) {
// if($fstep['video']->getData()){
// $fvideo = $fstep['video']->getData()->getData();
// }else{
// $fvideo = false;
// }
// $fthmb = $fstep['thumbnail']->getData();
// // dd();
// break;
// }
// $Mfsteps = $this->recipee->getSteps();
// foreach ($Mfsteps as $Mfstep) {
// if($Mfstep['video_mobile']->getData()){
// $Mfvideo = $Mfstep['video_mobile']->getData()->getData();
// }else{
// $Mfvideo = false;
// }
// $Mfthmb = $fstep['thumbnail_mobile']->getData();
// // dd();
// break;
// }
?> #}
{% set insth = recipedetails.instruction_thumbnail %}
{% set insthm = recipedetails.instruction_thumbnail_mobile %}
{% if recipedetails.instruction %}
{% set ins = recipedetails.instruction.data %}
{% set res = true %}
{% else %}
{% set res = false %}
{% endif %}
{% if recipedetails.instruction_mobile %}
{% set insm = recipedetails.instruction_mobile.data %}
{% set res1 = true %}
{% else %}
{% set res1 = false %}
{% endif %}
<div class="instruction-video">
{% if ins is defined %}
{% set res = true %}
<video class="video-js" controls playsinline preload="auto" height="395" poster="{{ insth }}"
data-setup="{}">
<source src="{{ins}}" type="video/mp4">
</video>
{% else %}
<img class="video-js" src="{{ insth }}">
{% endif %}
</div>
<div class="instruction-video home-mobile d-none">
{% if insm is defined %}
{% set res1 = true %}
<video class="video-js" controls playsinline preload="auto" height="395" poster="{{insthm}}"
data-setup="{}">
<source src="{{insm}}" type="video/mp4">
</video>
{% else %}
<img class="video-js" src="{{insthm}}">
{% endif %}
</div>
<!--End Instruction Video-->
<!--Start Step by Step Guide-->
<div class="stepguide-holder abc">
{% set steps = recipedetails.steps %}
{% set SV = [] %}
{% for step in steps %}
{% if step['video'].data is defined %}
{% set SV = step['video'].data %}
{% endif %}
{% endfor %}
{% if SV != '' %}
<div class="btn-holder">
<button class="btn btn-primary ico-btn" data-toggle="modal" data-target="#stepguide">
<i class="icon-dishstep"></i>
<span>{{"StepbyStepGuide"|trans }}</span>
<!-- <= $this->translate("StepbyStepGuide"|trans }} -->
</button>
</div>
{% endif %}
<ul class="list-unstyled stepguide-list">
{% set steps = recipedetails.steps %}
{% set stepcount = 0 %}
{% set recipesteps = [] %}
{% for step in steps %}
{% if step['video'].data is defined %}
{% set SV = step['video'].data %}
{% endif %}
<li data-aos="fade-left" data-aos-anchor-placement="top-bottom" data-aos-duration="5{{ stepcount * 2 }}0">
<label class="getingred check-cbox" for="step{{ stepcount + 1 }}">
<input type="checkbox" class="check-control" id="step{{ stepcount + 1 }}" name="step{{ stepcount + 1 }}">
<span class="check-mark"></span>
{% if locale == 'ar' %}
<span>{{ step.label_ar.data }}</span>
{% else %}
<span>{{ step.label.data }}</span>
{% endif %}
</label>
{% if locale == 'ar' %}
<p>{{ step.description_ar.data }}</p>
{% else %}
<p>{{ step.description.data }}</p>
{% endif %}
{# <p><?php echo $con; ?></p> #}
</li>
{% set stepcount = stepcount + 1 %}
{% endfor %}
<span class="stepguide-holder-to-copy" data-recipesteps='{{ (recipesteps)|json_encode }}'></span>
</ul>
</div>
<!--End Step by Step Guide-->
</div>
<!--End Instruction Tab Content-->
</div>
<!--End Tab Content-->
</div>
<!--End Tabs-->
<!--Start Tips & Facts-->
<!-- <div class="tipsfacts-holder"> -->
<!--Start -->
<!-- <div class="overflow-bg overflowhalf-bg tip-text">
<strong>
<i><img src="/static/assets/images/tip.svg" alt="" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="500" /></i>
<= $this->translate("Tips & Facts"|trans }}
<= $this->translate("TipsAndFacts"|trans }}
</strong>
{# <span data-aos="zoom-in-left" data-aos-offset="200" data-aos-duration="500"><?php echo $this->recipee->getTips(|trans }}</span> #}
</div> -->
<!--Start Share Box-->
<!-- <div class="share-box">
<ul class="list-unstyled">
<li class="like" data-aos="zoom-in-up" data-aos-offset="200" data-aos-duration="500"><a href="javascript:void:;">Like</a></li>
<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>
<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>
<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> -->
<!-- <= $this->translate("Like-btn"|trans }} -->
<!-- <= $this->translate("share-icon"|trans }}
<= $this->translate("Save-icon"|trans }}
<= $this->translate("Print-icon"|trans }} -->
<!-- </ul>
</div> -->
<!--End Share Box-->
<!-- </div> -->
<!--End Tips & Facts-->
<!--Start Nutrition Facts and Share Dish-->
<div class="nutrition-dish-holder">
<div class="row">
<!--Start Nutrition Facts-->
<div class="col-md-6 col-xl-6">
<div class="nutrition-holder">
<h3 class="sub-sm-heading">{{"RecipePerServingInfo"|trans }}</h3>
<!-- <= $this->translate("NutritionFactsbtn"|trans }} -->
<div class="facts-board" data-aos="fade-right" data-aos-duration="1500">
<strong>{{"PerServing"|trans }}</strong>
<!-- <= $this->translate("PerServing"|trans }} -->
{% if recipedetails.nutrition_facts()[0].text.data is defined%}
<p>{{recipedetails.nutrition_facts()[0].text.data}}</p>
{% endif %}
<a href="javascript:void:;" class="btn btn-primary ico-btn" data-aos="fade-up" data-aos-offset="300" data-aos-duration="300">
<i class="icon-diet"></i>
<span class ="gtm-contentval">{{"FullNutrition"|trans }}</span>
<!-- <= $this->translate("FullNutrition"|trans }} -->
</a>
</div>
</div>
</div>
<!--End Nutrition Facts-->
<!--Start Share Dish-->
<div class="col-md-6 col-xl-6">
<div class="sharedish-holder">
<h3 class="sub-sm-heading">{{"Shareyourdish"|trans }}</h3>
<!-- <= $this->translate("Shareyourdish"|trans }} -->
<div class="sharedish-box" data-aos="fade-left" data-aos-duration="1500">
<div class="row">
<div class="col-8 col-xl-8 sharedish-info">
<h5>{{"Didyoutrythisrecipe"|trans }}</h5>
<p>{{"Clickapictureandmention"|trans }}<br />
<!-- <a href="javascript:void:;">@rainbow.recipes</a><br /> -->
{% if locale == 'ar' %}
<a href="javascript:void:;">RainbowMilk@</a><br />
{{"ortagus"|trans }}<br />
<a href="javascript:void:;">RainbowKitchenMagic#</a><br />
{{"inInstagramorTwitter"|trans }}
{% else %}
<a href="javascript:void:;">@RainbowMilk</a><br />
{{"ortagus"|trans }}<br />
<a href="javascript:void:;">#RainbowKitchenMagic</a><br />
{{"inInstagramorTwitter"|trans }}
{% endif %}
</p>
</div>
<div class="col-4 col-xl-4 sharedish-img">
<a href="https://www.instagram.com/rainbowmilk/" data-aos="fade-up" ><img src="/static/assets/images/instagram.png" alt="" class="insta"></a>
<a href="https://twitter.com/rainbowmilk" data-aos="fade-up" ><img src="/static/assets/images/twitter1.png" alt="" class="twitter"></a>
</div>
</div>
</div>
</div>
</div>
<!--End Share Dish-->
</div>
</div>
<!--End Nutrition Facts and Share Dish-->
</div>
</section>
<!--End Recipe Holder-->
<!--Start Similar Recipes-->
<section class="similar-recipes">
{% if featuredrecipe|length > 0 %}
<div class="container-xl custom-container-xl">
<h3 class="sub-sm-heading gtm-contentval">{{"SimilarRecipes"|trans }}</h3>
<!-- <= $this->translate("SimilarRecipes"|trans }} -->
<!--Start Slider-->
<div class="row custom-slider fill-dots similar-slider">
{% for featured in featuredrecipe %}
{% if recipedetails.name != featured.name %}
{% if recipedetails.category[0].name == featured.category[0].name %}
<div class="col-xl-3 slide boxs" data-aos="fade-up">
<div class="slide-box s-slide-wrap">
<figure class="similar-img">
<a href="{{ featured.url }}"><img src="{{ featured.featured_image }}" alt="{{ featured.name }}" class="img-fluid"></a>
</figure>
<a class="remove-anchor-style1" href="{{ featured.url }}"><h3 class="similar-title">{{ featured.name }}</h3></a>
<!-- <php echo getmyavg($featured->getId()|trans }} -->
{% set rating = 0 %}
{% set totalrating = 0 %}
{% set totalreviews = 0 %}
{% for Reaturedreviews in featuredreviews %}
{% if Reaturedreviews.recipe_id.id == featured.id %}
{% set totalreviews = totalreviews + 1 %}
{% set totalrating = totalrating + Reaturedreviews.rating %}
{% set rating = (totalrating / totalreviews)|round %}
{% endif %}
{% endfor %}
<!--Start Rating Star-->
<div class="rating-holder">
<fieldset class="ratings ratings-sm">
{% if rating == '5' %}
<input type="radio" value="5" checked>
{% else %}
<input type="radio" value="5" >
{% endif %}
<label class="full" for="1rviewar5" title="5 stars"></label>
{% if rating == '4' %}
<input type="radio" value="4" checked>
{% else %}
<input type="radio" value="4" >
{% endif %}
<label class="full" for="1reviwstar4" title=" 4 stars"></label>
{% if rating == '3' %}
<input type="radio" value="3" checked>
{% else %}
<input type="radio" value="3" >
{% endif %}
<label class="full" for="1reviewsar3" title="3 stars"></label>
{% if rating == '2' %}
<input type="radio" value="2" checked>
{% else %}
<input type="radio" value="2" >
{% endif %}
<label class="full" for="1reviestar2" title="2 stars"></label>
{% if rating == '1' %}
<input type="radio" value="1" checked>
{% else %}
<input type="radio" value="1">
{% endif %}
<label class="full" for="1reviewar1" title="1 star"></label>
</fieldset>
</div>
<!--End Rating Star-->
<div class="serving-info">
<ul class="list-unstyled">
<li class="time">{{ featured.time }}{{"mins"|trans }}</li>
<li class="serve">{{ featured.serving_options.Items[0].Serving }} {{"Serving"|trans }}</li>
</ul>
</div>
<div class="disc_mobile">
<p>{{ featured.description|striptags }}</p>
</div>
</div>
</div>
{% endif %}
{% endif %}
{% endfor %}
</div>
<!--End Slider-->
</div>
{% endif %}
{#
<!-- <div class="stepguide-holder-to-copy" style="display: none;">
<?php
$steps = $this->recipee->getSteps();
$stepcount = 0 ;
foreach ($steps as $step) {
$SL = @$step['label']->getData();
$SD = @$step['description']->getData();
$SL_AR = @$step['label_ar']->getData();
$SD_AR = @$step['description_ar']->getData();
$SV = @$step['video']->getData();
//dd($SV);?>
<?php if($this->getLocale() == 'ar'){ ?>
<pack><?php echo $SL_AR; ?></pack>
<?php }else{ ?>
<p><?php echo $SL; ?></p>
<?php } ?>
<?php if($this->getLocale() == 'ar'){ ?>
<p><?php echo $SD_AR; ?></p>
<?php }else{ ?>
<p><?php echo $SD; ?></p>
<?php } ?>
<p><?php echo $con; ?></p>
<?php
$stepcount++;
}
?>
</div> -->
#}
</section>
<!--End Similar Recipes-->
<!--Start All Topics-->
<section class="all-topics">
<div class="container custom-container">
<h3 class="main-sm-heading">All Topics in {{recipedetails.name}}</h3>
<ul class="list-unstyled all-topics-list">
{% for tags in recipedetails.tags %}
<li data-aos="fade-up" data-aos-offset="400" data-aos-duration="400"><a href="{{ '/' ~ locale ~ '/' ~ 'searchbytag'|trans ~ '/' ~ tags.tag }}">{{ tags.tag }}</a></li>
{% endfor %}
</ul>
</div>
</section>
<!--End All Topics-->
<!--Start Reviews & Ratings Section-->
<section class="reviews-ratings-section">
<!--Start Add Review Section-->
<div class="add-review-box">
<div class="container custom-container">
<div class="heading-holder">
<h2 class="sub-xl-heading">{{"Reviews&Ratings"|trans }}</h2>
<div class="rating-info">
<span class="rating-count">{{ ratingcount ? ratingcount : '0' }} {{"Ratings"|trans }}</span><span class="review-count">{{ reviewcount ? reviewcount : '0'}} {{"Reviews"|trans }}</span>
</div>
</div>
<form action="../review" method="post" >
<div class="overflow-bg overflowhalf-bg add-review-head">
<div class="review-text">
<p>{{"Yourinsightsareimportanttous."|trans }}</p>
<p>{{"Giveusfeedbackonthisrecipe."|trans }}</p>
</div>
<div class="rating-holder">
<!--Start Rating Star-->
<fieldset class="rating">
<input type="radio" value="5" checked>
<label class="full" for="naddreviewstar5" title="5 stars"></label>
<input type="radio" value="4" checked>
<label class="full" for="naddreviewstar4" title="4 stars"></label>
<input type="radio" value="3" checked>
<label class="full" for="naddreviewstar3" title="3 stars"></label>
<input type="radio" value="2" checked>
<label class="full" for="naddreviewstar2" title="2 stars"></label>
<input type="radio" value="1" checked>
<label class="full" for="naddreviewstar1" title="1 star"></label>
</fieldset>
<!--End Rating Star-->
<!--Start Rating and Review Count-->
<!--End Rating and Review Count-->
</div>
<input type="hidden" class="form-control" name="recipe_id" value="{{ recipedetails.id }}"/>
<input type="hidden" class="form-control" name="recipe_url" value="{{ recipedetails.url }}"/>
<a href="#cmnt" type="button" class="btn btn-primary ico-btn" data-aos="fade-up" data-aos-duration="400">
<i class="icon-favorite"></i>
<span>{{"AddReview&Ratings"|trans }}</span>
</a>
</div>
</form>
</div>
</div>
<!--End Add Review Section-->
<!--Start Read Review Section-->
<div class="read-reviews marge-top" id="cmnt">
<div class="container custom-container">
<div class="read-reviews-holder">
<!--Start Add Reviews-->
<div class="overflow-bg overflowhalf-bg add-review-holder">
<div class="add-review-box">
<form action="../reviews" method="post" id="GiveReviewtoForm">
<div class="clearfix read-imgbox">
<figure class="read-img">
<img src="/static/assets/images/user.png" alt="">
</figure>
</div>
<div class="clearfix detail-box">
<strong class="name"> </strong>
</div>
<div class="row write-comment" id = "message-alertt">
<div class="col-md-8 col-xl-10 comment-box">
<input type="text" class="form-control" name="name" placeholder="{{"Name"|trans }}" required/>
<input type="email" class="form-control" name="email" placeholder="{{"Email"|trans }}" required/>
<input type="hidden" class="form-control" name="recipe_id" value="{{recipedetails.id}}"/>
<input type="hidden" class="form-control" name="recipe_url" value="{{recipedetails.url}}"/>
<input type="hidden" class="form-control" name="rates" value="yes"/>
<textarea class="form-control" name="comment" required placeholder="{{"writeyourcommenthere"|trans }}"></textarea>
</div>
<div class="col-md-4 col-xl-2 comment-rating">
<strong>{{"Ratethisrecipe"|trans }}</strong>
<fieldset class="rating rating-white ratings-md">
<input type="radio" id="addreviewstar5" class="star-check5" name="addreviewrating" value="5">
<label class="full" for="addreviewstar5" title="5 stars"></label>
<input type="radio" id="addreviewstar4" class="star-check4" name="addreviewrating" value="4">
<label class="full" for="addreviewstar4" title=" 4 stars"></label>
<input type="radio" id="addreviewstar3" class="star-check3" name="addreviewrating" value="3">
<label class="full" for="addreviewstar3" title="3 stars"></label>
<input type="radio" id="addreviewstar2" class="star-check2" name="addreviewrating" value="2">
<label class="full" for="addreviewstar2" title="2 stars"></label>
<input type="radio" id="addreviewstar1" class="star-check1" name="addreviewrating" value="1" >
<label class="full" for="addreviewstar1" title="1 star"></label>
</fieldset>
</div>
</div>
<div class="g-recaptcha" data-sitekey="6LePrpohAAAAAH-q_y6n_eK9e8haH7s8_cGJy_8j" data-theme="light" data-size="normal" data-image="image" id="recaptcha"></div>
<div class="col-md-8 col-xl-10 comment-box">
<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>
<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>
<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>
</div>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<div class="btn-holder postcmnt" >
<button type= "submit" name="typereivew" class="btn btn-primary ico-btn" data-aos="fade-up" data-aos-duration="400">
<i><img src="/static/assets/images/icon-comment.svg" alt=""></i>
<span>{{"postcomment"|trans }}</span>
</button>
</div>
</form>
</div>
</div>
<!--End Add Reviews-->
{% set mycount = 0 %}
{% for Count in count %}
{% set mycount = Count.comments_counts %}
{% endfor %}
{% set readmore = 1 %}
{% set read = "r1" %}
{% if reviews %}
{% for key , review in reviews %}
{% if review.name %}
{% if key == readmore * mycount %}
{% set readmore = readmore + 1 %}
{% set read = "r" ~ readmore %}
{% endif %}
<div class="box-holder read-review-box {{ read == 'r1' ? read : read ~ ' d-none' }}">
<div class="clearfix read-imgbox">
<figure class="read-img">
<img src="/static/assets/images/user.png" alt="">
</figure>
<fieldset class="rating">
{% if review.rating == '5' %}
<input type="radio" value="5" checked>
{% else %}
<input type="radio" value="5" >
{% endif %}
<label class="full" for="1rviewar5" title="5 stars"></label>
{% if review.rating == '4' %}
<input type="radio" value="4" checked>
{% else %}
<input type="radio" value="4" >
{% endif %}
<label class="full" for="1reviwstar4" title=" 4 stars"></label>
{% if review.rating == '3' %}
<input type="radio" value="3" checked>
{% else %}
<input type="radio" value="3" >
{% endif %}
<label class="full" for="1reviewsar3" title="3 stars"></label>
{% if review.rating == '2' %}
<input type="radio" value="2" checked>
{% else %}
<input type="radio" value="2" >
{% endif %}
<label class="full" for="1reviestar2" title="2 stars"></label>
{% if review.rating == '1' %}
<input type="radio" value="1" checked>
{% else %}
<input type="radio" value="1">
{% endif %}
<label class="full" for="1reviewar1" title="1 star"></label>
</fieldset>
</div>
<div class="clearfix detail-box">
<strong class="name">{{ review.name}}</strong>
<small class="date">{{ review.mydate }}</small>
</div>
<p class="review-detail">
{{ review.comment}}
</p>
</div>
{% endif %}
{% endfor %}
{% endif %}
</div>
{% set rev = reviews|length %}
{% for Count in count %}
{% if rev > Count.comments_counts %}
<div class="btn-holder readmoreow" data-more='2' data-final='{{ Count.comments_counts }}'>
<a href="javascript:void:;" class="btn btn-primary ico-btn" data-aos="fade-up" data-aos-duration="400">
<i class="icon-commentary"></i>
<span>Read More</span>
</a>
</div>
{% endif %}
{% endfor %}
</div>
</div>
<!--End Read Review Section-->
</section>
<!--End Reviews & Ratings Section-->
<!-- Modal Section -->
<!--Start Step By Step Modal-->
<div class="modal fade white-modal stepguide-modal" id="stepguide" tabindex="-1" aria-labelledby="stepguideModalLabel"
aria-hidden="true" data-backdrop="static">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="stepguideModalLabel">{{recipedetails.name}}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="guide-slider">
{% for step in steps %}
<div class="slide">
<div class="video-holder">
{% if step['video'].data.data is defined %}
<video class="video-js" muted autoplay loop playsinline preload="auto" height="485" poster=""
data-setup="{}">
<source src="{{step['video'].data.data}}" type="video/mp4">
</video>
{% else %}
<img class="video-js" src="{{step['thumbnail'].data}}">
{% endif %}
</div>
<ul class="list-unstyled stepguide-list">
<li>
<strong>
{% if locale == 'ar' %}
<span>{{ step.label_ar.data }}</span>
{% else %}
<span>{{ step.label.data }}</span>
{% endif %}
</strong>
{% if locale == 'ar' %}
<p>{{ step.description.data }}</p>
{% else %}
<p>{{ step.description.data }}</p>
{% endif %}
</li>
</ul>
</div>
{% endfor %}
<!-- <div class="slide">
<div class="video-holder">
<video class="video-js" controls preload="auto" height="485" poster="/static/assets/images/banner-vdo.png"
data-setup="{}">
<source src="/static/assets/video/videoplayback.mp4" type="video/mp4">
</video>
</div>
<ul class="list-unstyled stepguide-list">
<li>
<strong>Step 02</strong>
<p>In a food processor, combine the shallots, jalape�os, ginger, macadamia nuts, coriander and
turmeric with 2 tablespoons of the fish sauce and 2 tablespoons of the canola oil; puree until
smooth.</p>
</li>
</ul>
</div>
<div class="slide">
<div class="video-holder">
<video class="video-js" controls preload="auto" height="485" poster="/static/assets/images/banner-vdo.png"
data-setup="{}">
<source src="/static/assets/video/videoplayback.mp4" type="video/mp4">
</video>
</div>
<ul class="list-unstyled stepguide-list">
<li>
<strong>Step 03</strong>
<p>In a soup pot, heat the remaining 2 tablespoons of oil. Add the seasoning paste and cook over
moderate heat, stirring, until fragrant, about 2 minutes. Add the lemongrass and cook, stirring
occasionally, until the mixture darkens slightly and the oil separates, about 10 minutes.</p>
</li>
</ul>
</div>
<div class="slide">
<div class="video-holder">
<video class="video-js" controls preload="auto" height="485" poster="/static/assets/images/banner-vdo.png"
data-setup="{}">
<source src="/static/assets/video/videoplayback.mp4" type="video/mp4">
</video>
</div>
<ul class="list-unstyled stepguide-list">
<li>
<strong>Step 04</strong>
<p>Add the reserved shrimp stock, coconut milk, brown sugar and the remaining 2 tablespoons of fish
sauce. Simmer over moderate heat until the soup is reduced to 6 cups, about 15 minutes.</p>
</li>
</ul>
</div>
<div class="slide">
<div class="video-holder">
<video class="video-js" controls preload="auto" height="485" poster="/static/assets/images/banner-vdo.png"
data-setup="{}">
<source src="/static/assets/video/videoplayback.mp4" type="video/mp4">
</video>
</div>
<ul class="list-unstyled stepguide-list">
<li>
<strong>Step 05</strong>
<p>Meanwhile, in a large pot of boiling water, cook the rice noodles just until pliable, about 1
minute. Drain, shaking out the excess water. Transfer to 8 soup bowls.</p>
</li>
</ul>
</div>
<div class="slide">
<div class="video-holder">
<video class="video-js" controls preload="auto" height="485" poster="/static/assets/images/banner-vdo.png"
data-setup="{}">
<source src="/static/assets/video/videoplayback.mp4" type="video/mp4">
</video>
</div>
<ul class="list-unstyled stepguide-list">
<li>
<strong>Step 06</strong>
<p>Add the shrimp to the soup and cook until pink and curled, about 5 minutes. Season the soup with
salt and ladle it over the noodles. Garnish with lime wedges and serve.</p>
</li>
</ul>
</div> -->
<div class="slide">
<div class="video-holder">
{% if recipedetails.Final_Step_Image is defined %}
<img class="video-js" src="{{ recipedetails.Final_Step_Image }}">
{% endif %}
{#
<!-- <video class="video-js" controls playsinline preload="auto" height="395" poster="<?php echo $fstepim ?>"
data-setup="{}">
<source src="<php echo $video->getPath() . $video->getFilename(|trans }}" type="video/mp4">
</video> -->
#}
</div>
<div class="video-holder-mbl">
{% if recipedetails.Final_Step_Image_Mobile is defined %}
<img class="video-js" src="{{ recipedetails.Final_Step_Image_Mobile }}">
{% endif %}
{#
<!-- <video class="video-js" controls playsinline preload="auto" height="395" poster="<?php echo $fstepim ?>"
data-setup="{}">
<source src="<php echo $video->getPath() . $video->getFilename(|trans }}" type="video/mp4">
</video> -->
#}
</div>
<ul class="list-unstyled stepguide-list rd-laststep-content">
<li>
<strong>{{"Shareyourdish"|trans }}</strong>
<p>{{"Letusknowhowyourdishlooksprepared."|trans }}</p>
<div class="sharebox">
<div class="row">
<div class="col-xl-8">
<p class="title">{{"Clickapictureandmention"|trans }}</p>
<p><a href="javascript:void:;">@RainbowMilk</a> {{"ortagus"|trans }}</p>
<p><a href="javascript:void:;">#RainbowKitchenMagic</a> {{"onInstaorTwitter"|trans }}</p>
</div>
<div class="col-xl-4 sharebox-icons">
<a href="https://www.instagram.com/rainbowmilk/"><img src="/static/assets/images/instagram.png" alt="" class="insta"></a>
<a href="https://twitter.com/rainbowmilk"><img src="/static/assets/images/twitter.png" alt="" class="twitter"></a>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
<div class="guide-dots"></div>
<div class="guide-btns"></div>
</div>
</div>
</div>
</div>
<!--End Step By Step Modal-->
<!--Start-->
<div class="modal fade custom-modal recrecipe-modal" id="recrecipe" tabindex="-1" aria-hidden="true"
data-backdrop="static">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
{{"SuggestedRecipe"|trans }}
</div>
<div class="modal-body">
<div class="row">
{% for key , featured in myrecipes %}
{% if recipedetails.category[0].name == featured.category[0].name %}
{% if recipedetails.name != featured.name %}
{% if key == 1 %}
<div class="col-md-7 col-xl-7 recrecipe-text">
<a class="remove-anchor-style1" href="{{featured.url}}">
<h5 class="main-xs-heading">{{ featured.name }}</h5>
</a>
<div class="rating-holder">
<!--Start Rating Star-->
{% set max = 0 %}
{% set n = reviews|length %}
{% if reviews %}
{% for Reviews in reviews %}
{% if Reviews.name %}
{% set max = max + Reviews.rating %}
{% endif %}
{% endfor %}
{% endif %}
{% if max != 0 %}
{% set rating = (max / n)|round %}
{% else %}
{% set rating = 0 %}
{% endif %}
{% if n > 0 %}
{% for key , Reviews in reviews %}
{% if key == 1 %}
<fieldset class="ratings">
{% if rating == 5 %}
<input type="radio" value="5" checked>
{% else %}
<input type="radio" value="5" >
{% endif %}
<label class="full" for="1rviewar5" title="5 stars"></label>
{% if rating == 4 %}
<input type="radio" value="4" checked>
{% else %}
<input type="radio" value="4" >
{% endif %}
<label class="full" for="1reviwstar4" title=" 4 stars"></label>
{% if rating == 3 %}
<input type="radio" value="3" checked>
{% else %}
<input type="radio" value="3" >
{% endif %}
<label class="full" for="1reviewsar3" title="3 stars"></label>
{% if rating == 2 %}
<input type="radio" value="2" checked>
{% else %}
<input type="radio" value="2" >
{% endif %}
<label class="full" for="1reviestar2" title="2 stars"></label>
{% if rating == 1 %}
<input type="radio" value="1" checked>
{% else %}
<input type="radio" value="1">
{% endif %}
<label class="full" for="1reviewar1" title="1 star"></label>
</fieldset>
{% endif %}
{% endfor %}
{% else %}
<fieldset class="rating">
<input type="radio" id="naddreviewstar5" name="naddreviewrating" value="5">
<label class="full" for="naddreviewstar5" title="5 stars"></label>
<input type="radio" id="naddreviewstar4" name="naddreviewrating" value="4">
<label class="full" for="naddreviewstar4" title=" 4 stars"></label>
<input type="radio" id="naddreviewstar3" name="naddreviewrating" value="3">
<label class="full" for="naddreviewstar3" title="3 stars"></label>
<input type="radio" id="naddreviewstar2" name="naddreviewrating" value="2">
<label class="full" for="naddreviewstar2" title="2 stars"></label>
<input type="radio" id="naddreviewstar1" name="naddreviewrating" value="1">
<label class="full" for="naddreviewstar1" title="1 star"></label>
</fieldset>
{% endif %}
<!--End Rating Star-->
<!--Start Rating and Review Count-->
<div class="rating-info">
<span class="rating-count">{{ ratingcount ? ratingcount : '0'}} {{"Ratings"|trans }}</span><span class="review-count">{{ reviewcount ? reviewcount : '0'}} {{"Reviews"|trans }}</span>
</div>
<!--End Rating and Review Count-->
</div>
<div class="btn-box">
<a href="/{{locale}}/{{"all-recipes"|trans }}" class="btn btn-primary ico-btn">
<i class="icon-dish"></i>
<span>{{"ViewallRecipes"|trans }}</span>
</a>
</div>
</div>
<div class="col-md-5 col-xl-5 recrecipe-img">
<figure>
<a href="{{'/' ~ locale ~ '/' }}{{"all-recipes"|trans}}{{ '/' ~ featured.url }}"><img src="{{ featured.featured_image }}" alt="{{featured.name}}" ></a>
</figure>
</div>
{% endif %}
{% endif %}
{% endif %}
{# <?php if ($this->recipee->getName() != $featured->getName()){ break; } ?> #}
{% endfor %}
</div>
</div>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">
<i><img src="/static/assets/images/pop-close.svg" alt="" /></i>
{{"Close"|trans }}
</span>
</button>
</div>
</div>
</div>
{% if (locale =='ar') %}
{% set topMenu ="/en/all-recipes/" ~ recipedetails.url('en') %}
{% else %}
{% set topMenu ="/ar/كل-الوصفات/" ~ recipedetails.url('ar') %}
{% endif %}
<script type="text/javascript">
{# $(document).ready(function(){
$('.recipeshare').click(function(){
$('#myshare').modal('show');
});
}); #}
var _TopMenuLink = "{{topMenu }}"
</script>
{% endblock %}