/
home
/
obinna
/
html
/
mixchief_app
/
var
/
cache
/
prod
/
twig
/
b3
/
Upload File
HOME
<?php use Twig\Environment; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; 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; /* Inventory/group.html.twig */ class __TwigTemplate_f9a932c50a73c953ce7c2f249d72ffb887809d3524c4fd623e58bab1f770ae1d extends Template { private $source; private $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'content' => [$this, 'block_content'], 'javascripts' => [$this, 'block_javascripts'], ]; } protected function doGetParent(array $context) { // line 1 return "base1.html.twig"; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; $this->parent = $this->loadTemplate("base1.html.twig", "Inventory/group.html.twig", 1); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 3 public function block_content($context, array $blocks = []) { $macros = $this->macros; // line 4 echo "\t<div class=\"content\"> \t\t<div class=\"row\"> \t\t\t<div class=\"col-sm-6\"> \t\t\t\t<div class=\"card\"> \t\t\t\t\t<div class=\"card-header\"> \t\t\t\t\t\t<h3>Categories</h3> \t\t\t\t\t</div> \t\t\t\t\t<div class=\"card-body\"> \t\t\t\t\t\t<table class=\"table table-default\"> \t\t\t\t\t\t\t<thead> \t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t\t<th>Name</th> \t\t\t\t\t\t\t\t\t<th>Action</th> \t\t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t</thead> \t\t\t\t\t\t\t<tbody> \t\t\t\t\t\t\t\t"; // line 20 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["groups"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["category"]) { // line 21 echo "\t\t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t\t\t<td><a href=\""; // line 22 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("group", ["id" => twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 22)]), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 22), "html", null, true); echo "</a></td> \t\t\t\t\t\t\t\t\t\t<td><a class=\"btn btn-danger\" href=\""; // line 23 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("deletecategory", ["id" => twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 23)]), "html", null, true); echo "\"><i class=\"fa fa-times\"></i></a></td> \t\t\t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t\t"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 26 echo "\t\t\t\t\t\t\t</tbody> \t\t\t\t\t\t</table> \t\t\t\t\t</div> \t\t\t\t</div> \t\t\t</div> \t\t\t<div class=\"col-sm-6\"> \t\t\t\t<div class=\"card\"> \t\t\t\t\t<div class=\"card-header\"> \t\t\t\t\t\t<h3>"; // line 34 if (($context["group"] ?? null)) { echo " <a class=\"btn btn-primary br-5\" href=\""; echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("group"); echo "\">New</a> Edit"; } else { echo "New"; } echo " Category</h3> \t\t\t\t\t</div> \t\t\t\t\t<div class=\"card-body\"> \t\t\t\t\t\t<form action=\""; // line 37 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("group"); echo "\" method=\"POST\" name=\"edit\"> \t\t\t\t\t\t\t"; // line 38 if (($context["group"] ?? null)) { echo "<input type=\"hidden\" name=\"edit\" value=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["group"] ?? null), "id", [], "any", false, false, false, 38), "html", null, true); echo "\">"; } // line 39 echo "\t\t\t\t\t\t\t<div class=\"form-group\"> \t\t\t\t\t\t\t\t<input type=\"text\" name=\"name\" class=\"form-control\" placeholder=\"Category Name\" value=\""; // line 40 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["group"] ?? null), "name", [], "any", true, true, false, 40)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["group"] ?? null), "name", [], "any", false, false, false, 40), "")) : ("")), "html", null, true); echo "\" required> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t<input type=\"submit\" name=\"submit\" value=\"Save\" class=\"btn btn-primary\"> \t\t\t\t\t\t</form> \t\t\t\t\t</div> \t\t\t\t</div> \t\t\t</div> \t\t</div> \t</div> "; } // line 51 public function block_javascripts($context, array $blocks = []) { $macros = $this->macros; // line 52 echo "\t"; $this->displayParentBlock("javascripts", $context, $blocks); echo " \t<script> \t\tconst category_url = \""; // line 54 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("group"); echo "\" \t\tconst itemRow = (category) => ` \t\t\t<tr> \t\t\t\t<td><a href=\"\${category_url}/\${category.id}\">\${category.name}</a></td> \t\t\t\t<td class=\"flex-big\">\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t<a data-name=\"\${category.name}\" class=\"btn btn-danger action-icon delete-row\" href=\"\${category_url}/\${category.id}\"><i class=\"fa fa-times\"></i></a> \t\t\t\t</td> \t\t\t</tr> \t\t`; \t</script> \t"; } public function getTemplateName() { return "Inventory/group.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 150 => 54, 144 => 52, 140 => 51, 126 => 40, 123 => 39, 117 => 38, 113 => 37, 101 => 34, 91 => 26, 82 => 23, 76 => 22, 73 => 21, 69 => 20, 51 => 4, 47 => 3, 36 => 1,); } public function getSourceContext() { return new Source("", "Inventory/group.html.twig", "/var/www/html/mixchief_app/templates/Inventory/group.html.twig"); } }