/
home
/
obinna
/
html
/
mixchief_app
/
var
/
cache
/
dev
/
twig
/
17
/
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/itemSupplies.html.twig */ class __TwigTemplate_a7749c8f5af0fb8c003a39d79da22de989754e1d9469dbaf3e2cac3d79bdddfb 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; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Stock/itemSupplies.html.twig")); $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Stock/itemSupplies.html.twig")); $this->parent = $this->loadTemplate("base1.html.twig", "Stock/itemSupplies.html.twig", 1); $this->parent->display($context, array_merge($this->blocks, $blocks)); $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof); $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); } // line 3 public function block_content($context, array $blocks = []) { $macros = $this->macros; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content")); $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content")); // line 4 echo "\t<div class=\"content\"> \t\t<div class=\"card\"> \t\t\t<div class=\"card-body\"> \t\t\t\t"; // line 8 echo " \t\t\t\t<div class=\"rows\"> \t\t\t\t\t<div class=\"cols pull-right\"> \t\t\t\t\t\t<a class=\"btn btn-danger action-icon\" href=\""; // line 11 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("deletesupply", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["supply"]) || array_key_exists("supply", $context) ? $context["supply"] : (function () { throw new RuntimeError('Variable "supply" does not exist.', 11, $this->source); })()), "id", [], "any", false, false, false, 11)]), "html", null, true); echo "\"><i class=\"fa fa-trash\"></i>Delete Supply</a> \t\t\t\t\t\t<a class=\"btn btn-primary pull-right-push\" href=\""; // line 12 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("editsupply", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["supply"]) || array_key_exists("supply", $context) ? $context["supply"] : (function () { throw new RuntimeError('Variable "supply" does not exist.', 12, $this->source); })()), "id", [], "any", false, false, false, 12)]), "html", null, true); echo "\">Edit Supply</a> \t\t\t\t\t</div> \t\t\t\t</div> \t\t\t\t<div class=\"row\" style=\"padding: 50px 50px 0;\"> \t\t\t\t\t<div class=\"col-md-6\"> \t\t\t\t\t\t<h1>"; // line 17 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["supply"]) || array_key_exists("supply", $context) ? $context["supply"] : (function () { throw new RuntimeError('Variable "supply" does not exist.', 17, $this->source); })()), "supplier", [], "any", false, false, false, 17), "name", [], "any", false, false, false, 17), "html", null, true); echo "</h1> \t\t\t\t\t</div> \t\t\t\t\t<div class=\"col-md-6 text-right\"> \t\t\t\t\t\t<h4>"; // line 20 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["supply"]) || array_key_exists("supply", $context) ? $context["supply"] : (function () { throw new RuntimeError('Variable "supply" does not exist.', 20, $this->source); })()), "date", [], "any", false, false, false, 20), "D, d M Y"), "html", null, true); echo "</h4> \t\t\t\t\t</div> \t\t\t\t\t"; // line 39 echo " \t\t\t\t</div> \t\t\t\t<br> \t\t\t\t \t\t\t\t<br><br> \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>Name</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"; // line 51 echo "\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 54 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["supplies"]) || array_key_exists("supplies", $context) ? $context["supplies"] : (function () { throw new RuntimeError('Variable "supplies" does not exist.', 54, $this->source); })())); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 55 echo "\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t<td>"; // line 56 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "item_name", [], "any", false, false, false, 56), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t<td>"; // line 57 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "quantity", [], "any", false, false, false, 57), "html", null, true); echo " "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "unit", [], "any", false, false, false, 57), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t<td>"; // line 58 echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "amount", [], "any", false, false, false, 58)), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t"; // line 64 echo "\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 66 echo "\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t<td></td><td><strong>Total</strong></td><td><strong>"; // line 67 echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["supply"]) || array_key_exists("supply", $context) ? $context["supply"] : (function () { throw new RuntimeError('Variable "supply" does not exist.', 67, $this->source); })()), "total", [], "any", false, false, false, 67)), "html", null, true); echo "</strong></td> \t\t\t\t\t\t</tr> \t\t\t\t\t</tbody> \t\t\t\t</table> \t\t\t\t<a class=\"btn btn-danger\" href=\""; // line 71 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("supplies"); echo "\"> \t\t\t\t\t<i class=\"fa fa-arrow-left\"></i> \t\t\t\t\tSupplies \t\t\t\t</a> \t\t\t</div> \t\t</div> \t</div> "; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof); } // line 80 public function block_javascripts($context, array $blocks = []) { $macros = $this->macros; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts")); $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts")); // line 81 echo "\t"; $this->displayParentBlock("javascripts", $context, $blocks); echo " \t<script src=\""; // line 82 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/admin.js"), "html", null, true); echo "\"></script> "; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof); } public function getTemplateName() { return "Stock/itemSupplies.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 191 => 82, 186 => 81, 176 => 80, 158 => 71, 151 => 67, 148 => 66, 141 => 64, 137 => 58, 131 => 57, 127 => 56, 124 => 55, 120 => 54, 115 => 51, 102 => 39, 97 => 20, 91 => 17, 83 => 12, 79 => 11, 74 => 8, 69 => 4, 59 => 3, 36 => 1,); } public function getSourceContext() { return new Source("{% extends 'base1.html.twig' %} {% block content %} \t<div class=\"content\"> \t\t<div class=\"card\"> \t\t\t<div class=\"card-body\"> \t\t\t\t{# <h3>{{ supply.name }} Supply Items </h3> #} \t\t\t\t<div class=\"rows\"> \t\t\t\t\t<div class=\"cols pull-right\"> \t\t\t\t\t\t<a class=\"btn btn-danger action-icon\" href=\"{{ path('deletesupply', {'id': supply.id }) }}\"><i class=\"fa fa-trash\"></i>Delete Supply</a> \t\t\t\t\t\t<a class=\"btn btn-primary pull-right-push\" href=\"{{ path('editsupply', {'id': supply.id }) }}\">Edit Supply</a> \t\t\t\t\t</div> \t\t\t\t</div> \t\t\t\t<div class=\"row\" style=\"padding: 50px 50px 0;\"> \t\t\t\t\t<div class=\"col-md-6\"> \t\t\t\t\t\t<h1>{{ supply.supplier.name }}</h1> \t\t\t\t\t</div> \t\t\t\t\t<div class=\"col-md-6 text-right\"> \t\t\t\t\t\t<h4>{{ supply.date|date('D, d M Y') }}</h4> \t\t\t\t\t</div> \t\t\t\t\t{# <div class=\"col-sm-12 col-md-6\"> \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>Supplier: </td> \t\t\t\t\t\t\t\t<td>{{ supply.supplier.name }}</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>Supply Total: </td> \t\t\t\t\t\t\t\t<td>{{ supply.total }}</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>Supply Date: </td> \t\t\t\t\t\t\t\t<td>{{ supply.date|date('d/m/Y') }}</td> \t\t\t\t\t\t\t</tr> \t\t\t\t\t\t</table> \t\t\t\t\t\t \t\t\t\t\t</div> #} \t\t\t\t</div> \t\t\t\t<br> \t\t\t\t \t\t\t\t<br><br> \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>Name</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>Remove</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{% for item in supplies %} \t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t<td>{{ item.item_name }}</td> \t\t\t\t\t\t\t\t<td>{{ item.quantity }} {{ item.unit }}</td> \t\t\t\t\t\t\t\t<td>{{ item.amount|number_format }}</td> \t\t\t\t\t\t\t\t{# <td> \t\t\t\t\t\t\t\t\t<a class=\"btn btn-danger delete-item\" href=\"{{ path('deleteSupplyItem', {'id': item.id}) }}\" data-id=\"{{ item.id }}\"> \t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-times\"></i> \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{% endfor %} \t\t\t\t\t\t<tr> \t\t\t\t\t\t\t<td></td><td><strong>Total</strong></td><td><strong>{{ supply.total|number_format }}</strong></td> \t\t\t\t\t\t</tr> \t\t\t\t\t</tbody> \t\t\t\t</table> \t\t\t\t<a class=\"btn btn-danger\" href=\"{{ path('supplies') }}\"> \t\t\t\t\t<i class=\"fa fa-arrow-left\"></i> \t\t\t\t\tSupplies \t\t\t\t</a> \t\t\t</div> \t\t</div> \t</div> {% endblock %} {% block javascripts %} \t{{ parent() }} \t<script src=\"{{ asset('js/admin.js') }}\"></script> {% endblock %}", "Stock/itemSupplies.html.twig", "/var/www/html/mixchief_app/templates/Stock/itemSupplies.html.twig"); } }