<?php

/* :charity:index.html.twig */
class __TwigTemplate_3335cc47a636c9413a239c13d01fd9108752283497b20d6332aa6b46c9e405f2 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        // line 1
        $this->parent = $this->loadTemplate("base.html.twig", ":charity:index.html.twig", 1);
        $this->blocks = array(
            'body' => array($this, 'block_body'),
        );
    }

    protected function doGetParent(array $context)
    {
        return "base.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $__internal_3598ce09edeb40524ba232a9cbd4c6f410fdb500fbf6cdebfb290422b2128913 = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
        $__internal_3598ce09edeb40524ba232a9cbd4c6f410fdb500fbf6cdebfb290422b2128913->enter($__internal_3598ce09edeb40524ba232a9cbd4c6f410fdb500fbf6cdebfb290422b2128913_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", ":charity:index.html.twig"));

        $__internal_29b0386618f3305ee78fd4491966c400b4a71d2ea99026627e81125a45078622 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
        $__internal_29b0386618f3305ee78fd4491966c400b4a71d2ea99026627e81125a45078622->enter($__internal_29b0386618f3305ee78fd4491966c400b4a71d2ea99026627e81125a45078622_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", ":charity:index.html.twig"));

        $this->parent->display($context, array_merge($this->blocks, $blocks));
        
        $__internal_3598ce09edeb40524ba232a9cbd4c6f410fdb500fbf6cdebfb290422b2128913->leave($__internal_3598ce09edeb40524ba232a9cbd4c6f410fdb500fbf6cdebfb290422b2128913_prof);

        
        $__internal_29b0386618f3305ee78fd4491966c400b4a71d2ea99026627e81125a45078622->leave($__internal_29b0386618f3305ee78fd4491966c400b4a71d2ea99026627e81125a45078622_prof);

    }

    // line 3
    public function block_body($context, array $blocks = array())
    {
        $__internal_91c64e518a5a3d939940565603b0e9101e8bbc4fac05c39899feee9e2bfc0ddb = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
        $__internal_91c64e518a5a3d939940565603b0e9101e8bbc4fac05c39899feee9e2bfc0ddb->enter($__internal_91c64e518a5a3d939940565603b0e9101e8bbc4fac05c39899feee9e2bfc0ddb_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));

        $__internal_924a514f5911953641ec6e899af2a8853cafbe04f6b8e69f95ef52f783647d56 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
        $__internal_924a514f5911953641ec6e899af2a8853cafbe04f6b8e69f95ef52f783647d56->enter($__internal_924a514f5911953641ec6e899af2a8853cafbe04f6b8e69f95ef52f783647d56_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));

        // line 4
        echo "    <h1>Charities list</h1>

    <table>
        <thead>
            <tr>
                <th>Id</th>
                <th>Name</th>
                <th>Description</th>
                <th>Actions</th>
            </tr>
        </thead>
        <tbody>
        ";
        // line 16
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["charities"] ?? $this->getContext($context, "charities")));
        foreach ($context['_seq'] as $context["_key"] => $context["charity"]) {
            // line 17
            echo "            <tr>
                <td><a href=\"";
            // line 18
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("charity_show", array("id" => $this->getAttribute($context["charity"], "id", array()))), "html", null, true);
            echo "\">";
            echo twig_escape_filter($this->env, $this->getAttribute($context["charity"], "id", array()), "html", null, true);
            echo "</a></td>
                <td>";
            // line 19
            echo twig_escape_filter($this->env, $this->getAttribute($context["charity"], "name", array()), "html", null, true);
            echo "</td>
                <td>";
            // line 20
            echo twig_escape_filter($this->env, $this->getAttribute($context["charity"], "description", array()), "html", null, true);
            echo "</td>
                <td>
                    <ul>
                        <li>
                            <a href=\"";
            // line 24
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("charity_show", array("id" => $this->getAttribute($context["charity"], "id", array()))), "html", null, true);
            echo "\">show</a>
                        </li>
                        <li>
                            <a href=\"";
            // line 27
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("charity_edit", array("id" => $this->getAttribute($context["charity"], "id", array()))), "html", null, true);
            echo "\">edit</a>
                        </li>
                    </ul>
                </td>
            </tr>
        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['charity'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 33
        echo "        </tbody>
    </table>

    <ul>
        <li>
            <a href=\"";
        // line 38
        echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("charity_new");
        echo "\">Create a new charity</a>
        </li>
    </ul>
";
        
        $__internal_924a514f5911953641ec6e899af2a8853cafbe04f6b8e69f95ef52f783647d56->leave($__internal_924a514f5911953641ec6e899af2a8853cafbe04f6b8e69f95ef52f783647d56_prof);

        
        $__internal_91c64e518a5a3d939940565603b0e9101e8bbc4fac05c39899feee9e2bfc0ddb->leave($__internal_91c64e518a5a3d939940565603b0e9101e8bbc4fac05c39899feee9e2bfc0ddb_prof);

    }

    public function getTemplateName()
    {
        return ":charity:index.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  112 => 38,  105 => 33,  93 => 27,  87 => 24,  80 => 20,  76 => 19,  70 => 18,  67 => 17,  63 => 16,  49 => 4,  40 => 3,  11 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Twig_Source("{% extends 'base.html.twig' %}

{% block body %}
    <h1>Charities list</h1>

    <table>
        <thead>
            <tr>
                <th>Id</th>
                <th>Name</th>
                <th>Description</th>
                <th>Actions</th>
            </tr>
        </thead>
        <tbody>
        {% for charity in charities %}
            <tr>
                <td><a href=\"{{ path('charity_show', { 'id': charity.id }) }}\">{{ charity.id }}</a></td>
                <td>{{ charity.name }}</td>
                <td>{{ charity.description }}</td>
                <td>
                    <ul>
                        <li>
                            <a href=\"{{ path('charity_show', { 'id': charity.id }) }}\">show</a>
                        </li>
                        <li>
                            <a href=\"{{ path('charity_edit', { 'id': charity.id }) }}\">edit</a>
                        </li>
                    </ul>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>

    <ul>
        <li>
            <a href=\"{{ path('charity_new') }}\">Create a new charity</a>
        </li>
    </ul>
{% endblock %}
", ":charity:index.html.twig", "/var/www/govhack17_donate/app/Resources/views/charity/index.html.twig");
    }
}
