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

/* pages/admin/rules_list.html.twig */
class __TwigTemplate_354c6af627bd0a22c12930848101bdae 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 = []): iterable
    {
        $macros = $this->macros;
        // line 32
        yield "
<div class=\"center mb-3\">
   <a class=\"btn btn-primary me-2\" href=\"";
        // line 34
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path("front/rule.backup.php?action=import"), "html", null, true);
        yield "\">
      <i class=\"fas fa-upload\"></i>
      <span>";
        // line 36
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(_x("button", "Import"), "html", null, true);
        yield "</span>
   </a>
   <a class=\"btn btn-primary me-2\" href=\"";
        // line 38
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path("front/rule.backup.php?action=export"), "html", null, true);
        yield "\">
      <i class=\"fas fa-download\"></i>
      <span>";
        // line 40
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(_x("button", "Export"), "html", null, true);
        yield "</span>
   </a>
</div>

<div class=\"container px-4\">
   <div class=\"row g-3 justify-content-evenly\">
      ";
        // line 46
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["rules_group"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["rules_block"]) {
            // line 47
            yield "         <div class=\"col-12 ";
            yield (((Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["rules_group"] ?? null)) > 2)) ? ("col-xxl-3") : ("col-xxl-5"));
            yield "\">
            <div class=\"card\">
               <div class=\"card-header\">
                  <h3>";
            // line 50
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v0 = $context["rules_block"]) && is_array($_v0) || $_v0 instanceof ArrayAccess ? ($_v0["type"] ?? null) : null), "html", null, true);
            yield "</h3>
               </div>
               <div class=\"list-group list-group-flush\">
                  ";
            // line 53
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable((($_v1 = $context["rules_block"]) && is_array($_v1) || $_v1 instanceof ArrayAccess ? ($_v1["entries"] ?? null) : null));
            foreach ($context['_seq'] as $context["_key"] => $context["rule"]) {
                // line 54
                yield "                     <a class=\"list-group-item list-group-item-action\" href=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v2 = $context["rule"]) && is_array($_v2) || $_v2 instanceof ArrayAccess ? ($_v2["link"] ?? null) : null), "html", null, true);
                yield "\">
                        <i class=\"fa-fw ";
                // line 55
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v3 = $context["rule"]) && is_array($_v3) || $_v3 instanceof ArrayAccess ? ($_v3["icon"] ?? null) : null), "html", null, true);
                yield " me-1\"></i>
                        <span>";
                // line 56
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v4 = $context["rule"]) && is_array($_v4) || $_v4 instanceof ArrayAccess ? ($_v4["label"] ?? null) : null), "html", null, true);
                yield "</span>
                     </a>
                  ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['rule'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 59
            yield "               </div>
            </div>
         </div>
      ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['rules_block'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 63
        yield "   </div>
</div>
";
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "pages/admin/rules_list.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  118 => 63,  109 => 59,  100 => 56,  96 => 55,  91 => 54,  87 => 53,  81 => 50,  74 => 47,  70 => 46,  61 => 40,  56 => 38,  51 => 36,  46 => 34,  42 => 32,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "pages/admin/rules_list.html.twig", "C:\\xampp\\htdocs\\itsm\\templates\\pages\\admin\\rules_list.html.twig");
    }
}
