/
home
/
obinna
/
html
/
mixchief_app
/
var
/
cache
/
prod
/
twig
/
db
/
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; /* Orders/order.html.twig */ class __TwigTemplate_2b378e85ed7d2c82cb1fe311f98b900555ccc321677259f8527292b829be3ecc 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", "Orders/order.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>Sale 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\">Sale ID</td> \t\t\t\t\t\t\t\t<td>000"; // line 13 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["order"] ?? 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\">Date</td> \t\t\t\t\t\t\t\t<td>"; // line 17 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["order"] ?? null), "date", [], "any", false, false, false, 17), "d/m/Y h:i:s A"), "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\">Last Modified</td> \t\t\t\t\t\t\t\t<td>"; // line 21 ((twig_get_attribute($this->env, $this->source, ($context["order"] ?? null), "modified", [], "any", false, false, false, 21)) ? (print (twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["order"] ?? null), "modified", [], "any", false, false, false, 21), "d/m/Y h:i:s A"), "html", null, true))) : (print (""))); 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\">Amount</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, ($context["order"] ?? null), "amount", [], "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<tr> \t\t\t\t\t\t\t\t<td scope=\"row\">Status</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["order"] ?? null), "status", [], "any", false, false, false, 29), "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\">Payment</td> \t\t\t\t\t\t\t\t<td>"; // line 33 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["order"] ?? null), "payment", [], "any", false, false, false, 33), "html", null, true); echo "</td> \t\t\t\t\t\t\t</tr> \t\t\t\t\t\t</table> \t\t\t\t\t\t<a style=\"width: 100%\" class=\"btn btn-danger\" href=\""; // line 36 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("deleteorder", ["id" => twig_get_attribute($this->env, $this->source, ($context["order"] ?? null), "id", [], "any", false, false, false, 36)]), "html", null, true); echo "\">Delete Sale</a> \t\t\t\t\t</div> \t\t\t\t</div> \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\"> \t\t\t\t\t\t<h3>Sale Items</h3> \t\t\t\t\t</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>Quantity</th> \t\t\t\t\t\t\t\t<th>Price</th> \t\t\t\t\t\t\t\t<th class=\"col-sm-hidden\">Discount</th> \t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t"; // line 53 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["orderitems"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 54 echo "\t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t\t<td>"; // line 55 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 55), "html", null, true); echo "</td> \t\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"], "quantity", [], "any", false, false, false, 56), "html", null, true); echo "</td> \t\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"], "price", [], "any", false, false, false, 57), "html", null, true); echo "</td> \t\t\t\t\t\t\t\t\t<td class=\"col-sm-hidden\">"; // line 58 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "discount", [], "any", false, false, false, 58), "html", null, true); echo "</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['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 61 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\t \t\t</div> \t\t<a class=\"btn btn-warning\" href=\""; // line 68 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("orders"); echo "\"> \t\t\t<i class=\"fa fa-arrow-left\"></i> \t\t\tBack to Sales \t\t</a> \t</div> "; } public function getTemplateName() { return "Orders/order.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 159 => 68, 150 => 61, 141 => 58, 137 => 57, 133 => 56, 129 => 55, 126 => 54, 122 => 53, 102 => 36, 96 => 33, 89 => 29, 82 => 25, 75 => 21, 68 => 17, 61 => 13, 50 => 4, 46 => 3, 35 => 1,); } public function getSourceContext() { return new Source("", "Orders/order.html.twig", "/var/www/html/mixchief_app/templates/Orders/order.html.twig"); } }