/
var
/
www
/
html
/
amply
/
var
/
cache
/
prod
/
twig
/
a4
/
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/stocksupplies.html.twig */ class __TwigTemplate_ec0186819e8de82adee14fd25c7fe714cd9d02610ff549e823175e9b0b3c5c85 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/stocksupplies.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<h3>"; // line 7 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["stock"] ?? null), "name", [], "any", false, false, false, 7), "html", null, true); echo " Supply Items </h3> \t\t\t\t"; // line 8 if (($context["supplies"] ?? null)) { // line 9 echo "\t\t\t\t\t<a style=\"margin-bottom: 15px;\" href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("supply", ["supplierId" => twig_get_attribute($this->env, $this->source, (($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = ($context["supplies"] ?? null)) && is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) || $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof ArrayAccess ? ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4[0] ?? null) : null), "supplier_id", [], "any", false, false, false, 9)]), "html", null, true); echo "\" class=\"btn btn-primary\">New Supply</a> \t\t\t\t"; } else { // line 11 echo "\t\t\t\t\t<a style=\"margin-bottom: 15px;\" href=\""; echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("supply"); echo "\" class=\"btn btn-primary\">New Supply</a> \t\t\t\t"; } // line 13 echo " \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<th>Date</th> \t\t\t\t\t\t\t"; // line 19 echo "\t\t\t\t\t\t\t<th>Supplier</th> \t\t\t\t\t\t\t<th>Quantity</th> \t\t\t\t\t\t\t<th>Amount</th> \t\t\t\t\t\t\t<th>Action</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 26 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["supplies"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 27 echo "\t\t\t\t\t\t\t<tr> \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"), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t"; // line 30 echo "\t\t\t\t\t\t\t\t<td>"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "supplier", [], "any", false, false, false, 30), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t<td>"; // line 31 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "quantity", [], "any", false, false, false, 31), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t<td>"; // line 32 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "amount", [], "any", false, false, false, 32), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t<td> \t\t\t\t\t\t\t\t\t<a class=\"btn btn-primary\" href=\""; // line 34 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"], "supply_id", [], "any", false, false, false, 34)]), "html", null, true); echo "\"> \t\t\t\t\t\t\t\t\t\tSupply Details \t\t\t\t\t\t\t\t\t</a> \t\t\t\t\t\t\t\t</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 40 echo "\t\t\t\t\t</tbody> \t\t\t\t</table> \t\t\t\t<a class=\"btn btn-danger\" href=\""; // line 42 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("stock"); echo "\"> \t\t\t\t\t<i class=\"fa fa-arrow-left\"></i> \t\t\t\t</a> \t\t\t</div> \t\t</div> \t</div> "; } public function getTemplateName() { return "Stock/stocksupplies.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 130 => 42, 126 => 40, 114 => 34, 109 => 32, 105 => 31, 100 => 30, 96 => 28, 93 => 27, 89 => 26, 80 => 19, 73 => 13, 67 => 11, 61 => 9, 59 => 8, 55 => 7, 50 => 4, 46 => 3, 35 => 1,); } public function getSourceContext() { return new Source("", "Stock/stocksupplies.html.twig", "/var/www/html/amply/templates/Stock/stocksupplies.html.twig"); } }