/
home
/
obinna
/
html
/
mixchief_app
/
var
/
cache
/
prod
/
twig
/
cc
/
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/item.html.twig */ class __TwigTemplate_eb40f435a8b151e69f805e6270faac3e01cd20fd7c5eb87c9217f2b5d381d737 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", "Inventory/item.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\"><h3>"; // line 8 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "name", [], "any", false, false, false, 8), "html", null, true); echo " Details</h3></div> \t\t\t\t\t<div class=\"card-body\"> \t\t\t\t\t\t<table class=\"table table-striped\"> \t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t<td scope=\"row\">ID</td> \t\t\t\t\t\t\t\t<td>"; // line 13 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "id", [], "any", false, false, false, 13), "html", null, true); echo "</td> \t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t<td scope=\"row\">Name</td> \t\t\t\t\t\t\t\t<td>"; // line 17 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "name", [], "any", false, false, false, 17), "html", null, true); echo "</td> \t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t<td scope=\"row\">Price</td> \t\t\t\t\t\t\t\t<td>"; // line 21 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "sellingPrice", [], "any", false, false, false, 21), "html", null, true); echo "</td> \t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t<td scope=\"row\">Category</td> \t\t\t\t\t\t\t\t<td>"; // line 25 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "category", [], "any", false, false, false, 25), "name", [], "any", false, false, false, 25), "html", null, true); echo "</td> \t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t"; // line 27 if (twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "img", [], "any", false, false, false, 27)) { // line 28 echo "\t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t\t<td scope=\"row\">Image</td> \t\t\t\t\t\t\t\t\t<td><img style=\"width: 70px\" src=\""; // line 30 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "img", [], "any", false, false, false, 30), "html", null, true); echo "\" alt=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "name", [], "any", false, false, false, 30), "html", null, true); echo "'s image\"></td> \t\t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t"; } // line 33 echo "\t\t\t\t\t\t</table> \t\t\t\t\t</div> \t\t\t\t\t<a class=\"btn btn-danger action-icon\" href=\""; // line 35 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("removeitem", ["id" => twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "id", [], "any", false, false, false, 35)]), "html", null, true); echo "\"><i class=\"fa fa-trash\"></i>Delete Item</a> \t\t\t\t</div> \t\t\t\t<br> \t\t\t\t<hr> \t\t\t\t<a class=\"btn btn-primary\" href=\""; // line 39 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("editItem", ["id" => twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "id", [], "any", false, false, false, 39)]), "html", null, true); echo "\">Edit Item/Add Inventory Items</a> \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\"><h3>Item Parts</h3></div> \t\t\t\t\t<div class=\"card-body\"> \t\t\t\t\t\t<table class=\"table table-striped\"> \t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t<th>Name</th> \t\t\t\t\t\t\t\t<th>Portions</th> \t\t\t\t\t\t\t\t<th>Actions</th> \t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t"; // line 51 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["itempart"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["items"]) { // line 52 echo "\t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t\t<td>"; // line 53 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["items"], "name", [], "any", false, false, false, 53), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t\t<td>"; // line 54 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["items"], "portions", [], "any", false, false, false, 54), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t\t<td><a class=\"btn btn-danger\" href=\""; // line 55 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("removeStockItem", ["id" => twig_get_attribute($this->env, $this->source, $context["items"], "id", [], "any", false, false, false, 55)]), "html", null, true); echo "\">Remove</a></td> \t\t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['items'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 58 echo "\t\t\t\t\t\t</table> \t\t\t\t\t</div> \t\t\t\t</div> \t\t\t</div> \t\t</div> \t\t<a class=\"btn btn-danger\" href=\""; // line 63 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("item"); echo "\" style=\"margin-top: 10px;\"> \t\t\t<i class=\"fa fa-arrow-left\"></i> \t\t\tBack to Items \t\t</a> \t</div> "; } public function getTemplateName() { return "Inventory/item.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 161 => 63, 154 => 58, 145 => 55, 141 => 54, 137 => 53, 134 => 52, 130 => 51, 115 => 39, 108 => 35, 104 => 33, 96 => 30, 92 => 28, 90 => 27, 85 => 25, 78 => 21, 71 => 17, 64 => 13, 56 => 8, 50 => 4, 46 => 3, 35 => 1,); } public function getSourceContext() { return new Source("", "Inventory/item.html.twig", "/var/www/html/mixchief_app/templates/Inventory/item.html.twig"); } }