<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;

/* frontend/evenements.html.twig */
class __TwigTemplate_b3a5b68f0344a98932ddd68c0559c3fb extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->blocks = [
            'content' => [$this, 'block_content'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 1
        return "frontend/layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/evenements.html.twig"));

        $this->parent = $this->load("frontend/layout.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

    // line 3
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));

        // line 4
        yield "<div class=\"container single-template\">

  <div class=\"page-header\">
\t\t\t<h1 class=\"page-title\">
\t\t\t\tL'actualité de la DGCS-ODD
\t\t\t</h1>
\t\t</div>
    
    ";
        // line 12
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["evenements"]) || array_key_exists("evenements", $context) ? $context["evenements"] : (function () { throw new RuntimeError('Variable "evenements" does not exist.', 12, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["events"]) {
            // line 13
            yield "    <section class=\"category-section\" style=\"margin-bottom: 30px;\">
      <div class=\"container aos-init aos-animate\" data-aos=\"fade-up\">
          <div class=\"row g-5\">
\t\t\t\t\t\t<div class=\"col-lg-6\">
\t\t\t\t\t\t\t<div class=\"post-entry-1 lg\">
\t\t\t\t\t\t\t\t<a href=\"";
            // line 18
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("evenement", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["events"], 0, [], "array", false, false, false, 18), "id", [], "any", false, false, false, 18)]), "html", null, true);
            yield "\"><img src=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("dist/img/events/"), "html", null, true);
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["events"], 0, [], "array", false, false, false, 18), "photo", [], "any", false, false, false, 18), "html", null, true);
            yield "\" alt=\"\" class=\"img-fluid\" style=\"max-width: auto;height: 370px;\"></a>
\t\t\t\t\t\t\t\t<div class=\"post-meta\">
\t\t\t\t\t\t\t\t\t<span class=\"date\">";
            // line 20
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["events"], 0, [], "array", false, false, false, 20), "lieu", [], "any", false, false, false, 20), "html", null, true);
            yield "</span>
\t\t\t\t\t\t\t\t\t<span class=\"mx-1\">•</span>
\t\t\t\t\t\t\t\t\t<span>";
            // line 22
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["events"], 0, [], "array", false, false, false, 22), "date", [], "any", false, false, false, 22), "d/m/Y"), "html", null, true);
            yield "</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<h2 style=\"font-size: 20px; padding: 0; margin: 0; color: #023b6d;\">
\t\t\t\t\t\t\t\t\t<a href=\"";
            // line 25
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("evenement", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["events"], 0, [], "array", false, false, false, 25), "id", [], "any", false, false, false, 25)]), "html", null, true);
            yield "\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["events"], 0, [], "array", false, false, false, 25), "title", [], "any", false, false, false, 25), "html", null, true);
            yield "</a>
\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>

\t\t\t\t\t\t<div class=\"col-lg-6\">
\t\t\t\t\t\t\t<div class=\"row g-5\">
\t\t\t\t\t\t\t\t";
            // line 32
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(range(1, 4));
            foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                // line 33
                yield "\t\t\t\t\t\t\t\t";
                if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), $context["events"]) > $context["i"])) {
                    // line 34
                    yield "\t\t\t\t\t\t\t\t<div class=\"col-lg-6 border-start custom-border\" style=\"margin-bottom: 15px;\">
\t\t\t\t\t\t\t\t\t<div class=\"post-entry-1\">
\t\t\t\t\t\t\t\t\t\t<a href=\"";
                    // line 36
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("evenement", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["events"], $context["i"], [], "array", false, false, false, 36), "id", [], "any", false, false, false, 36)]), "html", null, true);
                    yield "\"><img src=\"";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("dist/img/events/"), "html", null, true);
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["events"], $context["i"], [], "array", false, false, false, 36), "photo", [], "any", false, false, false, 36), "html", null, true);
                    yield "\" alt=\"\" class=\"img-fluid\" style=\"max-width: auto;height: 150px;\"></a>
\t\t\t\t\t\t\t\t\t\t<div class=\"post-meta\">
\t\t\t\t\t\t\t\t\t\t\t<span class=\"date\">";
                    // line 38
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["events"], $context["i"], [], "array", false, false, false, 38), "lieu", [], "any", false, false, false, 38), "html", null, true);
                    yield "</span>
\t\t\t\t\t\t\t\t\t\t\t<span class=\"mx-1\">•</span>
\t\t\t\t\t\t\t\t\t\t\t<span>";
                    // line 40
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["events"], $context["i"], [], "array", false, false, false, 40), "date", [], "any", false, false, false, 40), "d/m/Y"), "html", null, true);
                    yield "</span>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<h2 style=\"font-size: 14px; padding: 0; margin: 0; color: #023b6d;\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
                    // line 43
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("evenement", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["events"], $context["i"], [], "array", false, false, false, 43), "id", [], "any", false, false, false, 43)]), "html", null, true);
                    yield "\">";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["events"], $context["i"], [], "array", false, false, false, 43), "title", [], "any", false, false, false, 43), "html", null, true);
                    yield "</a>
\t\t\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t";
                }
                // line 48
                yield "\t\t\t\t\t\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['i'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 49
            yield "
\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
      </div>
    </section>
    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['events'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 57
        yield "
</div>
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "frontend/evenements.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable(): bool
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  178 => 57,  165 => 49,  159 => 48,  149 => 43,  143 => 40,  138 => 38,  130 => 36,  126 => 34,  123 => 33,  119 => 32,  107 => 25,  101 => 22,  96 => 20,  88 => 18,  81 => 13,  77 => 12,  67 => 4,  57 => 3,  40 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends 'frontend/layout.html.twig' %}

{% block content %}
<div class=\"container single-template\">

  <div class=\"page-header\">
\t\t\t<h1 class=\"page-title\">
\t\t\t\tL'actualité de la DGCS-ODD
\t\t\t</h1>
\t\t</div>
    
    {% for events in evenements %}
    <section class=\"category-section\" style=\"margin-bottom: 30px;\">
      <div class=\"container aos-init aos-animate\" data-aos=\"fade-up\">
          <div class=\"row g-5\">
\t\t\t\t\t\t<div class=\"col-lg-6\">
\t\t\t\t\t\t\t<div class=\"post-entry-1 lg\">
\t\t\t\t\t\t\t\t<a href=\"{{ path('evenement',  { 'id': events[0].id }) }}\"><img src=\"{{ asset('dist/img/events/') }}{{events[0].photo}}\" alt=\"\" class=\"img-fluid\" style=\"max-width: auto;height: 370px;\"></a>
\t\t\t\t\t\t\t\t<div class=\"post-meta\">
\t\t\t\t\t\t\t\t\t<span class=\"date\">{{events[0].lieu}}</span>
\t\t\t\t\t\t\t\t\t<span class=\"mx-1\">•</span>
\t\t\t\t\t\t\t\t\t<span>{{events[0].date | date('d/m/Y')}}</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<h2 style=\"font-size: 20px; padding: 0; margin: 0; color: #023b6d;\">
\t\t\t\t\t\t\t\t\t<a href=\"{{ path('evenement',  { 'id': events[0].id }) }}\">{{events[0].title}}</a>
\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>

\t\t\t\t\t\t<div class=\"col-lg-6\">
\t\t\t\t\t\t\t<div class=\"row g-5\">
\t\t\t\t\t\t\t\t{% for i in 1..4 %}
\t\t\t\t\t\t\t\t{% if events|length > i %}
\t\t\t\t\t\t\t\t<div class=\"col-lg-6 border-start custom-border\" style=\"margin-bottom: 15px;\">
\t\t\t\t\t\t\t\t\t<div class=\"post-entry-1\">
\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('evenement',  { 'id': events[i].id }) }}\"><img src=\"{{ asset('dist/img/events/') }}{{events[i].photo}}\" alt=\"\" class=\"img-fluid\" style=\"max-width: auto;height: 150px;\"></a>
\t\t\t\t\t\t\t\t\t\t<div class=\"post-meta\">
\t\t\t\t\t\t\t\t\t\t\t<span class=\"date\">{{events[i].lieu}}</span>
\t\t\t\t\t\t\t\t\t\t\t<span class=\"mx-1\">•</span>
\t\t\t\t\t\t\t\t\t\t\t<span>{{events[i].date | date('d/m/Y')}}</span>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<h2 style=\"font-size: 14px; padding: 0; margin: 0; color: #023b6d;\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('evenement',  { 'id': events[i].id }) }}\">{{events[i].title}}</a>
\t\t\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t{% endfor %}

\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
      </div>
    </section>
    {% endfor %}

</div>
{% endblock %}", "frontend/evenements.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/frontend/evenements.html.twig");
    }
}
