/
home
/
obinna
/
html
/
mixchief_app
/
var
/
cache
/
prod
/
twig
/
c0
/
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/spillage.html.twig */ class __TwigTemplate_5a410faf47e5b0761a2f576c258e1593afee9ceee17a88e602433e02dfab72c0 extends Template { private $source; private $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'stylesheets' => [$this, 'block_stylesheets'], '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", "Stock/spillage.html.twig", 1); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 3 public function block_stylesheets($context, array $blocks = []) { $macros = $this->macros; // line 4 echo "\t"; $this->displayParentBlock("stylesheets", $context, $blocks); echo " \t<link rel=\"stylesheet\" href=\""; // line 5 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("css/jquery-ui.css"), "html", null, true); echo "\"> "; } // line 8 public function block_content($context, array $blocks = []) { $macros = $this->macros; // line 9 echo "\t<div class=\"content\"> \t\t<div class=\"card\"> \t\t\t<div class=\"card-body\"> \t\t\t\t<h3>Spillages/Test/Training</h3> \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<th>Reason</th> \t\t\t\t\t\t\t<th>Item</th> \t\t\t\t\t\t\t<th>Quantity</th> \t\t\t\t\t\t\t<th>Date</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 25 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["spillages"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 26 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, 26)]), "html", null, true); echo "\" style=\"cursor: pointer;\"> \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"], "reason", [], "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_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "stock", [], "any", false, false, false, 28), "name", [], "any", false, false, false, 28), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t<td>"; // line 29 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "quantity", [], "any", false, false, false, 29), "html", null, true); echo " "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "stock", [], "any", false, false, false, 29), "unit", [], "any", false, false, false, 29), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t<td>"; // line 30 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "created", [], "any", false, false, false, 30), "d/m/Y H:i:s"), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t<td class=\"flex-big\" style=\"gap: 5px;\"> \t\t\t\t\t\t\t\t\t<a class=\"action-icon delete-row link-danger\" href=\""; // line 32 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("delete_spillage", ["id" => twig_get_attribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 32)]), "html", null, true); echo "\"><i class=\"fa fa-times\"></i></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 36 echo "\t\t\t\t\t</tbody> \t\t\t\t</table> \t\t\t</div> \t\t</div> <div class=\"card col-sm-12 col-md-12 col-lg-6\"> <div class=\"card-header\"> <h3>Add Spillage/Training/Test</h3> </div> <div class=\"card-body\"> <form action=\""; // line 45 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("post_spillage"); echo "\" method=\"POST\"> <div class=\"form-group\"> <select class=\"form-control stock-item select-list ajaxSelect\" name=\"stock\"> <option value=\"\">Select Inventory Item</option> "; // line 49 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["inventory"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 50 echo "\t\t\t\t\t\t\t\t<option value=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 50), "html", null, true); echo "\" data-unit=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "unit", [], "any", false, false, false, 50), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 50), "html", null, true); echo " ("; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "quantity", [], "any", false, false, false, 50), "html", null, true); echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "unit", [], "any", false, false, false, 50), "html", null, true); echo ")</option> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 52 echo " </select> </div> <div class=\"form-group\"> <input type=\"text\" name=\"reason\" class=\"form-control\" placeholder=\"Reason\"> </div> <div class=\"form-group\"> <input type=\"text\" name=\"quantity\" class=\"form-control\" placeholder=\"Quantity\"> </div> <div class=\"form-group\"> <input type=\"text\" name=\"date\" class=\"form-control\" placeholder=\"Date\" id=\"datepicker\" autocomplete=\"off\" required> </div> <input type=\"submit\" name=\"submit\" value=\"Save\" class=\"btn-primary\"> </form> </div> </div> \t</div> "; } // line 70 public function block_javascripts($context, array $blocks = []) { $macros = $this->macros; // line 71 echo "\t"; $this->displayParentBlock("javascripts", $context, $blocks); echo " \t<script src=\""; // line 72 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/admin.js"), "html", null, true); echo "\"></script> \t<script> \t\t \t\t\$(document).ready(function() { \t\t\t\$( \"#datepicker\" ).datepicker(); \t\t\t\$( \"#datepicker\" ).datepicker(\"option\", \"dateFormat\", \"dd/mm/yy\"); \t\t}); \t\t \t\tdocument.querySelector('.select-list').addEventListener('change', function(e) { \t\t\tconsole.log('hello') \t\t\tconst option = e.target \t\t\tconsole.log(option.dataset.unit) \t\t}) </script> "; } public function getTemplateName() { return "Stock/spillage.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 190 => 72, 185 => 71, 181 => 70, 161 => 52, 145 => 50, 141 => 49, 134 => 45, 123 => 36, 113 => 32, 108 => 30, 102 => 29, 98 => 28, 94 => 27, 89 => 26, 85 => 25, 67 => 9, 63 => 8, 57 => 5, 52 => 4, 48 => 3, 37 => 1,); } public function getSourceContext() { return new Source("", "Stock/spillage.html.twig", "/var/www/html/mixchief_app/templates/Stock/spillage.html.twig"); } }