/
var
/
www
/
html
/
amply
/
var
/
cache
/
prod
/
twig
/
c5
/
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; /* Stock/supplies.html.twig */ class __TwigTemplate_f7b3df20fe90a56ea8fb2e9bbb70533c6b311d4b4b45adc32ab6290987e63349 extends Template { private $source; private $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'content' => [$this, 'block_content'], ]; } 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", "Stock/supplies.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=\"card\"> \t\t\t<div class=\"card-body\"> \t\t\t\t"; // line 7 if (array_key_exists("supplier", $context)) { // line 8 echo "\t\t\t\t\t<h3>"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["supplier"] ?? null), "name", [], "any", false, false, false, 8), "html", null, true); echo " Supplies <a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("supply", ["supplierId" => twig_get_attribute($this->env, $this->source, ($context["supplier"] ?? null), "id", [], "any", false, false, false, 8)]), "html", null, true); echo "\" class=\"btn btn-primary\" style=\"margin-left: 20px;\">New Supply</a></h3> \t\t\t\t"; } else { // line 10 echo "\t\t\t\t\t<h3>Supplies <a href=\""; echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("supply"); echo "\" class=\"btn btn-primary\" style=\"margin-left: 20px;\">New Supply</a></h3> \t\t\t\t"; } // line 12 echo "\t\t\t\t \t\t\t\t<table class=\"table table-striped\" id=\"rowSelection\"> \t\t\t\t\t<thead> \t\t\t\t\t\t<tr> \t\t\t\t\t\t\t"; // line 17 echo "\t\t\t\t\t\t\t<th>Supplier</th> \t\t\t\t\t\t\t<th>Total</th> \t\t\t\t\t\t\t<th>Date</th> \t\t\t\t\t\t</tr> \t\t\t\t\t</thead> \t\t\t\t\t<tbody> \t\t\t\t\t\t"; // line 23 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["supplies"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 24 echo "\t\t\t\t\t\t\t<tr class=\"clickable-row\" data-href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("supplyitems", ["id" => twig_get_attribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 24)]), "html", null, true); echo "\" style=\"cursor: pointer;\"> \t\t\t\t\t\t\t\t"; // line 26 echo "\t\t\t\t\t\t\t\t<td>"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "supplier", [], "any", false, false, false, 26), "name", [], "any", false, false, false, 26), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t<td>"; // line 27 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "total", [], "any", false, false, false, 27), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t<td>"; // line 28 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "date", [], "any", false, false, false, 28), "d/m/Y H:i:s"), "html", null, true); echo "</td> \t\t\t\t\t\t\t</tr> \t\t\t\t\t\t"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 31 echo "\t\t\t\t\t</tbody> \t\t\t\t</table> \t\t\t\t"; // line 33 if (array_key_exists("supplier", $context)) { // line 34 echo "\t\t\t\t\t<a class=\"btn btn-danger\" href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("deletesupplier", ["id" => twig_get_attribute($this->env, $this->source, ($context["supplier"] ?? null), "id", [], "any", false, false, false, 34)]), "html", null, true); echo "\" id=\"confirmdelete\">Delete Supplier</a> \t\t\t\t"; } // line 36 echo "\t\t\t</div> \t\t</div> \t</div> "; } public function getTemplateName() { return "Stock/supplies.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 124 => 36, 118 => 34, 116 => 33, 112 => 31, 103 => 28, 99 => 27, 94 => 26, 89 => 24, 85 => 23, 77 => 17, 71 => 12, 65 => 10, 57 => 8, 55 => 7, 50 => 4, 46 => 3, 35 => 1,); } public function getSourceContext() { return new Source("", "Stock/supplies.html.twig", "/var/www/html/amply/templates/Stock/supplies.html.twig"); } }