<?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;

/* suivi_osc/suivi_list.html.twig */
class __TwigTemplate_5911fc59e5fa637c940aced417985733 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 = [
            'page_title' => [$this, 'block_page_title'],
            'page_content' => [$this, 'block_page_content'],
            'javascripts' => [$this, 'block_javascripts'],
            'stylesheets' => [$this, 'block_stylesheets'],
        ];
    }

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

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->load("@AdminLTE/layout/suiodd-layout.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("suivi.osc.title", [], "messages");
        yield from [];
    }

    // line 6
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 7
        yield "    ";
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start');
        yield "
  
        ";
        // line 9
        yield from $this->load("suivi_osc/suivi_list.html.twig", 9, "1173143653")->unwrap()->yield($context);
        // line 14
        yield "     
        ";
        // line 15
        if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["activities"] ?? null)) > 0)) {
            // line 16
            yield "        ";
            yield from $this->load("suivi_osc/suivi_list.html.twig", 16, "337830113")->unwrap()->yield($context);
            // line 83
            yield "        ";
        }
        // line 84
        yield "              
    ";
        // line 85
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
        yield "

";
        yield from [];
    }

    // line 89
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_javascripts(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 90
        yield "    <script>
        \$(function () {
            \$(\"#suiviOSCTable\").DataTable({
                \"pageLength\": 25,
                \"lengthChange\": false,
                \"columnDefs\": [
                  { \"orderable\": false, \"targets\": -1 }
                ]
            });
        });
    </script>

    <script src=\"";
        // line 102
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/datatables/jquery.dataTables.js"), "html", null, true);
        yield "\"></script>
    <script src=\"";
        // line 103
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/datatables-bs4/js/dataTables.bootstrap4.js"), "html", null, true);
        yield "\"></script>
";
        yield from [];
    }

    // line 106
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_stylesheets(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 107
        yield "    <link rel=\"stylesheet\" href=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/datatables-bs4/css/dataTables.bootstrap4.css"), "html", null, true);
        yield "\">
";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  141 => 107,  134 => 106,  127 => 103,  123 => 102,  109 => 90,  102 => 89,  94 => 85,  91 => 84,  88 => 83,  85 => 16,  83 => 15,  80 => 14,  78 => 9,  72 => 7,  65 => 6,  54 => 3,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "suivi_osc/suivi_list.html.twig", "/var/www/html/templates/suivi_osc/suivi_list.html.twig");
    }
}


/* suivi_osc/suivi_list.html.twig */
class __TwigTemplate_5911fc59e5fa637c940aced417985733___1173143653 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 = [
            'box_body' => [$this, 'block_box_body'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 9
        return "@AdminLTE/Widgets/box-widget.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->load("@AdminLTE/Widgets/box-widget.html.twig", 9);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 10
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 11
        yield "                ";
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
        yield "
            ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  220 => 11,  213 => 10,  202 => 9,  141 => 107,  134 => 106,  127 => 103,  123 => 102,  109 => 90,  102 => 89,  94 => 85,  91 => 84,  88 => 83,  85 => 16,  83 => 15,  80 => 14,  78 => 9,  72 => 7,  65 => 6,  54 => 3,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "suivi_osc/suivi_list.html.twig", "/var/www/html/templates/suivi_osc/suivi_list.html.twig");
    }
}


/* suivi_osc/suivi_list.html.twig */
class __TwigTemplate_5911fc59e5fa637c940aced417985733___337830113 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 = [
            'box_body' => [$this, 'block_box_body'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 16
        return "@AdminLTE/Widgets/box-widget.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->load("@AdminLTE/Widgets/box-widget.html.twig", 16);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 17
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 18
        yield "                <table id=\"suiviOSCTable\" class=\"table table-striped\">
                <thead>
                    <th>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-3\">Accélérateur</div>
                            <div class=\"col-3\">Activité</div>
                            <div class=\"col-5\">
                                <div class=\"col-5 float-left text-center\">Coûts prévus</div>
                                <div class=\"col-2 float-left text-center\">Réalisé</div>
                                <div class=\"col-5 float-left text-center\">Coûts réalisés</div>
                            </div>
                            <div class=\"col-1 text-center\"></div>
                        </div>
                    </th>
               
                    <!--th>Réalisations clés</th>
                    <th>Contraintes majeures</th-->
              
                </thead>
                ";
        // line 37
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["activities"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["activity"]) {
            // line 38
            yield "                <tr>
                    <td>
                        <div class=\"row mt-2\">
                            <div class=\"col-3\">";
            // line 41
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "accelerator", [], "any", false, false, false, 41), "html", null, true);
            yield "</div>
                            <div class=\"col-3\">";
            // line 42
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "name", [], "any", false, false, false, 42), "html", null, true);
            yield "</div>
                            <div class=\"col-5\">
                                <div class=\"col-5 float-left text-center\"><b>";
            // line 44
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "expectedCost", [], "any", false, false, false, 44), "html", null, true);
            yield "</b></div>
                                <div class=\"col-2 float-left text-center\">";
            // line 45
            if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "executed", [], "any", false, false, false, 45)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                yield " Oui ";
            } else {
                yield " Non ";
            }
            yield "</div>
                                <div class=\"col-5 float-left text-center\">";
            // line 46
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "realizedCost", [], "any", false, false, false, 46), "html", null, true);
            yield "</div>
                           </div>
                            
                            <div class=\"col-1 text-center\">
                            ";
            // line 51
            yield "                                <a href=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_suiviOSC_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "id", [], "any", false, false, false, 51)]), "html", null, true);
            yield "\" class=\"btn btn-sm btn-secondary\">";
            yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.update", [], "messages");
            yield "</a>
                            ";
            // line 53
            yield "                            </div>
                        </div>
                        <div class=\"row mb-2\">
                            ";
            // line 56
            if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "executed", [], "any", false, false, false, 56)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 57
                yield "                                <div class=\"col-6 float-left\"><hr>
                                    <u>";
                // line 58
                yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.achievement", [], "messages");
                yield "</u>: 
                                    <i>";
                // line 59
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "achievement", [], "any", false, false, false, 59), "html", null, true);
                yield "</i>
                                </div>
                                <div class=\"col-6 float-left\"><hr>
                                    <u>";
                // line 62
                yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.factors", [], "messages");
                yield "</u>: 
                                    <i>";
                // line 63
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "factors", [], "any", false, false, false, 63), "html", null, true);
                yield "</i>
                                </div>
                            ";
            } else {
                // line 66
                yield "                                <div class=\"col-6 float-left\"><hr>
                                    <u>";
                // line 67
                yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.observations", [], "messages");
                yield "</u>: 
                                    <i>";
                // line 68
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "observations", [], "any", false, false, false, 68), "html", null, true);
                yield "</i>
                                </div>
                                <div class=\"col-6 float-left\"><hr>
                                    <u>";
                // line 71
                yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.constraints", [], "messages");
                yield "</u>: 
                                    <i>";
                // line 72
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "constraints", [], "any", false, false, false, 72), "html", null, true);
                yield "</i>
                                </div>
                            ";
            }
            // line 75
            yield "                        </div>
                    </td>

                </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['activity'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 80
        yield "                </table>
            ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  427 => 80,  417 => 75,  411 => 72,  407 => 71,  401 => 68,  397 => 67,  394 => 66,  388 => 63,  384 => 62,  378 => 59,  374 => 58,  371 => 57,  369 => 56,  364 => 53,  357 => 51,  350 => 46,  342 => 45,  338 => 44,  333 => 42,  329 => 41,  324 => 38,  320 => 37,  299 => 18,  292 => 17,  281 => 16,  220 => 11,  213 => 10,  202 => 9,  141 => 107,  134 => 106,  127 => 103,  123 => 102,  109 => 90,  102 => 89,  94 => 85,  91 => 84,  88 => 83,  85 => 16,  83 => 15,  80 => 14,  78 => 9,  72 => 7,  65 => 6,  54 => 3,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "suivi_osc/suivi_list.html.twig", "/var/www/html/templates/suivi_osc/suivi_list.html.twig");
    }
}
