/
home
/
obinna
/
html
/
mixchief_app
/
var
/
cache
/
dev
/
twig
/
a8
/
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_0a145304c8d2d56e1ef456710759e58e8cf04bfc54472bf08bff85ec82d1b33a 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; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Stock/supplies.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/supplies.html.twig")); $this->parent = $this->loadTemplate("base1.html.twig", "Stock/supplies.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 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, (isset($context["supplier"]) || array_key_exists("supplier", $context) ? $context["supplier"] : (function () { throw new RuntimeError('Variable "supplier" does not exist.', 8, $this->source); })()), "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, (isset($context["supplier"]) || array_key_exists("supplier", $context) ? $context["supplier"] : (function () { throw new RuntimeError('Variable "supplier" does not exist.', 8, $this->source); })()), "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\t<th>Actions</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 24 $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.', 24, $this->source); })())); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 25 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, 25)]), "html", null, true); echo "\" style=\"cursor: pointer;\"> \t\t\t\t\t\t\t\t"; // line 27 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, 27), "name", [], "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, $context["item"], "total", [], "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_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "date", [], "any", false, false, false, 29), "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 edit-row link-warning\" href=\""; // line 31 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("editsupply", ["id" => twig_get_attribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 31)]), "html", null, true); echo "\"><i class=\"fa fa-edit\"></i></a> \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("deletesupply", ["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\t"; // line 38 if (array_key_exists("supplier", $context)) { // line 39 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, (isset($context["supplier"]) || array_key_exists("supplier", $context) ? $context["supplier"] : (function () { throw new RuntimeError('Variable "supplier" does not exist.', 39, $this->source); })()), "id", [], "any", false, false, false, 39)]), "html", null, true); echo "\" id=\"confirmdelete\">Delete Supplier</a> \t\t\t\t"; } // line 41 echo "\t\t\t</div> \t\t</div> \t</div> "; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof); } public function getTemplateName() { return "Stock/supplies.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 153 => 41, 147 => 39, 145 => 38, 141 => 36, 131 => 32, 127 => 31, 122 => 29, 118 => 28, 113 => 27, 108 => 25, 104 => 24, 95 => 17, 89 => 12, 83 => 10, 75 => 8, 73 => 7, 68 => 4, 58 => 3, 35 => 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{% if supplier is defined %} \t\t\t\t\t<h3>{{ supplier.name }} Supplies <a href=\"{{ path('supply', {\"supplierId\": supplier.id}) }}\" class=\"btn btn-primary\" style=\"margin-left: 20px;\">New Supply</a></h3> \t\t\t\t{% else %} \t\t\t\t\t<h3>Supplies <a href=\"{{ path('supply') }}\" class=\"btn btn-primary\" style=\"margin-left: 20px;\">New Supply</a></h3> \t\t\t\t{% endif %} \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>Name</th> #} \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\t<th>Actions</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 class=\"clickable-row\" data-href=\"{{ path('supplyitems', {'id': item.id }) }}\" style=\"cursor: pointer;\"> \t\t\t\t\t\t\t\t{# <td>{{ item.name }}</td> #} \t\t\t\t\t\t\t\t<td>{{ item.supplier.name }}</td> \t\t\t\t\t\t\t\t<td>{{ item.total }}</td> \t\t\t\t\t\t\t\t<td>{{ item.date|date('d/m/Y H:i:s') }}</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 edit-row link-warning\" href=\"{{ path('editsupply', {'id': item.id }) }}\"><i class=\"fa fa-edit\"></i></a> \t\t\t\t\t\t\t\t\t<a class=\"action-icon delete-row link-danger\" href=\"{{ path('deletesupply', {'id': item.id }) }}\"><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{% endfor %} \t\t\t\t\t</tbody> \t\t\t\t</table> \t\t\t\t{% if supplier is defined %} \t\t\t\t\t<a class=\"btn btn-danger\" href=\"{{ path('deletesupplier', {'id': supplier.id }) }}\" id=\"confirmdelete\">Delete Supplier</a> \t\t\t\t{% endif %} \t\t\t</div> \t\t</div> \t</div> {% endblock %}", "Stock/supplies.html.twig", "/var/www/html/mixchief_app/templates/Stock/supplies.html.twig"); } }