<?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;
/* achievement/index.html.twig */
class __TwigTemplate_47e74ba08759618a6693041867dd7adf extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'banner' => [$this, 'block_banner'],
'main' => [$this, 'block_main'],
'contact' => [$this, 'block_contact'],
'footer' => [$this, 'block_footer'],
'script' => [$this, 'block_script'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.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", "achievement/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "achievement/index.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "achievement/index.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_title($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", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Nos différentes réalisation - RénovAtHome ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 5
public function block_stylesheets($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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 6
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<link rel=\"stylesheet\" href=\"";
// line 7
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/styles/realisation.css"), "html", null, true);
echo "\">
<meta name=\"description\" content=\"Plusieurs projets ont été réalisés par RenovAtHome. Couverture, Toiture, Isolation, Ravalement de façade, Sur mesure. Nos clients ont su faire confiance à l'entreprise et le referont sans hésitations.\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 11
public function block_banner($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", "banner"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "banner"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 13
public function block_main($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", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 14
echo " <main>
<div class=\"container-real\">
<ul class=\"category-real flex-wrap justify-center\">
<li class=\"label-real\">Trier par :</li>
<li id=\"all\" class=\"category actif\">TOUT</li>
";
// line 19
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, (isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 19, $this->source); })()), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 19, $this->source); })()), "id", [], "any", false, false, false, 19) <= twig_get_attribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 19, $this->source); })()), "id", [], "any", false, false, false, 19)); }));
foreach ($context['_seq'] as $context["_key"] => $context["cat"]) {
// line 20
echo " <li id=\"";
echo twig_escape_filter($this->env, twig_replace_filter(twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cat"], "nom", [], "any", false, false, false, 20)), [" " => "-"]), "html", null, true);
echo "\" class=\"category\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cat"], "nom", [], "any", false, false, false, 20), "html", null, true);
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 22
echo " </ul>
";
// line 23
$context["cpt"] = 1;
// line 24
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["lasts"]) || array_key_exists("lasts", $context) ? $context["lasts"] : (function () { throw new RuntimeError('Variable "lasts" does not exist.', 24, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["last"]) {
// line 25
echo " <div class=\"last-real ";
echo ((((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 25, $this->source); })()) == 1)) ? ("all") : (""));
echo " ";
echo twig_escape_filter($this->env, twig_replace_filter(twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, $context["last"], "catName", [], "any", false, false, false, 25)), [" " => "-"]), "html", null, true);
echo "\" ";
echo ((((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 25, $this->source); })()) != 1)) ? ("style =\"display:none;\"") : (""));
echo ">
";
// line 26
if (((twig_get_attribute($this->env, $this->source, $context["last"], "avant", [], "any", false, false, false, 26) != "") && (twig_get_attribute($this->env, $this->source, $context["last"], "apres", [], "any", false, false, false, 26) != ""))) {
// line 27
echo " <div class=\"slider\">
<div class=\"slider__before\" style=\"background-image:url(";
// line 28
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/realisations/" . twig_get_attribute($this->env, $this->source, $context["last"], "avant", [], "any", false, false, false, 28))), "middle"), "html", null, true);
echo ");\"></div>
<div class=\"slider__separator\">
<div class=\"bar__separator\"></div>
<div class=\"btn__separator\">
<span class=\"btn__separator_left_arrow\"></span>
<span class=\"btn__separator_right_arrow\"></span>
</div>
<div class=\"bar__separator\"></div>
</div>
<div class=\"slider__after\" style=\"background-image:url(";
// line 37
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/realisations/" . twig_get_attribute($this->env, $this->source, $context["last"], "apres", [], "any", false, false, false, 37))), "middle"), "html", null, true);
echo ");\"></div>
<input class=\"slider__range\" type=\"range\" min=\"2\" max=\"98\" value=\"50\"/>
</div>
";
} else {
// line 41
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/realisations/" . twig_get_attribute($this->env, $this->source, $context["last"], "cover", [], "any", false, false, false, 41))), "middle"), "html", null, true);
echo "\" alt=\"photo de couverture de la réalisation\" class=\"img-place-holder\">
";
}
// line 43
echo " <div class=\"desc-real\">
<div class=\"titre\">
<div class=\"deco-sous-titre\"></div>
<span class=\"sous-titre\">dernière Réalisation</span>
</div>
<h2 class=\"titre-real\">";
// line 48
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["last"], "nom", [], "any", false, false, false, 48), "html", null, true);
echo "</h2>
<p>";
// line 49
echo twig_get_attribute($this->env, $this->source, $context["last"], "description", [], "any", false, false, false, 49);
echo "</p>
<p>
<b>Solution apportée par nos équipes :</b><br>
";
// line 52
echo twig_get_attribute($this->env, $this->source, $context["last"], "taches", [], "any", false, false, false, 52);
echo "
</p>
<a class=\"show-real\" href=\"";
// line 54
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("realisation", ["slug" => twig_get_attribute($this->env, $this->source, $context["last"], "slug", [], "any", false, false, false, 54)]), "html", null, true);
echo "\">en découvrir plus <i class=\"fa-solid fa-arrow-right\"></i></a>
</div>
</div>
";
// line 57
$context["cpt"] = ((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 57, $this->source); })()) + 1);
// line 58
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['last'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 59
echo "
<div class=\"all-real\">
";
// line 61
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, (isset($context["realisations"]) || array_key_exists("realisations", $context) ? $context["realisations"] : (function () { throw new RuntimeError('Variable "realisations" does not exist.', 61, $this->source); })()), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 61, $this->source); })()), "id", [], "any", false, false, false, 61) <= twig_get_attribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 61, $this->source); })()), "id", [], "any", false, false, false, 61)); }));
foreach ($context['_seq'] as $context["_key"] => $context["realisation"]) {
// line 62
echo " <div class=\"card-real ";
echo twig_escape_filter($this->env, twig_replace_filter(twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["realisation"], "categorie", [], "any", false, false, false, 62), "nom", [], "any", false, false, false, 62)), [" " => "-"]), "html", null, true);
echo "\">
<a class=\"titre-evenement\" href=\"";
// line 63
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("realisation", ["slug" => twig_get_attribute($this->env, $this->source, $context["realisation"], "slug", [], "any", false, false, false, 63)]), "html", null, true);
echo "\">
<div class=\"layer\">
<img src=\"";
// line 65
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/realisations/" . twig_get_attribute($this->env, $this->source, $context["realisation"], "cover", [], "any", false, false, false, 65))), "miniature"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["realisation"], "nom", [], "any", false, false, false, 65), "html", null, true);
echo "\">
<div class=\"overlay\">
<div class=\"text\"><span>EN DÉCOUVRIR PLUS <i class=\"fa-solid fa-arrow-right\"></i></span></div>
</div>
</div>
<span class=\"card-real-category\">";
// line 70
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["realisation"], "categorie", [], "any", false, false, false, 70), "nom", [], "any", false, false, false, 70), "html", null, true);
echo "</span>
<h3 class=\"card-real-title\">";
// line 71
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["realisation"], "nom", [], "any", false, false, false, 71), "html", null, true);
echo "</h3>
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['realisation'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 75
echo " </div>
<div class=\"more\">
<span href=\"\" class=\"btn-more\">afficher plus de réalisations</span>
</div>
</div>
</main>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 83
public function block_contact($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", "contact"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contact"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 85
public function block_footer($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", "footer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 87
public function block_script($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", "script"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "script"));
// line 88
echo " ";
$this->displayParentBlock("script", $context, $blocks);
echo "
<script src=\"";
// line 89
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/main.js"), "html", null, true);
echo "\"></script>
<script>
\$(document).ready(function () {
var card = \$('.card-real')
var nombrereal = 4;
for (var i =nombrereal ; i < card.length; i++) {
card[i].style.display = 'none';
}
\$(\".btn-more\").click(function () {
for (var i = nombrereal; i < nombrereal + 4; i++) {
if (card[i]) {
card[i].style.display = 'block';
}
}
nombrereal += 4;
if (nombrereal >= card.length) {
event.target.style.display = 'none';
}
});
\$('.category').click(function() {
\$('.category').each(function () {
\$(this).removeClass('actif');
});
\$(this).addClass('actif');
var category = \$(this).attr('id');
\$('.card-real').each(function() {
if (\$(this).hasClass(category) || category === 'all'){
\$(this).show();
}
else {
\$(this).hide();
}
});
\$('.last-real').each(function() {
if (\$(this).hasClass(category)){
\$(this).show();
}
else {
\$(this).hide();
}
});
});
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "achievement/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 355 => 89, 350 => 88, 340 => 87, 322 => 85, 304 => 83, 288 => 75, 278 => 71, 274 => 70, 264 => 65, 259 => 63, 254 => 62, 250 => 61, 246 => 59, 240 => 58, 238 => 57, 232 => 54, 227 => 52, 221 => 49, 217 => 48, 210 => 43, 204 => 41, 197 => 37, 185 => 28, 182 => 27, 180 => 26, 171 => 25, 166 => 24, 164 => 23, 161 => 22, 150 => 20, 146 => 19, 139 => 14, 129 => 13, 111 => 11, 98 => 7, 93 => 6, 83 => 5, 64 => 3, 41 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}Nos différentes réalisation - RénovAtHome {% endblock %}
{% block stylesheets %}
{{ parent() }}
<link rel=\"stylesheet\" href=\"{{ asset('assets/styles/realisation.css')}}\">
<meta name=\"description\" content=\"Plusieurs projets ont été réalisés par RenovAtHome. Couverture, Toiture, Isolation, Ravalement de façade, Sur mesure. Nos clients ont su faire confiance à l'entreprise et le referont sans hésitations.\">
{% endblock %}
{% block banner %}{% endblock %}
{% block main %}
<main>
<div class=\"container-real\">
<ul class=\"category-real flex-wrap justify-center\">
<li class=\"label-real\">Trier par :</li>
<li id=\"all\" class=\"category actif\">TOUT</li>
{% for cat in categories |sort((a, b) => a.id <= b.id) %}
<li id=\"{{ cat.nom |lower|replace({' ': '-'}) }}\" class=\"category\">{{ cat.nom }}</li>
{% endfor %}
</ul>
{% set cpt = 1 %}
{% for last in lasts %}
<div class=\"last-real {{ cpt == 1 ? 'all'}} {{ last.catName|lower|replace({' ': '-'}) }}\" {{ cpt != 1 ? 'style =\"display:none;\"'}}>
{% if last.avant != \"\" and last.apres != \"\" %}
<div class=\"slider\">
<div class=\"slider__before\" style=\"background-image:url({{ asset('uploads/realisations/'~last.avant) | imagine_filter('middle')}});\"></div>
<div class=\"slider__separator\">
<div class=\"bar__separator\"></div>
<div class=\"btn__separator\">
<span class=\"btn__separator_left_arrow\"></span>
<span class=\"btn__separator_right_arrow\"></span>
</div>
<div class=\"bar__separator\"></div>
</div>
<div class=\"slider__after\" style=\"background-image:url({{ asset('uploads/realisations/'~last.apres) | imagine_filter('middle')}});\"></div>
<input class=\"slider__range\" type=\"range\" min=\"2\" max=\"98\" value=\"50\"/>
</div>
{% else %}
<img src=\"{{ asset('uploads/realisations/'~last.cover) | imagine_filter('middle')}}\" alt=\"photo de couverture de la réalisation\" class=\"img-place-holder\">
{% endif %}
<div class=\"desc-real\">
<div class=\"titre\">
<div class=\"deco-sous-titre\"></div>
<span class=\"sous-titre\">dernière Réalisation</span>
</div>
<h2 class=\"titre-real\">{{ last.nom }}</h2>
<p>{{ last.description |raw }}</p>
<p>
<b>Solution apportée par nos équipes :</b><br>
{{ last.taches |raw}}
</p>
<a class=\"show-real\" href=\"{{ path('realisation', { 'slug' : last.slug })}}\">en découvrir plus <i class=\"fa-solid fa-arrow-right\"></i></a>
</div>
</div>
{% set cpt = cpt + 1 %}
{% endfor %}
<div class=\"all-real\">
{% for realisation in realisations |sort((a, b) => a.id <= b.id) %}
<div class=\"card-real {{ realisation.categorie.nom|lower|replace({' ': '-'}) }}\">
<a class=\"titre-evenement\" href=\"{{ path('realisation', { 'slug' : realisation.slug })}}\">
<div class=\"layer\">
<img src=\"{{ asset('uploads/realisations/'~realisation.cover) | imagine_filter('miniature')}}\" alt=\"{{ realisation.nom }}\">
<div class=\"overlay\">
<div class=\"text\"><span>EN DÉCOUVRIR PLUS <i class=\"fa-solid fa-arrow-right\"></i></span></div>
</div>
</div>
<span class=\"card-real-category\">{{ realisation.categorie.nom }}</span>
<h3 class=\"card-real-title\">{{ realisation.nom }}</h3>
</a>
</div>
{% endfor %}
</div>
<div class=\"more\">
<span href=\"\" class=\"btn-more\">afficher plus de réalisations</span>
</div>
</div>
</main>
{% endblock %}
{% block contact %}{% endblock %}
{% block footer %}{% endblock %}
{% block script %}
{{ parent() }}
<script src=\"{{ asset('assets/js/main.js')}}\"></script>
<script>
\$(document).ready(function () {
var card = \$('.card-real')
var nombrereal = 4;
for (var i =nombrereal ; i < card.length; i++) {
card[i].style.display = 'none';
}
\$(\".btn-more\").click(function () {
for (var i = nombrereal; i < nombrereal + 4; i++) {
if (card[i]) {
card[i].style.display = 'block';
}
}
nombrereal += 4;
if (nombrereal >= card.length) {
event.target.style.display = 'none';
}
});
\$('.category').click(function() {
\$('.category').each(function () {
\$(this).removeClass('actif');
});
\$(this).addClass('actif');
var category = \$(this).attr('id');
\$('.card-real').each(function() {
if (\$(this).hasClass(category) || category === 'all'){
\$(this).show();
}
else {
\$(this).hide();
}
});
\$('.last-real').each(function() {
if (\$(this).hasClass(category)){
\$(this).show();
}
else {
\$(this).hide();
}
});
});
});
</script>
{% endblock %}
", "achievement/index.html.twig", "/home/u847847315/domains/djabdigital.com/public_html/renovathome/templates/achievement/index.html.twig");
}
}