<?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/announce/singleAnnounce/singleAnnounce.html.twig */
class __TwigTemplate_cc61d89892253bc7f5f9d3f5db701b7c 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/announce/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/announce/singleAnnounce/singleAnnounce.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/announce/singleAnnounce/singleAnnounce.html.twig"));
$this->parent = $this->loadTemplate("@Flexy/FrontBundle/templates/announce/layout.html.twig", "@Flexy\\FrontBundle/templates/announce/singleAnnounce/singleAnnounce.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;
}
.lbwLaz {
display: flex;
-webkit-box-pack: center;
justify-content: center;
-webkit-box-align: center;
align-items: center;
height: 40px;
border: 1px solid rgb(36, 85, 204);
border-radius: 4px;
color: rgb(102, 102, 102);
font-size: 16px;
font-weight: 500;
letter-spacing: 1px;
}
.jTSsep {
position: relative;
padding: 16px;
background-color: white;
border-radius: 4px;
box-shadow: rgb(0 0 0 / 32%) 1px 1px 20px -4px, rgb(0 0 0 / 12%) 0px 0px 6px -2px;
margin: 3.4em 16px 16px;
height: 100%;
box-sizing: border-box;
max-width: 900px;
z-index: 1050;
animation: 0.3s ease 0s 1 normal backwards running pop-in;
}
</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 49
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_home");
echo "\">Accueil</a></li>
";
// line 51
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 51, $this->source); })()), "categoriesProduct", [], "any", false, false, false, 51));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 52
echo "
<li ><a href=\"";
// line 53
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, 53)]), "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 56
echo " <li class=\"active\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 56, $this->source); })()), "name", [], "any", false, false, false, 56), "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 77
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 77, $this->source); })()), "image", [], "any", false, false, false, 77)), "html", null, true);
echo "\" data-gall=\"myGallery\">
<img src=\"/uploads/";
// line 78
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 78, $this->source); })()), "image", [], "any", false, false, false, 78)), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 78, $this->source); })()), "name", [], "any", false, false, false, 78), "html", null, true);
echo "\">
</a>
</div>
";
// line 82
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 82, $this->source); })()), "images", [], "any", false, false, false, 82));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 83
echo " <div class=\"lg-image menu-item\">
<a class=\"popup-img venobox vbox-item\" href=\"/uploads/images/products";
// line 84
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, 84)), "html", null, true);
echo "\" data-gall=\"myGallery\">
<img src=\"/uploads/images/products";
// line 85
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, 85)), "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, 85), "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 89
echo "
</div>
<div class=\"tab-style-left\">
<div class=\"sm-image\"><img src=\"/uploads/";
// line 98
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 98, $this->source); })()), "image", [], "any", false, false, false, 98)), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 98, $this->source); })()), "name", [], "any", false, false, false, 98), "html", null, true);
echo "\"></div>
";
// line 99
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 99, $this->source); })()), "images", [], "any", false, false, false, 99));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 100
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, 100)), "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, 100), "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 102
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 112
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 112, $this->source); })()), "name", [], "any", false, false, false, 112), "html", null, true);
echo "</h2>
<p class=\"sell-by\">
";
// line 118
if (twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 118, $this->source); })()), "brand", [], "any", false, false, false, 118)) {
echo " Marque: <a href=\"#\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 118, $this->source); })()), "brand", [], "any", false, false, false, 118), "html", null, true);
echo "</a>";
}
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 118, $this->source); })()), "vendor", [], "any", false, false, false, 118)) {
echo " / <a href=\"#\"> Par ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 118, $this->source); })()), "vendor", [], "any", false, false, false, 118), "html", null, true);
echo " </a>";
}
echo "</span>
</p>
";
// line 123
if (twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 123, $this->source); })()), "skuCode", [], "any", false, false, false, 123)) {
// line 124
echo " <span class=\"product-details-ref d-none\">Reference: ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 124, $this->source); })()), "skuCode", [], "any", false, false, false, 124), "html", null, true);
echo "</span>
";
}
// line 126
echo "
<div class=\"price-box pt-20\">
<span class=\"new-price new-price-2\" style=\"color:#e9a124 \">";
// line 128
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 128, $this->source); })()), "price", [], "any", false, false, false, 128), "html", null, true);
echo " MAD </span>
</div>
<div style=\"margin-top:15px;\" class=\"product-desc\">
<p>
<span>
";
// line 138
echo twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 138, $this->source); })()), "shortDescription", [], "any", false, false, false, 138);
echo "
</span>
</p>
</div>
<div class=\"single-add-to-cart\">
<a class=\"review-links add-cart add-to-cart mt-3\" style=\"c\" href=\"#\" data-toggle=\"modal\" data-target=\"#book-modal\"> <i style=\"font-size: 20px;\" class=\"fa fa-phone\" aria-hidden=\"true\"></i> Afficher le numéro</a>
</div>
<div class=\"booking-form-modal\" >
<!-- Begin Prévisualiser | Modal Area -->
<div class=\"modal fade modal-wrapper\" style=\"max-width: 500px;margin:auto;\" id=\"book-modal\" >
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
<div class=\"modal-body \">
<div class=\"modal-inner-area row \">
<div class=\"col-12 p-3 text-center\" >
<img style=\"width:50%;\" src=\"https://cdn.dribbble.com/users/1785628/screenshots/5721540/media/0a509383df0fc8df325a7049dac555d1.gif\" />
<h6 style=\"color: #ff5c5c\">Attention</h6>
<p>
Il ne faut jamais envoyer de l’argent à l’avance au vendeur par virement bancaire ou à travers une agence de transfert d’argent lors de l’achat des biens disponibles sur le site.
</p>
</div>
<div class=\"col-12 text-center\">
<div class=\"li-review-content\">
<!-- Begin Feedback Area -->
<div class=\"feedback-area\">
<div class=\"feedback\">
<form action=\"#\" class=\"cart-quantity\">
<div class=\"row\" >
<div class=\"col-12 menu-item\" >
<p class=\"feedback-form\">
";
// line 199
if ((twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 199, $this->source); })()), "vendor", [], "any", false, false, false, 199) && (twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 199, $this->source); })()), "vendor", [], "any", false, false, false, 199) != null))) {
// line 200
echo " <label for=\"feedback\"> Appeler ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 200, $this->source); })()), "vendor", [], "any", false, false, false, 200), "fullName", [], "any", false, false, false, 200), "html", null, true);
echo "</label>
<a href=\"tel:";
// line 203
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 203, $this->source); })()), "vendor", [], "any", false, false, false, 203), "tel", [], "any", false, false, false, 203), "html", null, true);
echo "\" class=\"btn btn-outline-primary btn-lg\" > <i class=\"fa fa-phone\" ></i> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 203, $this->source); })()), "vendor", [], "any", false, false, false, 203), "tel", [], "any", false, false, false, 203), "html", null, true);
echo "</a>
";
} else {
// line 206
echo " <label for=\"feedback\"> Appeler ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 206, $this->source); })()), "customer", [], "any", false, false, false, 206), "firstName", [], "any", false, false, false, 206), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 206, $this->source); })()), "customer", [], "any", false, false, false, 206), "lastName", [], "any", false, false, false, 206), "html", null, true);
echo "</label>
<a href=\"tel:";
// line 209
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 209, $this->source); })()), "customer", [], "any", false, false, false, 209), "firstName", [], "any", false, false, false, 209), "html", null, true);
echo "\" class=\"btn btn-outline-primary btn-lg\" > <i class=\"fa fa-phone\" ></i> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 209, $this->source); })()), "customer", [], "any", false, false, false, 209), "phone", [], "any", false, false, false, 209), "html", null, true);
echo "</a>
";
}
// line 212
echo "
</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>
</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 276
if (twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 276, $this->source); })()), "vendor", [], "any", false, false, false, 276)) {
// line 277
echo " <div class=\"col-12 p-3 \" >
<div class=\"card actions p-3\">
<h5>Vendeur : <span class=\"badge badge-warning\" >";
// line 279
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 279, $this->source); })()), "vendor", [], "any", false, false, false, 279), "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 303
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 332
echo twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 332, $this->source); })()), "description", [], "any", false, false, false, 332);
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 342
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 342, $this->source); })()), "skuCode", [], "any", false, false, false, 342), "html", null, true);
echo "</td>
</tr>
<tr>
<th scope=\"row\">Marque</th>
<td>";
// line 346
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 346, $this->source); })()), "brand", [], "any", false, false, false, 346), "html", null, true);
echo "</td>
</tr>
<tr>
<th scope=\"row\">SKU</th>
<td>";
// line 350
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 350, $this->source); })()), "skuCode", [], "any", false, false, false, 350), "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 371
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 371, $this->source); })()), "rating", [], "any", false, false, false, 371), 1, ".", ","), "html", null, true);
echo " <small>/ 5</small></h2>
\t\t\t\t\t
";
// line 374
if ((twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 374, $this->source); })()), "rating", [], "any", false, false, false, 374), 1, ".", ",") > 0)) {
// line 375
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["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 375, $this->source); })()), "rating", [], "any", false, false, false, 375))));
foreach ($context['_seq'] as $context["_key"] => $context["stars"]) {
// line 376
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 381
echo "
";
// line 382
if ((twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 382, $this->source); })()), "rating", [], "any", false, false, false, 382)) < 5)) {
// line 383
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["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 383, $this->source); })()), "rating", [], "any", false, false, false, 383)), 4));
foreach ($context['_seq'] as $context["_key"] => $context["stars"]) {
// line 384
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 388
echo " ";
}
// line 389
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 397
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 410
$context["percentage"] = 0;
// line 411
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 411, $this->source); })()), "getStars5", [], "any", false, false, false, 411) > 0)) {
// line 412
echo " ";
$context["percentage"] = ((twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 412, $this->source); })()), "getStars5", [], "any", false, false, false, 412) / twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 412, $this->source); })()), "comments", [], "any", false, false, false, 412))) * 100);
// line 413
echo " ";
}
// line 414
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.', 414, $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 419
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 419, $this->source); })()), "getStars5", [], "any", false, false, false, 419), "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 427
$context["percentage"] = 0;
// line 428
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 428, $this->source); })()), "getStars4", [], "any", false, false, false, 428) > 0)) {
// line 429
echo " ";
$context["percentage"] = ((twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 429, $this->source); })()), "getStars4", [], "any", false, false, false, 429) / twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 429, $this->source); })()), "comments", [], "any", false, false, false, 429))) * 100);
// line 430
echo " ";
}
// line 431
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.', 431, $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 438
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 438, $this->source); })()), "getStars4", [], "any", false, false, false, 438), "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 448
$context["percentage"] = 0;
// line 449
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 449, $this->source); })()), "getStars3", [], "any", false, false, false, 449) > 0)) {
// line 450
echo " ";
$context["percentage"] = ((twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 450, $this->source); })()), "getStars3", [], "any", false, false, false, 450) / twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 450, $this->source); })()), "comments", [], "any", false, false, false, 450))) * 100);
// line 451
echo " ";
}
// line 452
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.', 452, $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 457
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 457, $this->source); })()), "getStars3", [], "any", false, false, false, 457), "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 465
$context["percentage"] = 0;
// line 466
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 466, $this->source); })()), "getStars2", [], "any", false, false, false, 466) > 0)) {
// line 467
echo " ";
$context["percentage"] = ((twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 467, $this->source); })()), "getStars2", [], "any", false, false, false, 467) / twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 467, $this->source); })()), "comments", [], "any", false, false, false, 467))) * 100);
// line 468
echo " ";
}
// line 469
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.', 469, $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 474
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 474, $this->source); })()), "getStars2", [], "any", false, false, false, 474), "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 482
$context["percentage"] = 0;
// line 483
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 483, $this->source); })()), "getStars1", [], "any", false, false, false, 483) > 0)) {
// line 484
echo " ";
$context["percentage"] = ((twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 484, $this->source); })()), "getStars1", [], "any", false, false, false, 484) / twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 484, $this->source); })()), "comments", [], "any", false, false, false, 484))) * 100);
// line 485
echo " ";
}
// line 486
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.', 486, $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 491
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 491, $this->source); })()), "getStars1", [], "any", false, false, false, 491), "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 501
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 501, $this->source); })()), "comments", [], "any", false, false, false, 501));
foreach ($context['_seq'] as $context["_key"] => $context["singleComment"]) {
// line 502
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 505
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, 505), "lastName", [], "any", false, false, false, 505), "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, 505), "firstName", [], "any", false, false, false, 505), "html", null, true);
echo "</b></div>
\t\t\t\t\t\t\t<div class=\"review-block-date\">";
// line 506
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, 506), "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 511
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, twig_get_attribute($this->env, $this->source, $context["singleComment"], "rating", [], "any", false, false, false, 511)));
foreach ($context['_seq'] as $context["_key"] => $context["stars"]) {
// line 512
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 517
echo "\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t ";
// line 518
if ((twig_get_attribute($this->env, $this->source, $context["singleComment"], "rating", [], "any", false, false, false, 518) < 5)) {
// line 519
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(twig_get_attribute($this->env, $this->source, $context["singleComment"], "rating", [], "any", false, false, false, 519), 4));
foreach ($context['_seq'] as $context["_key"] => $context["stars"]) {
// line 520
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 524
echo " ";
}
// line 525
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 527
echo twig_get_attribute($this->env, $this->source, $context["singleComment"], "comment", [], "any", false, false, false, 527);
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 533
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 542
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 542, $this->source); })()), "comments", [], "any", false, false, false, 542));
foreach ($context['_seq'] as $context["_key"] => $context["singleComment"]) {
// line 543
echo "
<!-- <div class=\"comment-details\">
<div class=\"comment-author-infos pt-25\">
<span>
";
// line 548
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, 548), "lastName", [], "any", false, false, false, 548), "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, 548), "firstName", [], "any", false, false, false, 548), "html", null, true);
echo "
<ul class=\"rating d-inline\">
";
// line 550
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, twig_get_attribute($this->env, $this->source, $context["singleComment"], "rating", [], "any", false, false, false, 550)));
foreach ($context['_seq'] as $context["_key"] => $context["stars"]) {
// line 551
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 554
echo "
";
// line 557
if ((twig_get_attribute($this->env, $this->source, $context["singleComment"], "rating", [], "any", false, false, false, 557) < 5)) {
// line 558
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(twig_get_attribute($this->env, $this->source, $context["singleComment"], "rating", [], "any", false, false, false, 558), 4));
foreach ($context['_seq'] as $context["_key"] => $context["stars"]) {
// line 559
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 561
echo " ";
}
// line 562
echo "
</ul>
</span>
<em>";
// line 567
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, 567), "Y-m-d H:i"), "html", null, true);
echo "</em>
</div>
<p>";
// line 570
echo twig_get_attribute($this->env, $this->source, $context["singleComment"], "comment", [], "any", false, false, false, 570);
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 574
echo "
";
// line 575
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_CUSTOMER")) {
// line 576
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 589
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 589, $this->source); })()), "image", [], "any", false, false, false, 589)), "html", null, true);
echo "\" alt=\"Li's Product\">
<div class=\"li-review-product-desc\">
<p class=\"li-product-name\">";
// line 591
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 591, $this->source); })()), "name", [], "any", false, false, false, 591), "html", null, true);
echo "</p>
<p>
<span>";
// line 593
echo twig_get_attribute($this->env, $this->source, (isset($context["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 593, $this->source); })()), "shortDescription", [], "any", false, false, false, 593);
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 604
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["singleAnnounce"]) || array_key_exists("singleAnnounce", $context) ? $context["singleAnnounce"] : (function () { throw new RuntimeError('Variable "singleAnnounce" does not exist.', 604, $this->source); })()), "id", [], "any", false, false, false, 604)]), "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 644
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 681
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 694
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 695
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script>
\$(document).ready(function(){
\$.ajax({
url: \"";
// line 700
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 712
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/announce/singleAnnounce/singleAnnounce.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1122 => 712, 1107 => 700, 1099 => 695, 1089 => 694, 1068 => 681, 1057 => 644, 1014 => 604, 1000 => 593, 995 => 591, 990 => 589, 975 => 576, 973 => 575, 970 => 574, 960 => 570, 954 => 567, 947 => 562, 944 => 561, 937 => 559, 932 => 558, 930 => 557, 925 => 554, 917 => 551, 913 => 550, 906 => 548, 899 => 543, 895 => 542, 884 => 533, 872 => 527, 868 => 525, 865 => 524, 856 => 520, 851 => 519, 849 => 518, 846 => 517, 836 => 512, 832 => 511, 824 => 506, 818 => 505, 813 => 502, 809 => 501, 796 => 491, 787 => 486, 784 => 485, 781 => 484, 778 => 483, 776 => 482, 765 => 474, 756 => 469, 753 => 468, 750 => 467, 747 => 466, 745 => 465, 734 => 457, 725 => 452, 722 => 451, 719 => 450, 716 => 449, 714 => 448, 701 => 438, 690 => 431, 687 => 430, 684 => 429, 681 => 428, 679 => 427, 668 => 419, 659 => 414, 656 => 413, 653 => 412, 650 => 411, 648 => 410, 633 => 397, 620 => 389, 617 => 388, 608 => 384, 603 => 383, 601 => 382, 598 => 381, 588 => 376, 583 => 375, 581 => 374, 575 => 371, 551 => 350, 544 => 346, 537 => 342, 524 => 332, 493 => 303, 466 => 279, 462 => 277, 460 => 276, 394 => 212, 386 => 209, 377 => 206, 369 => 203, 362 => 200, 360 => 199, 296 => 138, 283 => 128, 279 => 126, 273 => 124, 271 => 123, 253 => 118, 244 => 112, 232 => 102, 221 => 100, 217 => 99, 211 => 98, 200 => 89, 188 => 85, 184 => 84, 181 => 83, 177 => 82, 168 => 78, 164 => 77, 139 => 56, 128 => 53, 125 => 52, 121 => 51, 116 => 49, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@Flexy/FrontBundle/templates/announce/layout.html.twig' %}
{% block body %}
<style>
.countersection .count{
padding:10px !important;
font-size:18px;
}
.lbwLaz {
display: flex;
-webkit-box-pack: center;
justify-content: center;
-webkit-box-align: center;
align-items: center;
height: 40px;
border: 1px solid rgb(36, 85, 204);
border-radius: 4px;
color: rgb(102, 102, 102);
font-size: 16px;
font-weight: 500;
letter-spacing: 1px;
}
.jTSsep {
position: relative;
padding: 16px;
background-color: white;
border-radius: 4px;
box-shadow: rgb(0 0 0 / 32%) 1px 1px 20px -4px, rgb(0 0 0 / 12%) 0px 0px 6px -2px;
margin: 3.4em 16px 16px;
height: 100%;
box-sizing: border-box;
max-width: 900px;
z-index: 1050;
animation: 0.3s ease 0s 1 normal backwards running pop-in;
}
</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 singleAnnounce.categoriesProduct %}
<li ><a href=\"{{path('single_category_product',{id:category.id})}}\">{{category}}</a></li>
{% endfor %}
<li class=\"active\">{{singleAnnounce.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(singleAnnounce.image)}}\" data-gall=\"myGallery\">
<img src=\"/uploads/{{asset(singleAnnounce.image)}}\" alt=\"{{singleAnnounce.name}}\">
</a>
</div>
{% for image in singleAnnounce.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(singleAnnounce.image)}}\" alt=\"{{singleAnnounce.name}}\"></div>
{% for image in singleAnnounce.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>{{singleAnnounce.name}}</h2>
<p class=\"sell-by\">
{% if singleAnnounce.brand %} Marque: <a href=\"#\">{{singleAnnounce.brand}}</a>{% endif %} {% if singleAnnounce.vendor %} / <a href=\"#\"> Par {{singleAnnounce.vendor}} </a>{% endif %}</span>
</p>
{% if singleAnnounce.skuCode %}
<span class=\"product-details-ref d-none\">Reference: {{singleAnnounce.skuCode}}</span>
{% endif %}
<div class=\"price-box pt-20\">
<span class=\"new-price new-price-2\" style=\"color:#e9a124 \">{{singleAnnounce.price}} MAD </span>
</div>
<div style=\"margin-top:15px;\" class=\"product-desc\">
<p>
<span>
{{singleAnnounce.shortDescription|raw}}
</span>
</p>
</div>
<div class=\"single-add-to-cart\">
<a class=\"review-links add-cart add-to-cart mt-3\" style=\"c\" href=\"#\" data-toggle=\"modal\" data-target=\"#book-modal\"> <i style=\"font-size: 20px;\" class=\"fa fa-phone\" aria-hidden=\"true\"></i> Afficher le numéro</a>
</div>
<div class=\"booking-form-modal\" >
<!-- Begin Prévisualiser | Modal Area -->
<div class=\"modal fade modal-wrapper\" style=\"max-width: 500px;margin:auto;\" id=\"book-modal\" >
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
<div class=\"modal-body \">
<div class=\"modal-inner-area row \">
<div class=\"col-12 p-3 text-center\" >
<img style=\"width:50%;\" src=\"https://cdn.dribbble.com/users/1785628/screenshots/5721540/media/0a509383df0fc8df325a7049dac555d1.gif\" />
<h6 style=\"color: #ff5c5c\">Attention</h6>
<p>
Il ne faut jamais envoyer de l’argent à l’avance au vendeur par virement bancaire ou à travers une agence de transfert d’argent lors de l’achat des biens disponibles sur le site.
</p>
</div>
<div class=\"col-12 text-center\">
<div class=\"li-review-content\">
<!-- Begin Feedback Area -->
<div class=\"feedback-area\">
<div class=\"feedback\">
<form action=\"#\" class=\"cart-quantity\">
<div class=\"row\" >
<div class=\"col-12 menu-item\" >
<p class=\"feedback-form\">
{% if singleAnnounce.vendor and singleAnnounce.vendor != null %}
<label for=\"feedback\"> Appeler {{ singleAnnounce.vendor.fullName }}</label>
<a href=\"tel:{{ singleAnnounce.vendor.tel }}\" class=\"btn btn-outline-primary btn-lg\" > <i class=\"fa fa-phone\" ></i> {{ singleAnnounce.vendor.tel }}</a>
{% else %}
<label for=\"feedback\"> Appeler {{ singleAnnounce.customer.firstName }} {{ singleAnnounce.customer.lastName }}</label>
<a href=\"tel:{{ singleAnnounce.customer.firstName }}\" class=\"btn btn-outline-primary btn-lg\" > <i class=\"fa fa-phone\" ></i> {{ singleAnnounce.customer.phone }}</a>
{% endif %}
</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>
</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 singleAnnounce.vendor %}
<div class=\"col-12 p-3 \" >
<div class=\"card actions p-3\">
<h5>Vendeur : <span class=\"badge badge-warning\" >{{singleAnnounce.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>
{{singleAnnounce.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{{singleAnnounce.skuCode}}</td>
</tr>
<tr>
<th scope=\"row\">Marque</th>
<td>{{singleAnnounce.brand}}</td>
</tr>
<tr>
<th scope=\"row\">SKU</th>
<td>{{singleAnnounce.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\"> {{singleAnnounce.rating|number_format(1, '.', ',')}} <small>/ 5</small></h2>
\t\t\t\t\t
{% if singleAnnounce.rating|number_format(1, '.', ',') > 0 %}
{% for stars in 1..singleAnnounce.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 singleAnnounce.rating|number_format < 5 %}
{% for stars in singleAnnounce.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 singleAnnounce.getStars5 > 0 %}
{% set percentage = (singleAnnounce.getStars5 / singleAnnounce.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;\"> {{singleAnnounce.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 singleAnnounce.getStars4 > 0 %}
{% set percentage = (singleAnnounce.getStars4 / singleAnnounce.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;\">
{{singleAnnounce.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 singleAnnounce.getStars3 > 0 %}
{% set percentage = (singleAnnounce.getStars3 / singleAnnounce.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;\">{{singleAnnounce.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 singleAnnounce.getStars2 > 0 %}
{% set percentage = (singleAnnounce.getStars2 / singleAnnounce.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;\">{{singleAnnounce.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 singleAnnounce.getStars1 > 0 %}
{% set percentage = (singleAnnounce.getStars1 / singleAnnounce.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;\">{{singleAnnounce.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 singleAnnounce.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 singleAnnounce.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(singleAnnounce.image)}}\" alt=\"Li's Product\">
<div class=\"li-review-product-desc\">
<p class=\"li-product-name\">{{singleAnnounce.name}}</p>
<p>
<span>{{singleAnnounce.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:singleAnnounce.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 singleAnnounce in associatedProducts %}
{%
include \"@Flexy/FrontBundle/templates/products/includes/_singleAnnounce.html.twig\" with
{
singleAnnounce:singleAnnounce,
}
%}
{% 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/announce/singleAnnounce/singleAnnounce.html.twig", "/home/gebcloud/public_html/omall.gebanalysis.cloud/src/Flexy/FrontBundle/templates/announce/singleAnnounce/singleAnnounce.html.twig");
}
}