<?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/evenement.html.twig */
class __TwigTemplate_fb844a5908d7e4928f2b0af05d32687d 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/evenement.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 "\t<div class=\"container single-template\">


\t\t<div class=\"page-header\">
\t\t\t<h1 class=\"page-title\">
\t\t\t\t";
        // line 9
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 9, $this->source); })()), "title", [], "any", false, false, false, 9), "html", null, true);
        yield "
\t\t\t</h1>
\t\t</div>
\t\t<div class=\"post-meta\">
\t\t\t<span class=\"date\">";
        // line 13
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 13, $this->source); })()), "lieu", [], "any", false, false, false, 13), "html", null, true);
        yield "</span>
\t\t\t<span class=\"mx-1\">•</span>
\t\t\t<span>";
        // line 15
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 15, $this->source); })()), "date", [], "any", false, false, false, 15), "d/m/Y"), "html", null, true);
        yield "</span>
\t\t\t<br>
\t\t</div>

\t\t<div class=\"container aos-init aos-animate\" data-aos=\"fade-up\">
\t\t\t<div class=\"row g-5\">
\t\t\t\t<div class=\"col-lg-10\">
\t\t\t\t\t<img src=\"";
        // line 22
        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, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 22, $this->source); })()), "photo", [], "any", false, false, false, 22), "html", null, true);
        yield "\" alt=\"\" class=\"img-fluid\">

\t\t\t\t\t<br>
\t\t\t\t\t<br>

\t\t\t\t\t";
        // line 27
        yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 27, $this->source); })()), "contenu", [], "any", false, false, false, 27);
        yield "
\t\t\t\t</div>

\t\t\t\t<div class=\"col-lg-2\">

\t\t\t\t\t<div class=\"template-details\">
\t\t\t\t\t\t<h2>Voir plus
\t\t\t\t\t\t</h2>
\t\t\t\t\t</div>

\t\t\t\t\t";
        // line 37
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(range(0, 4));
        foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
            // line 38
            yield "\t\t\t\t\t\t";
            if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 38, $this->source); })())) > $context["i"])) {
                // line 39
                yield "\t\t\t\t\t\t\t<div class=\"col-lg-12\" style=\"margin-bottom: 15px;\">
\t\t\t\t\t\t\t\t<div class=\"post-entry-1\">
\t\t\t\t\t\t\t\t\t<a href=\"";
                // line 41
                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, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 41, $this->source); })()), $context["i"], [], "array", false, false, false, 41), "id", [], "any", false, false, false, 41)]), "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, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 41, $this->source); })()), $context["i"], [], "array", false, false, false, 41), "photo", [], "any", false, false, false, 41), "html", null, true);
                yield "\" alt=\"\" class=\"img-fluid\" style=\"max-width: 100%;height: auto;\"></a>
\t\t\t\t\t\t\t\t\t<div class=\"post-meta\">
\t\t\t\t\t\t\t\t\t\t<span class=\"date\">";
                // line 43
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 43, $this->source); })()), $context["i"], [], "array", false, false, false, 43), "lieu", [], "any", false, false, false, 43), "html", null, true);
                yield "</span>
\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<span>";
                // line 45
                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, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 45, $this->source); })()), $context["i"], [], "array", false, false, false, 45), "date", [], "any", false, false, false, 45), "d/m/Y"), "html", null, true);
                yield "</span>
\t\t\t\t\t\t\t\t\t</div>
\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<a href=\"";
                // line 48
                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, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 48, $this->source); })()), $context["i"], [], "array", false, false, false, 48), "id", [], "any", false, false, false, 48)]), "html", null, true);
                yield "\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 48, $this->source); })()), $context["i"], [], "array", false, false, false, 48), "title", [], "any", false, false, false, 48), "html", null, true);
                yield "</a>
\t\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
            }
            // line 53
            yield "\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 54
        yield "
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>

\t</div>
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  164 => 54,  158 => 53,  148 => 48,  142 => 45,  137 => 43,  129 => 41,  125 => 39,  122 => 38,  118 => 37,  105 => 27,  96 => 22,  86 => 15,  81 => 13,  74 => 9,  67 => 4,  57 => 3,  40 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends 'frontend/layout.html.twig' %}

{% block content %}
\t<div class=\"container single-template\">


\t\t<div class=\"page-header\">
\t\t\t<h1 class=\"page-title\">
\t\t\t\t{{event.title}}
\t\t\t</h1>
\t\t</div>
\t\t<div class=\"post-meta\">
\t\t\t<span class=\"date\">{{event.lieu}}</span>
\t\t\t<span class=\"mx-1\">•</span>
\t\t\t<span>{{event.date | date('d/m/Y')}}</span>
\t\t\t<br>
\t\t</div>

\t\t<div class=\"container aos-init aos-animate\" data-aos=\"fade-up\">
\t\t\t<div class=\"row g-5\">
\t\t\t\t<div class=\"col-lg-10\">
\t\t\t\t\t<img src=\"{{ asset('dist/img/events/') }}{{event.photo}}\" alt=\"\" class=\"img-fluid\">

\t\t\t\t\t<br>
\t\t\t\t\t<br>

\t\t\t\t\t{{event.contenu | raw}}
\t\t\t\t</div>

\t\t\t\t<div class=\"col-lg-2\">

\t\t\t\t\t<div class=\"template-details\">
\t\t\t\t\t\t<h2>Voir plus
\t\t\t\t\t\t</h2>
\t\t\t\t\t</div>

\t\t\t\t\t{% for i in 0..4 %}
\t\t\t\t\t\t{% if events|length > i %}
\t\t\t\t\t\t\t<div class=\"col-lg-12\" style=\"margin-bottom: 15px;\">
\t\t\t\t\t\t\t\t<div class=\"post-entry-1\">
\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: 100%;height: auto;\"></a>
\t\t\t\t\t\t\t\t\t<div class=\"post-meta\">
\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<span class=\"mx-1\">•</span>
\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</div>
\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<a href=\"{{ path('evenement', { 'id': events[i].id }) }}\">{{events[i].title}}</a>
\t\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endfor %}

\t\t\t\t</div>
\t\t\t</div>
\t\t</div>

\t</div>
{% endblock %}
", "frontend/evenement.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/frontend/evenement.html.twig");
    }
}
