<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @Flexy\FrontBundle/templates/booking/singleOffer/singleOffer.html.twig */
class __TwigTemplate_d20148c2c007db5cb85182e3aaa51616 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@Flexy/FrontBundle/templates/booking/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Flexy\\FrontBundle/templates/booking/singleOffer/singleOffer.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Flexy\\FrontBundle/templates/booking/singleOffer/singleOffer.html.twig"));
$this->parent = $this->loadTemplate("@Flexy/FrontBundle/templates/booking/layout.html.twig", "@Flexy\\FrontBundle/templates/booking/singleOffer/singleOffer.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 4
echo "<style>
.countersection .count{
padding:10px !important;
font-size:18px;
}
</style>
<div class=\"body-wrapper\">
<!-- Begin Header Area -->
<!-- Header Area End Here -->
<!-- Begin Li's Breadcrumb Area -->
<div class=\"breadcrumb-area menu-item\">
<div class=\"container simple-container\">
<div class=\"breadcrumb-content\">
<ul>
<li><a href=\"";
// line 22
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_home");
echo "\">Accueil</a></li>
";
// line 24
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 24, $this->source); })()), "categoriesProduct", [], "any", false, false, false, 24));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 25
echo "
<li ><a href=\"";
// line 26
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("single_category_product", ["id" => twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 26)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["category"], "html", null, true);
echo "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 29
echo " <li class=\"active\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 29, $this->source); })()), "name", [], "any", false, false, false, 29), "html", null, true);
echo "</li>
</ul>
</div>
</div>
</div>
<!-- Li's Breadcrumb Area End Here -->
<!-- content-wraper start -->
<div class=\"content-wraper\">
<div class=\"container\">
<div class=\"row single-product-area\">
<div class=\"col-lg-8 col-md-5\">
<!-- Details de produit Left -->
<div class=\"product-details-left sp-tab-style-left-page\">
<div class=\"product-details-images slider-navigation-1\">
<div class=\"lg-image menu-item\">
<a class=\"popup-img venobox vbox-item\" href=\"/uploads/";
// line 50
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 50, $this->source); })()), "image", [], "any", false, false, false, 50)), "html", null, true);
echo "\" data-gall=\"myGallery\">
<img src=\"/uploads/";
// line 51
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 51, $this->source); })()), "image", [], "any", false, false, false, 51)), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 51, $this->source); })()), "name", [], "any", false, false, false, 51), "html", null, true);
echo "\">
</a>
</div>
";
// line 55
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 55, $this->source); })()), "images", [], "any", false, false, false, 55));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 56
echo " <div class=\"lg-image menu-item\">
<a class=\"popup-img venobox vbox-item\" href=\"/uploads/images/products";
// line 57
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["image"], "path", [], "any", false, false, false, 57)), "html", null, true);
echo "\" data-gall=\"myGallery\">
<img src=\"/uploads/images/products";
// line 58
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["image"], "path", [], "any", false, false, false, 58)), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["image"], "alt", [], "any", false, false, false, 58), "html", null, true);
echo "\">
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 62
echo "
</div>
<div class=\"tab-style-left\">
<div class=\"sm-image\"><img src=\"/uploads/";
// line 71
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 71, $this->source); })()), "image", [], "any", false, false, false, 71)), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 71, $this->source); })()), "name", [], "any", false, false, false, 71), "html", null, true);
echo "\"></div>
";
// line 72
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 72, $this->source); })()), "images", [], "any", false, false, false, 72));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 73
echo " <div class=\"sm-image\"><img src=\"/uploads/images/products";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["image"], "path", [], "any", false, false, false, 73)), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["image"], "alt", [], "any", false, false, false, 73), "html", null, true);
echo "\"></div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 75
echo "
</div>
</div>
<!--// Details de produit Left -->
</div>
<div class=\"col-lg-4 col-md-5\">
<div class=\"product-details-view-content pt-60\">
<div class=\"product-info\">
<h2>";
// line 85
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 85, $this->source); })()), "name", [], "any", false, false, false, 85), "html", null, true);
echo "</h2>
<p class=\"sell-by\">
";
// line 91
if (twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 91, $this->source); })()), "brand", [], "any", false, false, false, 91)) {
echo " Marque: <a href=\"#\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 91, $this->source); })()), "brand", [], "any", false, false, false, 91), "html", null, true);
echo "</a>";
}
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 91, $this->source); })()), "vendor", [], "any", false, false, false, 91)) {
echo " / <a href=\"#\"> Par ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 91, $this->source); })()), "vendor", [], "any", false, false, false, 91), "html", null, true);
echo " </a>";
}
echo "</span>
</p>
";
// line 96
if (twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 96, $this->source); })()), "skuCode", [], "any", false, false, false, 96)) {
// line 97
echo " <span class=\"product-details-ref d-none\">Reference: ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 97, $this->source); })()), "skuCode", [], "any", false, false, false, 97), "html", null, true);
echo "</span>
";
}
// line 99
echo "
<div class=\"price-box pt-20\">
<span class=\"new-price new-price-2\">MAD ";
// line 101
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 101, $this->source); })()), "formattedPrice", [], "any", false, false, false, 101), "html", null, true);
echo "</span>
";
// line 102
if ((twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 102, $this->source); })()), "oldPrice", [], "any", false, false, false, 102) || (twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 102, $this->source); })()), "oldPrice", [], "any", false, false, false, 102) > 0))) {
// line 103
echo " <span class=\"old-price\">MAD ";
echo twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 103, $this->source); })()), "oldPrice", [], "any", false, false, false, 103) / 100), "html", null, true);
echo "</span>
";
}
// line 105
echo " </div>
";
// line 112
echo "
<div style=\"margin-top:15px;\" class=\"product-desc\">
<p>
<span>
";
// line 116
echo twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 116, $this->source); })()), "shortDescription", [], "any", false, false, false, 116);
echo "
</span>
</p>
</div>
<div class=\"rating-box pt-20\">
<h5>Rating : ";
// line 125
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 125, $this->source); })()), "rating", [], "any", false, false, false, 125), 1, ".", ","), "html", null, true);
echo "/5</h5>
<ul class=\"rating rating-with-review-item\">
";
// line 129
if ((twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 129, $this->source); })()), "rating", [], "any", false, false, false, 129) > 0)) {
// line 130
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 130, $this->source); })()), "rating", [], "any", false, false, false, 130))));
foreach ($context['_seq'] as $context["_key"] => $context["stars"]) {
// line 131
echo " <li><i class=\"fa fa-star\"></i></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['stars'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 134
echo " ";
if ((twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 134, $this->source); })()), "rating", [], "any", false, false, false, 134)) < 5)) {
// line 135
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 135, $this->source); })()), "rating", [], "any", false, false, false, 135)), 4));
foreach ($context['_seq'] as $context["_key"] => $context["stars"]) {
// line 136
echo " <li class=\"no-star\"><i class=\"fa fa-star\"></i></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['stars'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 138
echo " ";
}
// line 139
echo "
";
} else {
// line 141
echo " <li class=\"no-star\"><i class=\"fa fa-star\"></i></li>
<li class=\"no-star\"><i class=\"fa fa-star\"></i></li>
<li class=\"no-star\"><i class=\"fa fa-star\"></i></li>
<li class=\"no-star\"><i class=\"fa fa-star\"></i></li>
<li class=\"no-star\"><i class=\"fa fa-star\"></i></li>
";
}
// line 147
echo "
<li class=\"menu-item\" ><a href=\"#reviews\" id=\"showcomments\"> Avis (";
// line 153
echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 153, $this->source); })()), "comments", [], "any", false, false, false, 153)), "html", null, true);
echo ") <i class=\"fa fa-comments\" ></i> </a></li>
</ul>
</div>
";
// line 174
echo "
<div class=\"single-add-to-cart\">
<form action=\"#\" class=\"cart-quantity\">
";
// line 185
echo " <button data-type=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 185, $this->source); })()), "productType", [], "any", false, false, false, 185), "html", null, true);
echo "\" data-limitedamount=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 185, $this->source); })()), "vendor", [], "any", false, false, false, 185), "limitedAmount", [], "any", false, false, false, 185), "html", null, true);
echo "\" data-weight=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 185, $this->source); })()), "weight", [], "any", false, false, false, 185), "html", null, true);
echo "\" data-collecte=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 185, $this->source); })()), "vendor", [], "any", false, false, false, 185), "addressCollecte", [], "any", false, false, false, 185), "html", null, true);
echo "\" data-vendor=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 185, $this->source); })()), "vendor", [], "any", false, false, false, 185), "id", [], "any", false, false, false, 185), "html", null, true);
echo "\" data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 185, $this->source); })()), "id", [], "any", false, false, false, 185), "html", null, true);
echo "\" data-name=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 185, $this->source); })()), "name", [], "any", false, false, false, 185), "html", null, true);
echo "\" data-image=\"uploads/";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 185, $this->source); })()), "image", [], "any", false, false, false, 185)), "html", null, true);
echo "\" data-price=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 185, $this->source); })()), "formattedPrice", [], "any", false, false, false, 185), "html", null, true);
echo "\" data-url=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("single_product", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 185, $this->source); })()), "id", [], "any", false, false, false, 185)]), "html", null, true);
echo "\" class=\"add-cart add-to-cart active add-product-to-cart\" >Ajouter au panier</button>
</form>
</div>
<div class=\"booking-form-modal\" >
<!-- Begin Prévisualiser | Modal Area -->
<div class=\"modal fade modal-wrapper\" id=\"book-modal\" >
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-body\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
<div class=\"modal-inner-area row\">
<div class=\"col-lg-12\">
<div class=\"li-review-content\">
<!-- Begin Feedback Area -->
<div class=\"feedback-area\">
<div class=\"feedback\">
<form action=\"#\" class=\"cart-quantity\">
<div class=\"quantity d-none\">
<label>Quantité</label>
<div class=\"cart-plus-minus\">
<input class=\"cart-plus-minus-box\" value=\"1\" type=\"text\">
<div class=\"dec qtybutton\"><i class=\"fa fa-angle-down\"></i></div>
<div class=\"inc qtybutton\"><i class=\"fa fa-angle-up\"></i></div>
</div>
</div>
<div class=\"row\" >
";
// line 228
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 228, $this->source); })()), "brand", [], "any", false, false, false, 228), "id", [], "any", false, false, false, 228) == 8)) {
// line 229
echo " <div class=\"col-6\" >
<p class=\"feedback-form\">
<label for=\"feedback\">Choisissez la date de depart</label>
<input type=\"datetime-local\" name=\"date-start\" />
</p>
</div>
<div class=\"col-6\" >
<p class=\"feedback-form\">
<label for=\"feedback\">Choisissez la date d'arrivée</label>
<input type=\"datetime-local\" name=\"date-end\" />
</p>
</div>
<div class=\"col-6\" >
<p class=\"feedback-form\">
<label for=\"feedback\">Nombre de personnes</label>
<select name=\"nbrPerson\">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
</select>
</p>
</div>
<div class=\"col-6\" >
<p class=\"feedback-form\">
<label for=\"feedback\">Nombre de chambre</label>
<select name=\"nbrRooms\">
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</p>
</div>
";
}
// line 271
echo "
<div class=\"col-12\" >
<p class=\"feedback-form\">
<label for=\"feedback\">Laissez nous une note (Facultatif)</label>
<textarea id=\"feedback\" name=\"comment\" cols=\"45\" rows=\"2\" aria-required=\"true\"></textarea>
</p>
</div>
</div>
<div class=\"feedback-input\">
<div class=\"feedback-btn pb-15\">
<a href=\"#\" class=\"close register-button d-none\" data-dismiss=\"modal\" aria-label=\"Close\">Annuler</a>
<button data-limitedamount=\"";
// line 297
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 297, $this->source); })()), "vendor", [], "any", false, false, false, 297), "limitedAmount", [], "any", false, false, false, 297), "html", null, true);
echo "\" data-type=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 297, $this->source); })()), "productType", [], "any", false, false, false, 297), "html", null, true);
echo "\" data-weight=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 297, $this->source); })()), "weight", [], "any", false, false, false, 297), "html", null, true);
echo "\" data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 297, $this->source); })()), "id", [], "any", false, false, false, 297), "html", null, true);
echo "\" data-collecte=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 297, $this->source); })()), "vendor", [], "any", false, false, false, 297), "addressCollecte", [], "any", false, false, false, 297), "html", null, true);
echo "\" data-vendor=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 297, $this->source); })()), "vendor", [], "any", false, false, false, 297), "id", [], "any", false, false, false, 297), "html", null, true);
echo "\" data-name=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 297, $this->source); })()), "name", [], "any", false, false, false, 297), "html", null, true);
echo "\" data-image=\"uploads/";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 297, $this->source); })()), "image", [], "any", false, false, false, 297)), "html", null, true);
echo "\" data-price=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 297, $this->source); })()), "formattedPrice", [], "any", false, false, false, 297), "html", null, true);
echo "\" data-url=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("single_offer", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 297, $this->source); })()), "id", [], "any", false, false, false, 297)]), "html", null, true);
echo "\" class=\"add-cart add-to-cart active add-product-to-cart\" >Réserver</button>
</div>
</div>
</form>
</div>
</div>
<!-- Feedback Area End Here -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Prévisualiser | Modal Area End Here -->
</div>
<div class=\"menu-item product-additional-info pt-25\">
<div class=\"product-social-sharing pt-25\">
<ul>
<li class=\"facebook\"><a href=\"#\"><i class=\"fa fa-facebook\"></i>Facebook</a></li>
<li class=\"twitter\"><a href=\"#\"><i class=\"fa fa-twitter\"></i>Twitter</a></li>
<li class=\"google-plus\"><a href=\"#\"><i class=\"fa fa-google-plus\"></i>Google +</a></li>
<li class=\"instagram\"><a href=\"#\"><i class=\"fa fa-instagram\"></i>Instagram</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- <div class=\"col-lg-3 col-md-3 \">
<div class=\"block-reassurance \">
<div class=\"row \" >
";
// line 336
if (twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 336, $this->source); })()), "vendor", [], "any", false, false, false, 336)) {
// line 337
echo " <div class=\"col-12 p-3 \" >
<div class=\"card actions p-3\">
<h5>Vendeur : <span class=\"badge badge-warning\" >";
// line 339
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 339, $this->source); })()), "vendor", [], "any", false, false, false, 339), "html", null, true);
echo "</span></h5>
<div>
<p>
<small>
100% Evaluation du vendeur<br>
67 abonnés <br>
</small>
<h6>Performance vendeur</h6>
<p>
<span class=\"badge badge-success text-white\" ><i class=\"fa fa-star\" ></i></span> Expeditions : <span class=\"badge badge-success text-white\" >Excellent</span>
<br>
<span class=\"badge badge-success text-white\" ><i class=\"fa fa-star\" ></i></span> Qualité : <span class=\"badge badge-warning text-white\" >Moyen</span>
<br>
<span class=\"badge badge-success text-white\" ><i class=\"fa fa-star\" ></i></span> Avis consommateurs : <span class=\"badge badge-warning text-white\" >Moyen</span>
</p>
</p>
</div>
</div>
</div>
";
}
// line 363
echo "
</div>
</div>
</div>-->
</div>
</div>
</div>
<!-- content-wraper end -->
<!-- Begin Product Area -->
<div class=\"product-area pt-35\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"li-product-tab\">
<ul class=\"nav li-product-menu\">
<li><a class=\"active\" data-toggle=\"tab\" href=\"#description\" id=\"description_pro\"><span>Description</span></a></li>
<!-- <li><a data-toggle=\"tab\" href=\"#product-details\" id=\"description_technique\"><span>Descriptif technique</span></a></li>-->
<li><a data-toggle=\"tab\" href=\"#reviews\" id=\"comments\"><span>Avis</span></a></li>
</ul>
</div>
<!-- Begin Li's Tab Menu Content Area -->
</div>
</div>
<div class=\"tab-content\">
<div id=\"description\" class=\"tab-pane active show\" role=\"tabpanel\">
<div class=\"product-description\">
<span>
";
// line 392
echo twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 392, $this->source); })()), "description", [], "any", false, false, false, 392);
echo "
</span>
</div>
</div>
<div id=\"product-details\" class=\"tab-pane p-5\" role=\"tabpanel\">
<table class=\"table table-sm \">
<tbody>
<tr>
<th scope=\"row\">Modele</th>
<td>MOD";
// line 402
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 402, $this->source); })()), "skuCode", [], "any", false, false, false, 402), "html", null, true);
echo "</td>
</tr>
<tr>
<th scope=\"row\">Marque</th>
<td>";
// line 406
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 406, $this->source); })()), "brand", [], "any", false, false, false, 406), "html", null, true);
echo "</td>
</tr>
<tr>
<th scope=\"row\">SKU</th>
<td>";
// line 410
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 410, $this->source); })()), "skuCode", [], "any", false, false, false, 410), "html", null, true);
echo "</td>
</tr>
<tr>
<th scope=\"row\">Poids (Kg)</th>
<td>0.9 </td>
</tr>
</tbody>
</table>
</div>
<div id=\"reviews\" class=\"tab-pane\" role=\"tabpanel\">
<div class=\"product-reviews\">
<div class=\"container\">\t\t
\t\t<div class=\"row\">
\t\t\t<div class=\"col-sm-3\">
\t\t\t\t<div class=\"rating-block\">
\t\t\t\t\t<h4>AVIS </h4>
\t\t\t\t\t<h2 class=\"bold padding-bottom-7\"> ";
// line 431
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 431, $this->source); })()), "rating", [], "any", false, false, false, 431), 1, ".", ","), "html", null, true);
echo " <small>/ 5</small></h2>
\t\t\t\t\t
";
// line 434
if ((twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 434, $this->source); })()), "rating", [], "any", false, false, false, 434), 1, ".", ",") > 0)) {
// line 435
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 435, $this->source); })()), "rating", [], "any", false, false, false, 435))));
foreach ($context['_seq'] as $context["_key"] => $context["stars"]) {
// line 436
echo "
<button type=\"button\" class=\"btn btn-warning btn-sm\" aria-label=\"Left Align\">
\t\t\t\t\t <i class=\"fa fa-star\"></i>
\t\t\t\t\t </button>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['stars'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 441
echo "
";
// line 442
if ((twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 442, $this->source); })()), "rating", [], "any", false, false, false, 442)) < 5)) {
// line 443
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 443, $this->source); })()), "rating", [], "any", false, false, false, 443)), 4));
foreach ($context['_seq'] as $context["_key"] => $context["stars"]) {
// line 444
echo " <button type=\"button\" class=\"btn btn-default btn-grey btn-sm\" aria-label=\"Left Align\">
\t\t\t\t\t <i class=\"fa fa-star\"></i>
\t\t\t\t\t</button>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['stars'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 448
echo " ";
}
// line 449
echo " ";
} else {
echo "
<button type=\"button\" class=\"btn btn-default btn-grey btn-sm\" aria-label=\"Left Align\"> <i class=\"fa fa-star\"></i>\t</button>
<button type=\"button\" class=\"btn btn-default btn-grey btn-sm\" aria-label=\"Left Align\"> <i class=\"fa fa-star\"></i>\t</button>
<button type=\"button\" class=\"btn btn-default btn-grey btn-sm\" aria-label=\"Left Align\"> <i class=\"fa fa-star\"></i>\t</button>
<button type=\"button\" class=\"btn btn-default btn-grey btn-sm\" aria-label=\"Left Align\"> <i class=\"fa fa-star\"></i>\t</button>
<button type=\"button\" class=\"btn btn-default btn-grey btn-sm\" aria-label=\"Left Align\"> <i class=\"fa fa-star\"></i>\t</button>
";
}
// line 457
echo "
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"col-sm-3\">
\t\t\t\t<h4> </h4>
\t\t\t\t<div class=\"pull-left\">
\t\t\t\t\t<div class=\"pull-left\" style=\"width:35px; line-height:1;\">
\t\t\t\t\t\t<div style=\"height:9px; margin:5px 0;\">5 <i class=\"fa fa-star\"></i> </div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-left\" style=\"width:180px;\">
\t\t\t\t\t\t<div class=\"progress\" style=\"height:9px; margin:8px 0;\">
";
// line 470
$context["percentage"] = 0;
// line 471
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 471, $this->source); })()), "getStars5", [], "any", false, false, false, 471) > 0)) {
// line 472
echo " ";
$context["percentage"] = ((twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 472, $this->source); })()), "getStars5", [], "any", false, false, false, 472) / twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 472, $this->source); })()), "comments", [], "any", false, false, false, 472))) * 100);
// line 473
echo " ";
}
// line 474
echo "\t\t\t\t\t\t <div class=\"progress-bar progress-bar-success\" role=\"progressbar\" aria-valuenow=\"5\" aria-valuemin=\"0\" aria-valuemax=\"5\" style=\"width: ";
echo twig_escape_filter($this->env, (isset($context["percentage"]) || array_key_exists("percentage", $context) ? $context["percentage"] : (function () { throw new RuntimeError('Variable "percentage" does not exist.', 474, $this->source); })()), "html", null, true);
echo "%\">
\t\t\t\t\t\t\t<span class=\"sr-only\">80% Complete (danger)</span>
\t\t\t\t\t\t </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-right\" style=\"margin-left:10px;\"> ";
// line 479
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 479, $this->source); })()), "getStars5", [], "any", false, false, false, 479), "html", null, true);
echo "</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"pull-left\">
\t\t\t\t\t<div class=\"pull-left\" style=\"width:35px; line-height:1;\">
\t\t\t\t\t\t<div style=\"height:9px; margin:5px 0;\">4 <i class=\"fa fa-star\"></i> </div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-left\" style=\"width:180px;\">
\t\t\t\t\t\t<div class=\"progress\" style=\"height:9px; margin:8px 0;\">
";
// line 487
$context["percentage"] = 0;
// line 488
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 488, $this->source); })()), "getStars4", [], "any", false, false, false, 488) > 0)) {
// line 489
echo " ";
$context["percentage"] = ((twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 489, $this->source); })()), "getStars4", [], "any", false, false, false, 489) / twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 489, $this->source); })()), "comments", [], "any", false, false, false, 489))) * 100);
// line 490
echo " ";
}
// line 491
echo "\t\t\t\t\t\t <div class=\"progress-bar progress-bar-primary\" role=\"progressbar\" aria-valuenow=\"4\" aria-valuemin=\"0\" aria-valuemax=\"5\" style=\"width: ";
echo twig_escape_filter($this->env, (isset($context["percentage"]) || array_key_exists("percentage", $context) ? $context["percentage"] : (function () { throw new RuntimeError('Variable "percentage" does not exist.', 491, $this->source); })()), "html", null, true);
echo "%\">
\t\t\t\t\t\t\t<span class=\"sr-only\">80% Complete (danger)</span>
\t\t\t\t\t\t </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-right\" style=\"margin-left:10px;\">
";
// line 498
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 498, $this->source); })()), "getStars4", [], "any", false, false, false, 498), "html", null, true);
echo "
</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"pull-left\">
\t\t\t\t\t<div class=\"pull-left\" style=\"width:35px; line-height:1;\">
\t\t\t\t\t\t<div style=\"height:9px; margin:5px 0;\">3 <i class=\"fa fa-star\"></i></div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-left\" style=\"width:180px;\">
\t\t\t\t\t\t<div class=\"progress\" style=\"height:9px; margin:8px 0;\">
";
// line 508
$context["percentage"] = 0;
// line 509
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 509, $this->source); })()), "getStars3", [], "any", false, false, false, 509) > 0)) {
// line 510
echo " ";
$context["percentage"] = ((twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 510, $this->source); })()), "getStars3", [], "any", false, false, false, 510) / twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 510, $this->source); })()), "comments", [], "any", false, false, false, 510))) * 100);
// line 511
echo " ";
}
// line 512
echo "\t\t\t\t\t\t <div class=\"progress-bar progress-bar-info\" role=\"progressbar\" aria-valuenow=\"3\" aria-valuemin=\"0\" aria-valuemax=\"5\" style=\"width:";
echo twig_escape_filter($this->env, (isset($context["percentage"]) || array_key_exists("percentage", $context) ? $context["percentage"] : (function () { throw new RuntimeError('Variable "percentage" does not exist.', 512, $this->source); })()), "html", null, true);
echo "%\">
\t\t\t\t\t\t\t<span class=\"sr-only\">80% Complete (danger)</span>
\t\t\t\t\t\t </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-right\" style=\"margin-left:10px;\">";
// line 517
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 517, $this->source); })()), "getStars3", [], "any", false, false, false, 517), "html", null, true);
echo "</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"pull-left\">
\t\t\t\t\t<div class=\"pull-left\" style=\"width:35px; line-height:1;\">
\t\t\t\t\t\t<div style=\"height:9px; margin:5px 0;\">2 <i class=\"fa fa-star\"></i></div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-left\" style=\"width:180px;\">
\t\t\t\t\t\t<div class=\"progress\" style=\"height:9px; margin:8px 0;\">
";
// line 525
$context["percentage"] = 0;
// line 526
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 526, $this->source); })()), "getStars2", [], "any", false, false, false, 526) > 0)) {
// line 527
echo " ";
$context["percentage"] = ((twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 527, $this->source); })()), "getStars2", [], "any", false, false, false, 527) / twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 527, $this->source); })()), "comments", [], "any", false, false, false, 527))) * 100);
// line 528
echo " ";
}
// line 529
echo "\t\t\t\t\t\t <div class=\"progress-bar progress-bar-warning\" role=\"progressbar\" aria-valuenow=\"2\" aria-valuemin=\"0\" aria-valuemax=\"5\" style=\"width: ";
echo twig_escape_filter($this->env, (isset($context["percentage"]) || array_key_exists("percentage", $context) ? $context["percentage"] : (function () { throw new RuntimeError('Variable "percentage" does not exist.', 529, $this->source); })()), "html", null, true);
echo "%\">
\t\t\t\t\t\t\t<span class=\"sr-only\">80% Complete (danger)</span>
\t\t\t\t\t\t </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-right\" style=\"margin-left:10px;\">";
// line 534
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 534, $this->source); })()), "getStars2", [], "any", false, false, false, 534), "html", null, true);
echo "</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"pull-left\">
\t\t\t\t\t<div class=\"pull-left\" style=\"width:35px; line-height:1;\">
\t\t\t\t\t\t<div style=\"height:9px; margin:5px 0;\">1 <i class=\"fa fa-star\"></i></div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-left\" style=\"width:180px;\">
\t\t\t\t\t\t<div class=\"progress\" style=\"height:9px; margin:8px 0;\">
";
// line 542
$context["percentage"] = 0;
// line 543
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 543, $this->source); })()), "getStars1", [], "any", false, false, false, 543) > 0)) {
// line 544
echo " ";
$context["percentage"] = ((twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 544, $this->source); })()), "getStars1", [], "any", false, false, false, 544) / twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 544, $this->source); })()), "comments", [], "any", false, false, false, 544))) * 100);
// line 545
echo " ";
}
// line 546
echo "\t\t\t\t\t\t <div class=\"progress-bar progress-bar-danger\" role=\"progressbar\" aria-valuenow=\"1\" aria-valuemin=\"0\" aria-valuemax=\"5\" style=\"width: ";
echo twig_escape_filter($this->env, (isset($context["percentage"]) || array_key_exists("percentage", $context) ? $context["percentage"] : (function () { throw new RuntimeError('Variable "percentage" does not exist.', 546, $this->source); })()), "html", null, true);
echo "%\">
\t\t\t\t\t\t\t<span class=\"sr-only\">80% Complete (danger)</span>
\t\t\t\t\t\t </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-right\" style=\"margin-left:10px;\">";
// line 551
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 551, $this->source); })()), "getStars1", [], "any", false, false, false, 551), "html", null, true);
echo "</div>
\t\t\t\t</div>
\t\t\t</div>\t\t\t
\t\t</div>\t\t\t
\t\t
\t\t<div class=\"row\">
\t\t\t<div class=\"col-sm-7\">
\t\t\t\t<hr/>
\t\t\t\t<div class=\"review-block\">
";
// line 561
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 561, $this->source); })()), "comments", [], "any", false, false, false, 561));
foreach ($context['_seq'] as $context["_key"] => $context["singleComment"]) {
// line 562
echo "\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t\t<img src=\"http://dummyimage.com/60x60/666/ffffff&text=No+Image\" class=\"img-rounded\">
\t\t\t\t\t\t\t<div class=\"review-block-name\"><b> ";
// line 565
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["singleComment"], "customer", [], "any", false, false, false, 565), "lastName", [], "any", false, false, false, 565), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["singleComment"], "customer", [], "any", false, false, false, 565), "firstName", [], "any", false, false, false, 565), "html", null, true);
echo "</b></div>
\t\t\t\t\t\t\t<div class=\"review-block-date\">";
// line 566
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleComment"], "createdAt", [], "any", false, false, false, 566), "Y-m-d H:i"), "html", null, true);
echo " </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"col-sm-9\">
\t\t\t\t\t\t\t<div class=\"review-block-rate\">
";
// line 571
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, twig_get_attribute($this->env, $this->source, $context["singleComment"], "rating", [], "any", false, false, false, 571)));
foreach ($context['_seq'] as $context["_key"] => $context["stars"]) {
// line 572
echo " \t<button type=\"button\" class=\"btn btn-warning btn-xs\" aria-label=\"Left Align\">
\t\t\t\t\t\t\t\t <i class=\"fa fa-star\"></i>
\t\t\t\t\t\t\t\t</button>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['stars'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 577
echo "\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t ";
// line 578
if ((twig_get_attribute($this->env, $this->source, $context["singleComment"], "rating", [], "any", false, false, false, 578) < 5)) {
// line 579
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(twig_get_attribute($this->env, $this->source, $context["singleComment"], "rating", [], "any", false, false, false, 579), 4));
foreach ($context['_seq'] as $context["_key"] => $context["stars"]) {
// line 580
echo "\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-default btn-grey btn-xs\" aria-label=\"Left Align\">
\t\t\t\t\t\t\t\t <i class=\"fa fa-star\"></i>
\t\t\t\t\t\t\t\t</button>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['stars'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 584
echo " ";
}
// line 585
echo "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"review-block-title\">COMMENTAIRES</div>
\t\t\t\t\t\t\t<div class=\"review-block-description\">";
// line 587
echo twig_get_attribute($this->env, $this->source, $context["singleComment"], "comment", [], "any", false, false, false, 587);
echo "</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<hr/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['singleComment'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 593
echo "\t\t\t\t\t
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t
</div> <!-- /container -->
<div class=\"product-details-comment-block\">
";
// line 602
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 602, $this->source); })()), "comments", [], "any", false, false, false, 602));
foreach ($context['_seq'] as $context["_key"] => $context["singleComment"]) {
// line 603
echo "
<!-- <div class=\"comment-details\">
<div class=\"comment-author-infos pt-25\">
<span>
";
// line 608
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["singleComment"], "customer", [], "any", false, false, false, 608), "lastName", [], "any", false, false, false, 608), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["singleComment"], "customer", [], "any", false, false, false, 608), "firstName", [], "any", false, false, false, 608), "html", null, true);
echo "
<ul class=\"rating d-inline\">
";
// line 610
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, twig_get_attribute($this->env, $this->source, $context["singleComment"], "rating", [], "any", false, false, false, 610)));
foreach ($context['_seq'] as $context["_key"] => $context["stars"]) {
// line 611
echo " <li><i class=\"fa fa-star\"></i></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['stars'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 614
echo "
";
// line 617
if ((twig_get_attribute($this->env, $this->source, $context["singleComment"], "rating", [], "any", false, false, false, 617) < 5)) {
// line 618
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(twig_get_attribute($this->env, $this->source, $context["singleComment"], "rating", [], "any", false, false, false, 618), 4));
foreach ($context['_seq'] as $context["_key"] => $context["stars"]) {
// line 619
echo " <li class=\"no-star\"><i class=\"fa fa-star\"></i></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['stars'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 621
echo " ";
}
// line 622
echo "
</ul>
</span>
<em>";
// line 627
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleComment"], "createdAt", [], "any", false, false, false, 627), "Y-m-d H:i"), "html", null, true);
echo "</em>
</div>
<p>";
// line 630
echo twig_get_attribute($this->env, $this->source, $context["singleComment"], "comment", [], "any", false, false, false, 630);
echo "</p>
</div>
<hr style=\"margin:0;\">-->
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['singleComment'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 634
echo "
";
// line 635
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_CUSTOMER")) {
// line 636
echo "
<div class=\"review-btn\">
<a class=\"review-links\" href=\"#\" data-toggle=\"modal\" data-target=\"#mymodal\">Ajouter un commentaire!</a>
</div>
<!-- Begin Prévisualiser | Modal Area -->
<div class=\"modal fade modal-wrapper\" id=\"mymodal\" >
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-body\">
<h3 class=\"review-page-title\">Ajouter un commentaire</h3>
<div class=\"modal-inner-area row\">
<div class=\"col-lg-6\">
<div class=\"li-review-product\">
<img width=\"200px\" src=\"/uploads/";
// line 650
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 650, $this->source); })()), "image", [], "any", false, false, false, 650)), "html", null, true);
echo "\" alt=\"Li's Product\">
<div class=\"li-review-product-desc\">
<p class=\"li-product-name\">";
// line 652
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 652, $this->source); })()), "name", [], "any", false, false, false, 652), "html", null, true);
echo "</p>
<p>
<span>";
// line 654
echo twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 654, $this->source); })()), "shortDescription", [], "any", false, false, false, 654);
echo "</span>
</p>
</div>
</div>
</div>
<div class=\"col-lg-6\">
<div class=\"li-review-content\">
<!-- Begin Feedback Area -->
<div class=\"feedback-area\">
<div class=\"feedback\">
<h3 class=\"feedback-title\">Votre avis</h3>
<form action=\"";
// line 665
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("comment_product", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["singleOffer"]) || array_key_exists("singleOffer", $context) ? $context["singleOffer"] : (function () { throw new RuntimeError('Variable "singleOffer" does not exist.', 665, $this->source); })()), "id", [], "any", false, false, false, 665)]), "html", null, true);
echo "\" method=\"POST\">
<p class=\"your-opinion\">
<label>Evaluer le produit</label>
<span>
<select name=\"rating\" class=\"star-rating\">
<option value=\"1\">1</option>
<option value=\"2\">2</option>
<option value=\"3\">3</option>
<option value=\"4\">4</option>
<option value=\"5\">5</option>
</select>
</span>
</p>
<p class=\"feedback-form\">
<label for=\"feedback\">Votre commentaire</label>
<textarea id=\"feedback\" name=\"comment\" cols=\"45\" rows=\"8\" aria-required=\"true\"></textarea>
</p>
<div class=\"feedback-input\">
<div class=\"feedback-btn pb-15\">
<a href=\"#\" class=\"close register-button d-none\" data-dismiss=\"modal\" aria-label=\"Close\">Close</a>
<button class=\"register-button\" type=\"submit\">Envoyer</button>
</div>
</div>
</form>
</div>
</div>
<!-- Feedback Area End Here -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Prévisualiser | Modal Area End Here -->
";
}
// line 705
echo " </div>
</div>
</div>
</div>
</div>
</div>
<!-- Product Area End Here -->
<!-- Begin Li's PC Portable Product Area -->
<section class=\"product-area li-laptop-product pt-30 pb-50\">
";
// line 742
echo " </div>
<!-- Li's Section Area End Here -->
</div>
</div>
</section>
<!-- Li's PC Portable Product Area End Here -->
<!-- Begin Footer Area -->
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 755
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 756
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script>
\$(document).ready(function(){
\$.ajax({
url: \"";
// line 761
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("departements_ajax");
echo "\",
data:{
city:\$(\"select[name='city']\").val()
},
success:function(data){
\$(\"select[name='departement']\").html(data);
},
});
\$(\"select[name='city'\").change(function(){
\$.ajax({
url: \"";
// line 773
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("departements_ajax");
echo "\",
data:{
city:\$(this).val()
},
success:function(data){
\$(\"select[name='departement']\").html(data);
},
});
});
\$(\"#showcomments\").click(function(){
\$(\"#comments\").addClass(\"active show\");
\$(\"#reviews\").addClass(\"active show\");
\$(\"#description_technique\").removeClass(\"active show\");
\$(\"#product-details\").removeClass(\"active show\");
\$(\"#description_pro\").removeClass(\"active show\");
\$(\"#description\").removeClass(\"active show\");
});
(function () {
const second = 1000,
minute = second * 60,
hour = minute * 60,
day = hour * 24;
//I'm adding this section so I don't have to keep updating this pen every year :-)
//remove this if you don't need it
let today = new Date(),
dd = String(today.getDate()).padStart(2, \"0\"),
mm = String(today.getMonth() + 1).padStart(2, \"0\"),
yyyy = today.getFullYear(),
nextYear = yyyy + 1,
dayMonth = \"09/30/\",
birthday = dayMonth + yyyy;
today = mm + \"/\" + dd + \"/\" + yyyy;
if (today > birthday) {
birthday = dayMonth + nextYear;
}
//end
const countDown = new Date(birthday).getTime(),
x = setInterval(function() {
const now = new Date().getTime(),
distance = countDown - now;
document.getElementById(\"days\").innerText = Math.floor(distance / (day)),
document.getElementById(\"hours\").innerText = Math.floor((distance % (day)) / (hour)),
document.getElementById(\"minutes\").innerText = Math.floor((distance % (hour)) / (minute)),
document.getElementById(\"seconds\").innerText = Math.floor((distance % (minute)) / second);
}, 0)
}());
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@Flexy\\FrontBundle/templates/booking/singleOffer/singleOffer.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1233 => 773, 1218 => 761, 1210 => 756, 1200 => 755, 1179 => 742, 1168 => 705, 1125 => 665, 1111 => 654, 1106 => 652, 1101 => 650, 1085 => 636, 1083 => 635, 1080 => 634, 1070 => 630, 1064 => 627, 1057 => 622, 1054 => 621, 1047 => 619, 1042 => 618, 1040 => 617, 1035 => 614, 1027 => 611, 1023 => 610, 1016 => 608, 1009 => 603, 1005 => 602, 994 => 593, 982 => 587, 978 => 585, 975 => 584, 966 => 580, 961 => 579, 959 => 578, 956 => 577, 946 => 572, 942 => 571, 934 => 566, 928 => 565, 923 => 562, 919 => 561, 906 => 551, 897 => 546, 894 => 545, 891 => 544, 888 => 543, 886 => 542, 875 => 534, 866 => 529, 863 => 528, 860 => 527, 857 => 526, 855 => 525, 844 => 517, 835 => 512, 832 => 511, 829 => 510, 826 => 509, 824 => 508, 811 => 498, 800 => 491, 797 => 490, 794 => 489, 791 => 488, 789 => 487, 778 => 479, 769 => 474, 766 => 473, 763 => 472, 760 => 471, 758 => 470, 743 => 457, 730 => 449, 727 => 448, 718 => 444, 713 => 443, 711 => 442, 708 => 441, 698 => 436, 693 => 435, 691 => 434, 685 => 431, 661 => 410, 654 => 406, 647 => 402, 634 => 392, 603 => 363, 576 => 339, 572 => 337, 570 => 336, 510 => 297, 482 => 271, 438 => 229, 436 => 228, 371 => 185, 366 => 174, 351 => 153, 343 => 147, 335 => 141, 331 => 139, 328 => 138, 321 => 136, 316 => 135, 313 => 134, 305 => 131, 300 => 130, 298 => 129, 291 => 125, 279 => 116, 273 => 112, 268 => 105, 262 => 103, 260 => 102, 256 => 101, 252 => 99, 246 => 97, 244 => 96, 226 => 91, 217 => 85, 205 => 75, 194 => 73, 190 => 72, 184 => 71, 173 => 62, 161 => 58, 157 => 57, 154 => 56, 150 => 55, 141 => 51, 137 => 50, 112 => 29, 101 => 26, 98 => 25, 94 => 24, 89 => 22, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@Flexy/FrontBundle/templates/booking/layout.html.twig' %}
{% block body %}
<style>
.countersection .count{
padding:10px !important;
font-size:18px;
}
</style>
<div class=\"body-wrapper\">
<!-- Begin Header Area -->
<!-- Header Area End Here -->
<!-- Begin Li's Breadcrumb Area -->
<div class=\"breadcrumb-area menu-item\">
<div class=\"container simple-container\">
<div class=\"breadcrumb-content\">
<ul>
<li><a href=\"{{path('front_home')}}\">Accueil</a></li>
{% for category in singleOffer.categoriesProduct %}
<li ><a href=\"{{path('single_category_product',{id:category.id})}}\">{{category}}</a></li>
{% endfor %}
<li class=\"active\">{{singleOffer.name}}</li>
</ul>
</div>
</div>
</div>
<!-- Li's Breadcrumb Area End Here -->
<!-- content-wraper start -->
<div class=\"content-wraper\">
<div class=\"container\">
<div class=\"row single-product-area\">
<div class=\"col-lg-8 col-md-5\">
<!-- Details de produit Left -->
<div class=\"product-details-left sp-tab-style-left-page\">
<div class=\"product-details-images slider-navigation-1\">
<div class=\"lg-image menu-item\">
<a class=\"popup-img venobox vbox-item\" href=\"/uploads/{{asset(singleOffer.image)}}\" data-gall=\"myGallery\">
<img src=\"/uploads/{{asset(singleOffer.image)}}\" alt=\"{{singleOffer.name}}\">
</a>
</div>
{% for image in singleOffer.images %}
<div class=\"lg-image menu-item\">
<a class=\"popup-img venobox vbox-item\" href=\"/uploads/images/products{{asset(image.path)}}\" data-gall=\"myGallery\">
<img src=\"/uploads/images/products{{asset(image.path)}}\" alt=\"{{image.alt}}\">
</a>
</div>
{% endfor %}
</div>
<div class=\"tab-style-left\">
<div class=\"sm-image\"><img src=\"/uploads/{{asset(singleOffer.image)}}\" alt=\"{{singleOffer.name}}\"></div>
{% for image in singleOffer.images %}
<div class=\"sm-image\"><img src=\"/uploads/images/products{{asset(image.path)}}\" alt=\"{{image.alt}}\"></div>
{% endfor %}
</div>
</div>
<!--// Details de produit Left -->
</div>
<div class=\"col-lg-4 col-md-5\">
<div class=\"product-details-view-content pt-60\">
<div class=\"product-info\">
<h2>{{singleOffer.name}}</h2>
<p class=\"sell-by\">
{% if singleOffer.brand %} Marque: <a href=\"#\">{{singleOffer.brand}}</a>{% endif %} {% if singleOffer.vendor %} / <a href=\"#\"> Par {{singleOffer.vendor}} </a>{% endif %}</span>
</p>
{% if singleOffer.skuCode %}
<span class=\"product-details-ref d-none\">Reference: {{singleOffer.skuCode}}</span>
{% endif %}
<div class=\"price-box pt-20\">
<span class=\"new-price new-price-2\">MAD {{singleOffer.formattedPrice}}</span>
{% if singleOffer.oldPrice or singleOffer.oldPrice > 0 %}
<span class=\"old-price\">MAD {{singleOffer.oldPrice / 100}}</span>
{% endif %}
</div>
{#<div class=\"countersection\">
<div data-endat=\"{{singleOffer.endAt|date(\"Y/m/d\")}}\" class=\"li-countdown\"></div>
</div>#}
<div style=\"margin-top:15px;\" class=\"product-desc\">
<p>
<span>
{{singleOffer.shortDescription|raw}}
</span>
</p>
</div>
<div class=\"rating-box pt-20\">
<h5>Rating : {{singleOffer.rating|number_format(1, '.', ',')}}/5</h5>
<ul class=\"rating rating-with-review-item\">
{% if singleOffer.rating > 0 %}
{% for stars in 1..singleOffer.rating|number_format %}
<li><i class=\"fa fa-star\"></i></li>
{% endfor %}
{% if singleOffer.rating|number_format < 5 %}
{% for stars in singleOffer.rating|number_format..4 %}
<li class=\"no-star\"><i class=\"fa fa-star\"></i></li>
{% endfor %}
{% endif %}
{% else %}
<li class=\"no-star\"><i class=\"fa fa-star\"></i></li>
<li class=\"no-star\"><i class=\"fa fa-star\"></i></li>
<li class=\"no-star\"><i class=\"fa fa-star\"></i></li>
<li class=\"no-star\"><i class=\"fa fa-star\"></i></li>
<li class=\"no-star\"><i class=\"fa fa-star\"></i></li>
{% endif %}
<li class=\"menu-item\" ><a href=\"#reviews\" id=\"showcomments\"> Avis ({{ singleOffer.comments|length }}) <i class=\"fa fa-comments\" ></i> </a></li>
</ul>
</div>
{#<div class=\"single-add-to-cart\">
<form action=\"#\" class=\"cart-quantity d-none\">
<button data-type=\"{{singleOffer.productType}}\" data-limitedamount=\"{{singleOffer.vendor.limitedAmount}}\" data-weight=\"{{singleOffer.weight}}\" data-collecte=\"{{singleOffer.vendor.addressCollecte}}\" data-vendor=\"{{singleOffer.vendor.id}}\" data-id=\"{{singleOffer.id}}\" data-name=\"{{singleOffer.name}}\" data-image=\"uploads/{{asset(singleOffer.image)}}\" data-price=\"{{singleOffer.formattedPrice}}\" data-url=\"{{path('single_product',{id:singleOffer.id}) }}\" class=\"add-cart add-to-cart active \" >Réserver</button>
</form>
<a class=\"review-links add-cart add-to-cart mt-3\" style=\"c\" href=\"#\" data-toggle=\"modal\" data-target=\"#book-modal\">Réserver maintenant</a>
</div>#}
<div class=\"single-add-to-cart\">
<form action=\"#\" class=\"cart-quantity\">
{# <div class=\"quantity\">
<label>Quantité</label>
<div class=\"cart-plus-minus\">
<input class=\"cart-plus-minus-box\" value=\"1\" type=\"text\">
<div class=\"dec qtybutton\"><i class=\"fa fa-angle-down\"></i></div>
<div class=\"inc qtybutton\"><i class=\"fa fa-angle-up\"></i></div>
</div>
</div>#}
<button data-type=\"{{singleOffer.productType}}\" data-limitedamount=\"{{singleOffer.vendor.limitedAmount}}\" data-weight=\"{{singleOffer.weight}}\" data-collecte=\"{{singleOffer.vendor.addressCollecte}}\" data-vendor=\"{{singleOffer.vendor.id}}\" data-id=\"{{singleOffer.id}}\" data-name=\"{{singleOffer.name}}\" data-image=\"uploads/{{asset(singleOffer.image)}}\" data-price=\"{{singleOffer.formattedPrice}}\" data-url=\"{{path('single_product',{id:singleOffer.id}) }}\" class=\"add-cart add-to-cart active add-product-to-cart\" >Ajouter au panier</button>
</form>
</div>
<div class=\"booking-form-modal\" >
<!-- Begin Prévisualiser | Modal Area -->
<div class=\"modal fade modal-wrapper\" id=\"book-modal\" >
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-body\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
<div class=\"modal-inner-area row\">
<div class=\"col-lg-12\">
<div class=\"li-review-content\">
<!-- Begin Feedback Area -->
<div class=\"feedback-area\">
<div class=\"feedback\">
<form action=\"#\" class=\"cart-quantity\">
<div class=\"quantity d-none\">
<label>Quantité</label>
<div class=\"cart-plus-minus\">
<input class=\"cart-plus-minus-box\" value=\"1\" type=\"text\">
<div class=\"dec qtybutton\"><i class=\"fa fa-angle-down\"></i></div>
<div class=\"inc qtybutton\"><i class=\"fa fa-angle-up\"></i></div>
</div>
</div>
<div class=\"row\" >
{% if singleOffer.brand.id == 8 %}
<div class=\"col-6\" >
<p class=\"feedback-form\">
<label for=\"feedback\">Choisissez la date de depart</label>
<input type=\"datetime-local\" name=\"date-start\" />
</p>
</div>
<div class=\"col-6\" >
<p class=\"feedback-form\">
<label for=\"feedback\">Choisissez la date d'arrivée</label>
<input type=\"datetime-local\" name=\"date-end\" />
</p>
</div>
<div class=\"col-6\" >
<p class=\"feedback-form\">
<label for=\"feedback\">Nombre de personnes</label>
<select name=\"nbrPerson\">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
</select>
</p>
</div>
<div class=\"col-6\" >
<p class=\"feedback-form\">
<label for=\"feedback\">Nombre de chambre</label>
<select name=\"nbrRooms\">
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</p>
</div>
{% endif %}
<div class=\"col-12\" >
<p class=\"feedback-form\">
<label for=\"feedback\">Laissez nous une note (Facultatif)</label>
<textarea id=\"feedback\" name=\"comment\" cols=\"45\" rows=\"2\" aria-required=\"true\"></textarea>
</p>
</div>
</div>
<div class=\"feedback-input\">
<div class=\"feedback-btn pb-15\">
<a href=\"#\" class=\"close register-button d-none\" data-dismiss=\"modal\" aria-label=\"Close\">Annuler</a>
<button data-limitedamount=\"{{singleOffer.vendor.limitedAmount}}\" data-type=\"{{singleOffer.productType}}\" data-weight=\"{{singleOffer.weight}}\" data-id=\"{{singleOffer.id}}\" data-collecte=\"{{singleOffer.vendor.addressCollecte}}\" data-vendor=\"{{singleOffer.vendor.id}}\" data-name=\"{{singleOffer.name}}\" data-image=\"uploads/{{asset(singleOffer.image)}}\" data-price=\"{{singleOffer.formattedPrice}}\" data-url=\"{{path('single_offer',{id:singleOffer.id}) }}\" class=\"add-cart add-to-cart active add-product-to-cart\" >Réserver</button>
</div>
</div>
</form>
</div>
</div>
<!-- Feedback Area End Here -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Prévisualiser | Modal Area End Here -->
</div>
<div class=\"menu-item product-additional-info pt-25\">
<div class=\"product-social-sharing pt-25\">
<ul>
<li class=\"facebook\"><a href=\"#\"><i class=\"fa fa-facebook\"></i>Facebook</a></li>
<li class=\"twitter\"><a href=\"#\"><i class=\"fa fa-twitter\"></i>Twitter</a></li>
<li class=\"google-plus\"><a href=\"#\"><i class=\"fa fa-google-plus\"></i>Google +</a></li>
<li class=\"instagram\"><a href=\"#\"><i class=\"fa fa-instagram\"></i>Instagram</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- <div class=\"col-lg-3 col-md-3 \">
<div class=\"block-reassurance \">
<div class=\"row \" >
{% if singleOffer.vendor %}
<div class=\"col-12 p-3 \" >
<div class=\"card actions p-3\">
<h5>Vendeur : <span class=\"badge badge-warning\" >{{singleOffer.vendor}}</span></h5>
<div>
<p>
<small>
100% Evaluation du vendeur<br>
67 abonnés <br>
</small>
<h6>Performance vendeur</h6>
<p>
<span class=\"badge badge-success text-white\" ><i class=\"fa fa-star\" ></i></span> Expeditions : <span class=\"badge badge-success text-white\" >Excellent</span>
<br>
<span class=\"badge badge-success text-white\" ><i class=\"fa fa-star\" ></i></span> Qualité : <span class=\"badge badge-warning text-white\" >Moyen</span>
<br>
<span class=\"badge badge-success text-white\" ><i class=\"fa fa-star\" ></i></span> Avis consommateurs : <span class=\"badge badge-warning text-white\" >Moyen</span>
</p>
</p>
</div>
</div>
</div>
{% endif %}
</div>
</div>
</div>-->
</div>
</div>
</div>
<!-- content-wraper end -->
<!-- Begin Product Area -->
<div class=\"product-area pt-35\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"li-product-tab\">
<ul class=\"nav li-product-menu\">
<li><a class=\"active\" data-toggle=\"tab\" href=\"#description\" id=\"description_pro\"><span>Description</span></a></li>
<!-- <li><a data-toggle=\"tab\" href=\"#product-details\" id=\"description_technique\"><span>Descriptif technique</span></a></li>-->
<li><a data-toggle=\"tab\" href=\"#reviews\" id=\"comments\"><span>Avis</span></a></li>
</ul>
</div>
<!-- Begin Li's Tab Menu Content Area -->
</div>
</div>
<div class=\"tab-content\">
<div id=\"description\" class=\"tab-pane active show\" role=\"tabpanel\">
<div class=\"product-description\">
<span>
{{singleOffer.description|raw}}
</span>
</div>
</div>
<div id=\"product-details\" class=\"tab-pane p-5\" role=\"tabpanel\">
<table class=\"table table-sm \">
<tbody>
<tr>
<th scope=\"row\">Modele</th>
<td>MOD{{singleOffer.skuCode}}</td>
</tr>
<tr>
<th scope=\"row\">Marque</th>
<td>{{singleOffer.brand}}</td>
</tr>
<tr>
<th scope=\"row\">SKU</th>
<td>{{singleOffer.skuCode}}</td>
</tr>
<tr>
<th scope=\"row\">Poids (Kg)</th>
<td>0.9 </td>
</tr>
</tbody>
</table>
</div>
<div id=\"reviews\" class=\"tab-pane\" role=\"tabpanel\">
<div class=\"product-reviews\">
<div class=\"container\">\t\t
\t\t<div class=\"row\">
\t\t\t<div class=\"col-sm-3\">
\t\t\t\t<div class=\"rating-block\">
\t\t\t\t\t<h4>AVIS </h4>
\t\t\t\t\t<h2 class=\"bold padding-bottom-7\"> {{singleOffer.rating|number_format(1, '.', ',')}} <small>/ 5</small></h2>
\t\t\t\t\t
{% if singleOffer.rating|number_format(1, '.', ',') > 0 %}
{% for stars in 1..singleOffer.rating|number_format %}
<button type=\"button\" class=\"btn btn-warning btn-sm\" aria-label=\"Left Align\">
\t\t\t\t\t <i class=\"fa fa-star\"></i>
\t\t\t\t\t </button>
{% endfor %}
{% if singleOffer.rating|number_format < 5 %}
{% for stars in singleOffer.rating|number_format..4 %}
<button type=\"button\" class=\"btn btn-default btn-grey btn-sm\" aria-label=\"Left Align\">
\t\t\t\t\t <i class=\"fa fa-star\"></i>
\t\t\t\t\t</button>
{% endfor %}
{% endif %}
{% else %}
<button type=\"button\" class=\"btn btn-default btn-grey btn-sm\" aria-label=\"Left Align\"> <i class=\"fa fa-star\"></i>\t</button>
<button type=\"button\" class=\"btn btn-default btn-grey btn-sm\" aria-label=\"Left Align\"> <i class=\"fa fa-star\"></i>\t</button>
<button type=\"button\" class=\"btn btn-default btn-grey btn-sm\" aria-label=\"Left Align\"> <i class=\"fa fa-star\"></i>\t</button>
<button type=\"button\" class=\"btn btn-default btn-grey btn-sm\" aria-label=\"Left Align\"> <i class=\"fa fa-star\"></i>\t</button>
<button type=\"button\" class=\"btn btn-default btn-grey btn-sm\" aria-label=\"Left Align\"> <i class=\"fa fa-star\"></i>\t</button>
{% endif %}
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"col-sm-3\">
\t\t\t\t<h4> </h4>
\t\t\t\t<div class=\"pull-left\">
\t\t\t\t\t<div class=\"pull-left\" style=\"width:35px; line-height:1;\">
\t\t\t\t\t\t<div style=\"height:9px; margin:5px 0;\">5 <i class=\"fa fa-star\"></i> </div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-left\" style=\"width:180px;\">
\t\t\t\t\t\t<div class=\"progress\" style=\"height:9px; margin:8px 0;\">
{% set percentage = 0 %}
{% if singleOffer.getStars5 > 0 %}
{% set percentage = (singleOffer.getStars5 / singleOffer.comments|length ) * 100 %}
{% endif %}
\t\t\t\t\t\t <div class=\"progress-bar progress-bar-success\" role=\"progressbar\" aria-valuenow=\"5\" aria-valuemin=\"0\" aria-valuemax=\"5\" style=\"width: {{ percentage }}%\">
\t\t\t\t\t\t\t<span class=\"sr-only\">80% Complete (danger)</span>
\t\t\t\t\t\t </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-right\" style=\"margin-left:10px;\"> {{singleOffer.getStars5}}</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"pull-left\">
\t\t\t\t\t<div class=\"pull-left\" style=\"width:35px; line-height:1;\">
\t\t\t\t\t\t<div style=\"height:9px; margin:5px 0;\">4 <i class=\"fa fa-star\"></i> </div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-left\" style=\"width:180px;\">
\t\t\t\t\t\t<div class=\"progress\" style=\"height:9px; margin:8px 0;\">
{% set percentage = 0 %}
{% if singleOffer.getStars4 > 0 %}
{% set percentage = (singleOffer.getStars4 / singleOffer.comments|length ) * 100 %}
{% endif %}
\t\t\t\t\t\t <div class=\"progress-bar progress-bar-primary\" role=\"progressbar\" aria-valuenow=\"4\" aria-valuemin=\"0\" aria-valuemax=\"5\" style=\"width: {{percentage}}%\">
\t\t\t\t\t\t\t<span class=\"sr-only\">80% Complete (danger)</span>
\t\t\t\t\t\t </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-right\" style=\"margin-left:10px;\">
{{singleOffer.getStars4}}
</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"pull-left\">
\t\t\t\t\t<div class=\"pull-left\" style=\"width:35px; line-height:1;\">
\t\t\t\t\t\t<div style=\"height:9px; margin:5px 0;\">3 <i class=\"fa fa-star\"></i></div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-left\" style=\"width:180px;\">
\t\t\t\t\t\t<div class=\"progress\" style=\"height:9px; margin:8px 0;\">
{% set percentage = 0 %}
{% if singleOffer.getStars3 > 0 %}
{% set percentage = (singleOffer.getStars3 / singleOffer.comments|length ) * 100 %}
{% endif %}
\t\t\t\t\t\t <div class=\"progress-bar progress-bar-info\" role=\"progressbar\" aria-valuenow=\"3\" aria-valuemin=\"0\" aria-valuemax=\"5\" style=\"width:{{percentage}}%\">
\t\t\t\t\t\t\t<span class=\"sr-only\">80% Complete (danger)</span>
\t\t\t\t\t\t </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-right\" style=\"margin-left:10px;\">{{singleOffer.getStars3}}</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"pull-left\">
\t\t\t\t\t<div class=\"pull-left\" style=\"width:35px; line-height:1;\">
\t\t\t\t\t\t<div style=\"height:9px; margin:5px 0;\">2 <i class=\"fa fa-star\"></i></div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-left\" style=\"width:180px;\">
\t\t\t\t\t\t<div class=\"progress\" style=\"height:9px; margin:8px 0;\">
{% set percentage = 0 %}
{% if singleOffer.getStars2 > 0 %}
{% set percentage = (singleOffer.getStars2 / singleOffer.comments|length ) * 100 %}
{% endif %}
\t\t\t\t\t\t <div class=\"progress-bar progress-bar-warning\" role=\"progressbar\" aria-valuenow=\"2\" aria-valuemin=\"0\" aria-valuemax=\"5\" style=\"width: {{percentage}}%\">
\t\t\t\t\t\t\t<span class=\"sr-only\">80% Complete (danger)</span>
\t\t\t\t\t\t </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-right\" style=\"margin-left:10px;\">{{singleOffer.getStars2}}</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"pull-left\">
\t\t\t\t\t<div class=\"pull-left\" style=\"width:35px; line-height:1;\">
\t\t\t\t\t\t<div style=\"height:9px; margin:5px 0;\">1 <i class=\"fa fa-star\"></i></div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-left\" style=\"width:180px;\">
\t\t\t\t\t\t<div class=\"progress\" style=\"height:9px; margin:8px 0;\">
{% set percentage = 0 %}
{% if singleOffer.getStars1 > 0 %}
{% set percentage = (singleOffer.getStars1 / singleOffer.comments|length ) * 100 %}
{% endif %}
\t\t\t\t\t\t <div class=\"progress-bar progress-bar-danger\" role=\"progressbar\" aria-valuenow=\"1\" aria-valuemin=\"0\" aria-valuemax=\"5\" style=\"width: {{percentage}}%\">
\t\t\t\t\t\t\t<span class=\"sr-only\">80% Complete (danger)</span>
\t\t\t\t\t\t </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"pull-right\" style=\"margin-left:10px;\">{{singleOffer.getStars1}}</div>
\t\t\t\t</div>
\t\t\t</div>\t\t\t
\t\t</div>\t\t\t
\t\t
\t\t<div class=\"row\">
\t\t\t<div class=\"col-sm-7\">
\t\t\t\t<hr/>
\t\t\t\t<div class=\"review-block\">
{% for singleComment in singleOffer.comments %}
\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t\t<img src=\"http://dummyimage.com/60x60/666/ffffff&text=No+Image\" class=\"img-rounded\">
\t\t\t\t\t\t\t<div class=\"review-block-name\"><b> {{singleComment.customer.lastName}} {{singleComment.customer.firstName}}</b></div>
\t\t\t\t\t\t\t<div class=\"review-block-date\">{{singleComment.createdAt|date(\"Y-m-d H:i\")}} </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"col-sm-9\">
\t\t\t\t\t\t\t<div class=\"review-block-rate\">
{% for stars in 1..singleComment.rating %}
\t<button type=\"button\" class=\"btn btn-warning btn-xs\" aria-label=\"Left Align\">
\t\t\t\t\t\t\t\t <i class=\"fa fa-star\"></i>
\t\t\t\t\t\t\t\t</button>
{% endfor %}
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t {% if singleComment.rating < 5 %}
{% for stars in singleComment.rating..4 %}
\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-default btn-grey btn-xs\" aria-label=\"Left Align\">
\t\t\t\t\t\t\t\t <i class=\"fa fa-star\"></i>
\t\t\t\t\t\t\t\t</button>
{% endfor %}
{% endif %}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"review-block-title\">COMMENTAIRES</div>
\t\t\t\t\t\t\t<div class=\"review-block-description\">{{singleComment.comment|raw}}</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<hr/>
{% endfor %}
\t\t\t\t\t
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t
</div> <!-- /container -->
<div class=\"product-details-comment-block\">
{% for singleComment in singleOffer.comments %}
<!-- <div class=\"comment-details\">
<div class=\"comment-author-infos pt-25\">
<span>
{{singleComment.customer.lastName}} {{singleComment.customer.firstName}}
<ul class=\"rating d-inline\">
{% for stars in 1..singleComment.rating %}
<li><i class=\"fa fa-star\"></i></li>
{% endfor %}
{% if singleComment.rating < 5 %}
{% for stars in singleComment.rating..4 %}
<li class=\"no-star\"><i class=\"fa fa-star\"></i></li>
{% endfor %}
{% endif %}
</ul>
</span>
<em>{{singleComment.createdAt|date(\"Y-m-d H:i\")}}</em>
</div>
<p>{{singleComment.comment|raw}}</p>
</div>
<hr style=\"margin:0;\">-->
{% endfor %}
{% if is_granted(\"ROLE_CUSTOMER\") %}
<div class=\"review-btn\">
<a class=\"review-links\" href=\"#\" data-toggle=\"modal\" data-target=\"#mymodal\">Ajouter un commentaire!</a>
</div>
<!-- Begin Prévisualiser | Modal Area -->
<div class=\"modal fade modal-wrapper\" id=\"mymodal\" >
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-body\">
<h3 class=\"review-page-title\">Ajouter un commentaire</h3>
<div class=\"modal-inner-area row\">
<div class=\"col-lg-6\">
<div class=\"li-review-product\">
<img width=\"200px\" src=\"/uploads/{{asset(singleOffer.image)}}\" alt=\"Li's Product\">
<div class=\"li-review-product-desc\">
<p class=\"li-product-name\">{{singleOffer.name}}</p>
<p>
<span>{{singleOffer.shortDescription|raw}}</span>
</p>
</div>
</div>
</div>
<div class=\"col-lg-6\">
<div class=\"li-review-content\">
<!-- Begin Feedback Area -->
<div class=\"feedback-area\">
<div class=\"feedback\">
<h3 class=\"feedback-title\">Votre avis</h3>
<form action=\"{{path('comment_product',{id:singleOffer.id})}}\" method=\"POST\">
<p class=\"your-opinion\">
<label>Evaluer le produit</label>
<span>
<select name=\"rating\" class=\"star-rating\">
<option value=\"1\">1</option>
<option value=\"2\">2</option>
<option value=\"3\">3</option>
<option value=\"4\">4</option>
<option value=\"5\">5</option>
</select>
</span>
</p>
<p class=\"feedback-form\">
<label for=\"feedback\">Votre commentaire</label>
<textarea id=\"feedback\" name=\"comment\" cols=\"45\" rows=\"8\" aria-required=\"true\"></textarea>
</p>
<div class=\"feedback-input\">
<div class=\"feedback-btn pb-15\">
<a href=\"#\" class=\"close register-button d-none\" data-dismiss=\"modal\" aria-label=\"Close\">Close</a>
<button class=\"register-button\" type=\"submit\">Envoyer</button>
</div>
</div>
</form>
</div>
</div>
<!-- Feedback Area End Here -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Prévisualiser | Modal Area End Here -->
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Product Area End Here -->
<!-- Begin Li's PC Portable Product Area -->
<section class=\"product-area li-laptop-product pt-30 pb-50\">
{# <div class=\"container\">
<div class=\"row\">
<!-- Begin Li's Section Area -->
<div class=\"col-lg-12\">
<div class=\"li-section-title\">
<h2>
<span>Produits en relation</span>
</h2>
</div>
{#
<div class=\"row\">
<div class=\"product-active owl-carousel\">
{% for singleOffer in associatedProducts %}
{%
include \"@Flexy/FrontBundle/templates/products/includes/_singleOffer.html.twig\" with
{
singleOffer:singleOffer,
}
%}
{% endfor %}
</div>
</div>
#}
</div>
<!-- Li's Section Area End Here -->
</div>
</div>
</section>
<!-- Li's PC Portable Product Area End Here -->
<!-- Begin Footer Area -->
</div>
{% endblock %}
{% block javascripts %}
{{parent()}}
<script>
\$(document).ready(function(){
\$.ajax({
url: \"{{path('departements_ajax')}}\",
data:{
city:\$(\"select[name='city']\").val()
},
success:function(data){
\$(\"select[name='departement']\").html(data);
},
});
\$(\"select[name='city'\").change(function(){
\$.ajax({
url: \"{{path('departements_ajax')}}\",
data:{
city:\$(this).val()
},
success:function(data){
\$(\"select[name='departement']\").html(data);
},
});
});
\$(\"#showcomments\").click(function(){
\$(\"#comments\").addClass(\"active show\");
\$(\"#reviews\").addClass(\"active show\");
\$(\"#description_technique\").removeClass(\"active show\");
\$(\"#product-details\").removeClass(\"active show\");
\$(\"#description_pro\").removeClass(\"active show\");
\$(\"#description\").removeClass(\"active show\");
});
(function () {
const second = 1000,
minute = second * 60,
hour = minute * 60,
day = hour * 24;
//I'm adding this section so I don't have to keep updating this pen every year :-)
//remove this if you don't need it
let today = new Date(),
dd = String(today.getDate()).padStart(2, \"0\"),
mm = String(today.getMonth() + 1).padStart(2, \"0\"),
yyyy = today.getFullYear(),
nextYear = yyyy + 1,
dayMonth = \"09/30/\",
birthday = dayMonth + yyyy;
today = mm + \"/\" + dd + \"/\" + yyyy;
if (today > birthday) {
birthday = dayMonth + nextYear;
}
//end
const countDown = new Date(birthday).getTime(),
x = setInterval(function() {
const now = new Date().getTime(),
distance = countDown - now;
document.getElementById(\"days\").innerText = Math.floor(distance / (day)),
document.getElementById(\"hours\").innerText = Math.floor((distance % (day)) / (hour)),
document.getElementById(\"minutes\").innerText = Math.floor((distance % (hour)) / (minute)),
document.getElementById(\"seconds\").innerText = Math.floor((distance % (minute)) / second);
}, 0)
}());
});
</script>
{% endblock %}", "@Flexy\\FrontBundle/templates/booking/singleOffer/singleOffer.html.twig", "/home/gebcloud/public_html/saisimmo.gebanalysis.cloud/src/Flexy/FrontBundle/templates/booking/singleOffer/singleOffer.html.twig");
}
}