File: /home/cafsindia/help.cafsindia.com/var/cache/dev/twig/c7/c7e4d8f6ca09487463e5ef3d609d2458.php
<?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;
/* @KnpPaginator/Pagination/tailwindcss_pagination.html.twig */
class __TwigTemplate_0f33029016ca07be0a77e10415a2275c 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->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@KnpPaginator/Pagination/tailwindcss_pagination.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@KnpPaginator/Pagination/tailwindcss_pagination.html.twig"));
// line 2
if (((isset($context["pageCount"]) || array_key_exists("pageCount", $context) ? $context["pageCount"] : (function () { throw new RuntimeError('Variable "pageCount" does not exist.', 2, $this->source); })()) > 1)) {
// line 3
yield " <div class=\"inline-block\">
<div class=\"flex items-baseline flex-row border border-gray-400 rounded-sm w-auto\">
";
// line 5
if ((array_key_exists("first", $context) && ((isset($context["current"]) || array_key_exists("current", $context) ? $context["current"] : (function () { throw new RuntimeError('Variable "current" does not exist.', 5, $this->source); })()) != (isset($context["first"]) || array_key_exists("first", $context) ? $context["first"] : (function () { throw new RuntimeError('Variable "first" does not exist.', 5, $this->source); })())))) {
// line 6
yield " <span class=\"bg-white text-blue-600 px-3 py-2 text-lg border-r border-gray-400 font-bold\">
<a href=\"";
// line 7
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath((isset($context["route"]) || array_key_exists("route", $context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.', 7, $this->source); })()), Twig\Extension\CoreExtension::merge((isset($context["query"]) || array_key_exists("query", $context) ? $context["query"] : (function () { throw new RuntimeError('Variable "query" does not exist.', 7, $this->source); })()), [(isset($context["pageParameterName"]) || array_key_exists("pageParameterName", $context) ? $context["pageParameterName"] : (function () { throw new RuntimeError('Variable "pageParameterName" does not exist.', 7, $this->source); })()) => (isset($context["first"]) || array_key_exists("first", $context) ? $context["first"] : (function () { throw new RuntimeError('Variable "first" does not exist.', 7, $this->source); })())])), "html", null, true);
yield "\"><<</a>
</span>
";
}
// line 10
yield "
";
// line 11
if (array_key_exists("previous", $context)) {
// line 12
yield " <span class=\"bg-white text-blue-600 px-3 text-lg py-2 border-r border-gray-400\">
<a rel=\"prev\" href=\"";
// line 13
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath((isset($context["route"]) || array_key_exists("route", $context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.', 13, $this->source); })()), Twig\Extension\CoreExtension::merge((isset($context["query"]) || array_key_exists("query", $context) ? $context["query"] : (function () { throw new RuntimeError('Variable "query" does not exist.', 13, $this->source); })()), [(isset($context["pageParameterName"]) || array_key_exists("pageParameterName", $context) ? $context["pageParameterName"] : (function () { throw new RuntimeError('Variable "pageParameterName" does not exist.', 13, $this->source); })()) => (isset($context["previous"]) || array_key_exists("previous", $context) ? $context["previous"] : (function () { throw new RuntimeError('Variable "previous" does not exist.', 13, $this->source); })())])), "html", null, true);
yield "\"><</a>
</span>
";
}
// line 16
yield "
";
// line 17
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["pagesInRange"]) || array_key_exists("pagesInRange", $context) ? $context["pagesInRange"] : (function () { throw new RuntimeError('Variable "pagesInRange" does not exist.', 17, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
// line 18
yield " ";
if (($context["page"] != (isset($context["current"]) || array_key_exists("current", $context) ? $context["current"] : (function () { throw new RuntimeError('Variable "current" does not exist.', 18, $this->source); })()))) {
// line 19
yield " <span class=\"bg-white text-blue-600 px-3 py-2 text-lg border-r border-gray-400\">
<a href=\"";
// line 20
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath((isset($context["route"]) || array_key_exists("route", $context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.', 20, $this->source); })()), Twig\Extension\CoreExtension::merge((isset($context["query"]) || array_key_exists("query", $context) ? $context["query"] : (function () { throw new RuntimeError('Variable "query" does not exist.', 20, $this->source); })()), [(isset($context["pageParameterName"]) || array_key_exists("pageParameterName", $context) ? $context["pageParameterName"] : (function () { throw new RuntimeError('Variable "pageParameterName" does not exist.', 20, $this->source); })()) => $context["page"]])), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["page"], "html", null, true);
yield "</a>
</span>
";
} else {
// line 23
yield " <span class=\"bg-blue-600 text-white px-3 py-2 text-lg font-bold\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["page"], "html", null, true);
yield "</span>
";
}
// line 25
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 26
yield "
";
// line 27
if (array_key_exists("next", $context)) {
// line 28
yield " <span class=\"bg-white text-blue-600 px-3 py-2 text-lg border-r border-gray-400\">
<a rel=\"next\" href=\"";
// line 29
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath((isset($context["route"]) || array_key_exists("route", $context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.', 29, $this->source); })()), Twig\Extension\CoreExtension::merge((isset($context["query"]) || array_key_exists("query", $context) ? $context["query"] : (function () { throw new RuntimeError('Variable "query" does not exist.', 29, $this->source); })()), [(isset($context["pageParameterName"]) || array_key_exists("pageParameterName", $context) ? $context["pageParameterName"] : (function () { throw new RuntimeError('Variable "pageParameterName" does not exist.', 29, $this->source); })()) => (isset($context["next"]) || array_key_exists("next", $context) ? $context["next"] : (function () { throw new RuntimeError('Variable "next" does not exist.', 29, $this->source); })())])), "html", null, true);
yield "\">></a>
</span>
";
}
// line 32
yield "
";
// line 33
if ((array_key_exists("last", $context) && ((isset($context["current"]) || array_key_exists("current", $context) ? $context["current"] : (function () { throw new RuntimeError('Variable "current" does not exist.', 33, $this->source); })()) != (isset($context["last"]) || array_key_exists("last", $context) ? $context["last"] : (function () { throw new RuntimeError('Variable "last" does not exist.', 33, $this->source); })())))) {
// line 34
yield " <span class=\"bg-white text-blue-600 px-3 py-2 text-lg border-gray-400 font-bold\">
<a href=\"";
// line 35
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath((isset($context["route"]) || array_key_exists("route", $context) ? $context["route"] : (function () { throw new RuntimeError('Variable "route" does not exist.', 35, $this->source); })()), Twig\Extension\CoreExtension::merge((isset($context["query"]) || array_key_exists("query", $context) ? $context["query"] : (function () { throw new RuntimeError('Variable "query" does not exist.', 35, $this->source); })()), [(isset($context["pageParameterName"]) || array_key_exists("pageParameterName", $context) ? $context["pageParameterName"] : (function () { throw new RuntimeError('Variable "pageParameterName" does not exist.', 35, $this->source); })()) => (isset($context["last"]) || array_key_exists("last", $context) ? $context["last"] : (function () { throw new RuntimeError('Variable "last" does not exist.', 35, $this->source); })())])), "html", null, true);
yield "\">>></a>
</span>
";
}
// line 38
yield " </div>
</div>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@KnpPaginator/Pagination/tailwindcss_pagination.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 140 => 38, 134 => 35, 131 => 34, 129 => 33, 126 => 32, 120 => 29, 117 => 28, 115 => 27, 112 => 26, 106 => 25, 100 => 23, 92 => 20, 89 => 19, 86 => 18, 82 => 17, 79 => 16, 73 => 13, 70 => 12, 68 => 11, 65 => 10, 59 => 7, 56 => 6, 54 => 5, 50 => 3, 48 => 2,);
}
public function getSourceContext(): Source
{
return new Source("{# tailwindcss Sliding pagination control implementation #}
{% if pageCount > 1 %}
<div class=\"inline-block\">
<div class=\"flex items-baseline flex-row border border-gray-400 rounded-sm w-auto\">
{% if first is defined and current != first %}
<span class=\"bg-white text-blue-600 px-3 py-2 text-lg border-r border-gray-400 font-bold\">
<a href=\"{{ path(route, query|merge({(pageParameterName): first})) }}\"><<</a>
</span>
{% endif %}
{% if previous is defined %}
<span class=\"bg-white text-blue-600 px-3 text-lg py-2 border-r border-gray-400\">
<a rel=\"prev\" href=\"{{ path(route, query|merge({(pageParameterName): previous})) }}\"><</a>
</span>
{% endif %}
{% for page in pagesInRange %}
{% if page != current %}
<span class=\"bg-white text-blue-600 px-3 py-2 text-lg border-r border-gray-400\">
<a href=\"{{ path(route, query|merge({(pageParameterName): page})) }}\">{{ page }}</a>
</span>
{% else %}
<span class=\"bg-blue-600 text-white px-3 py-2 text-lg font-bold\">{{ page }}</span>
{% endif %}
{% endfor %}
{% if next is defined %}
<span class=\"bg-white text-blue-600 px-3 py-2 text-lg border-r border-gray-400\">
<a rel=\"next\" href=\"{{ path(route, query|merge({(pageParameterName): next})) }}\">></a>
</span>
{% endif %}
{% if last is defined and current != last %}
<span class=\"bg-white text-blue-600 px-3 py-2 text-lg border-gray-400 font-bold\">
<a href=\"{{ path(route, query|merge({(pageParameterName): last})) }}\">>></a>
</span>
{% endif %}
</div>
</div>
{% endif %}
", "@KnpPaginator/Pagination/tailwindcss_pagination.html.twig", "/home/users/sanjeev.papnoi/www/html/uvdesk-community-v1.1.6/vendor/knplabs/knp-paginator-bundle/templates/Pagination/tailwindcss_pagination.html.twig");
}
}