<?php

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

        // line 1
        $this->parent = $this->loadTemplate("VGMWOBundle::layout.html.twig", "VGMWOBundle:NPaySchedule:index.html.twig", 1);
        $this->blocks = array(
            'jumbotron_content' => array($this, 'block_jumbotron_content'),
            'content' => array($this, 'block_content'),
            'javascripts' => array($this, 'block_javascripts'),
        );
    }

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

    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 2
    public function block_jumbotron_content($context, array $blocks = array())
    {
        // line 3
        echo "    <div class=\"jumbotron\" style=\"padding-top: 10px; padding-bottom: 5px;\"  id=\"jumbotron\">
        <div class=\"container-fluid\">
            <div class=\"col-md-12 text-center\" style=\"padding-left: 0px;\">
                <H3 style=\"margin: 0px;\"><strong>Payment Schedules</strong></H3>
            </div>
        </div>
    </div>
";
    }

    // line 11
    public function block_content($context, array $blocks = array())
    {
        // line 12
        echo "    <div class=\"container\" style=\"min-height: 500px;\">
        <div class=\"table-responsive\">
            <table class=\"table table-striped table-hover\">
                <thead>
                <tr>
                    <th class=\"col-md-2\">Schedule</th>
                    <th class=\"col-md-9\">Description</th>
                    <th class=\"text-center col-md-1\">Actions</th>
                </tr>
                </thead>
                <tbody>
                ";
        // line 23
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["entities"]) ? $context["entities"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["entity"]) {
            // line 24
            echo "                    <tr>
                        <td>";
            // line 25
            echo twig_escape_filter($this->env, $this->getAttribute($context["entity"], "name", array()), "html", null, true);
            echo "</td>
                        <td>";
            // line 26
            echo twig_escape_filter($this->env, $this->getAttribute($context["entity"], "description", array()), "html", null, true);
            echo "</td>
                        <td class=\"text-center\">
                            <a href=\"";
            // line 28
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("NPaySchedules_show", array("id" => $this->getAttribute($context["entity"], "id", array()))), "html", null, true);
            echo "\"><span class=\"glyphicon glyphicon-eye-open\"></span></a>
                            <a href=\"";
            // line 29
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("NPaySchedules_edit", array("id" => $this->getAttribute($context["entity"], "id", array()))), "html", null, true);
            echo "\"><span class=\"glyphicon glyphicon-pencil\"></span></a>
                        </td>
                    </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 33
        echo "                </tbody>
            </table>
            <div class=\"container-fluid\">
                <div class=\"col-md-3 text-muted text-left\">
                    <strong>";
        // line 37
        echo twig_escape_filter($this->env, (isset($context["cant_schedules"]) ? $context["cant_schedules"] : null), "html", null, true);
        echo "</strong> registered payment schedules
                    ";
        // line 38
        if (((isset($context["last_page"]) ? $context["last_page"] : null) > 1)) {
            // line 39
            echo "                        - page <strong>";
            echo twig_escape_filter($this->env, (isset($context["current_page"]) ? $context["current_page"] : null), "html", null, true);
            echo "/";
            echo twig_escape_filter($this->env, (isset($context["last_page"]) ? $context["last_page"] : null), "html", null, true);
            echo "</strong>
                    ";
        }
        // line 41
        echo "                </div>
                <div class=\"col-md-6 text-center\">
                    ";
        // line 43
        if (((isset($context["last_page"]) ? $context["last_page"] : null) > 1)) {
            // line 44
            echo "                        ";
            if (((isset($context["current_page"]) ? $context["current_page"] : null) > 1)) {
                // line 45
                echo "                            <a href=\"";
                echo $this->env->getExtension('routing')->getPath("NPaySchedules", array("page" => 1));
                echo "\" >
                                <span class=\"glyphicon glyphicon-step-backward \"
                                      alt=\"First page\" title=\"First page\"/>
                            </a>

                            <a href=\"";
                // line 50
                echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("NPaySchedules", array("page" => (isset($context["previous_page"]) ? $context["previous_page"] : null))), "html", null, true);
                echo "\">
                                <span class=\"glyphicon glyphicon-backward\" alt=\"Previous page\" title=\"Previous page\" />
                            </a>
                        ";
            }
            // line 54
            echo "
                        ";
            // line 55
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable(range(1, (isset($context["last_page"]) ? $context["last_page"] : null)));
            foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
                // line 56
                echo "                            ";
                if (($context["page"] == (isset($context["current_page"]) ? $context["current_page"] : null))) {
                    // line 57
                    echo "                                ";
                    echo twig_escape_filter($this->env, $context["page"], "html", null, true);
                    echo "
                            ";
                } else {
                    // line 59
                    echo "                                <a href=\"";
                    echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("NPaySchedules", array("page" => $context["page"])), "html", null, true);
                    echo "\">";
                    echo twig_escape_filter($this->env, $context["page"], "html", null, true);
                    echo "</a>
                            ";
                }
                // line 61
                echo "                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 62
            echo "
                        ";
            // line 63
            if (((isset($context["last_page"]) ? $context["last_page"] : null) > (isset($context["current_page"]) ? $context["current_page"] : null))) {
                // line 64
                echo "                            <a href=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("NPaySchedules", array("page" => (isset($context["next_page"]) ? $context["next_page"] : null))), "html", null, true);
                echo "\">
                                <span class=\"glyphicon glyphicon-forward\" alt=\"Next page\" title=\"Next page\" />
                            </a>

                            <a href=\"";
                // line 68
                echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("NPaySchedules", array("page" => (isset($context["last_page"]) ? $context["last_page"] : null))), "html", null, true);
                echo "\">
                                <span class=\"glyphicon glyphicon-step-forward\" alt=\"Last page\" title=\"Last page\" />
                            </a>
                        ";
            }
            // line 72
            echo "                    ";
        }
        // line 73
        echo "                </div>
                <div class=\"col-md-3 text-right\">
                    <a href=\"";
        // line 75
        echo $this->env->getExtension('routing')->getPath("NPaySchedules_new");
        echo "\">
                        <span class=\"glyphicon glyphicon-plus-sign\"></span>
                        Create
                    </a>
                </div>
            </div>
        </div>
    </div>
";
    }

    // line 84
    public function block_javascripts($context, array $blocks = array())
    {
        // line 85
        echo "    ";
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "
    <script type=\"text/javascript\">
        // Activates knockout.js
        ////ko.applyBindings(baseViewModel, document.getElementById(\"menu-bar\"));
    </script>
";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  208 => 85,  205 => 84,  192 => 75,  188 => 73,  185 => 72,  178 => 68,  170 => 64,  168 => 63,  165 => 62,  159 => 61,  151 => 59,  145 => 57,  142 => 56,  138 => 55,  135 => 54,  128 => 50,  119 => 45,  116 => 44,  114 => 43,  110 => 41,  102 => 39,  100 => 38,  96 => 37,  90 => 33,  80 => 29,  76 => 28,  71 => 26,  67 => 25,  64 => 24,  60 => 23,  47 => 12,  44 => 11,  33 => 3,  30 => 2,  11 => 1,);
    }
}
