/
home
/
obinna
/
html
/
boazapp
/
var
/
cache
/
prod
/
twig
/
f2
/
Upload File
HOME
<?php use Twig\Environment; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; use Twig\Extension\CoreExtension; 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; /* cargo/view.html.twig */ class __TwigTemplate_6859b182f1e1ec4b46300cbf1b0ceb4807fe0374812fc5e42d0994fb3479752b extends Template { private $source; private $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'content' => [$this, 'block_content'], 'javascript' => [$this, 'block_javascript'], ]; } 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", "cargo/view.html.twig", 1); yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks)); } // line 3 public function block_content($context, array $blocks = []) { $macros = $this->macros; // line 4 yield "\t<div class=\"content\"> \t <div class=\"container-fluid\"> \t <div class=\"row\"> \t <div class=\"col-md-12\"> \t <div class=\"card\"> \t <div class=\"header\"> \t <h4 class=\"title\">Cargo</h4> \t <h3 class=\"title pull-right\"><a href=\""; // line 11 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("generate_release_from_cargo", ["id" => CoreExtension::getAttribute($this->env, $this->source, ($context["cargo"] ?? null), "id", [], "any", false, false, false, 11)]), "html", null, true); yield "\">Generate Release</a></h3> \t <h4 class=\"title\"><a href=\""; // line 12 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("subCargo", ["id" => CoreExtension::getAttribute($this->env, $this->source, ($context["cargo"] ?? null), "id", [], "any", false, false, false, 12)]), "html", null, true); yield "\">Add</a></h4> \t </div> \t <div class=\"content table-responsive table-full-width\"> <table class=\"table table-hover\"> \t\t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t\t\t<td scope=\"row\">Seller</td> \t\t\t\t\t\t\t\t\t\t<td>"; // line 18 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["cargo"] ?? null), "seller", [], "any", false, false, false, 18), "html", null, true); yield "</td> \t\t\t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t\t\t<td scope=\"row\">Product</td> \t\t\t\t\t\t\t\t\t\t<td>"; // line 22 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["cargo"] ?? null), "product", [], "any", false, false, false, 22), "html", null, true); yield "</td> \t\t\t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t\t\t<td scope=\"row\">Initial Quantity</td> \t\t\t\t\t\t\t\t\t\t<td> \t\t\t\t\t\t\t\t\t\t\t"; // line 27 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, ($context["cargo"] ?? null), "initial", [], "any", false, false, false, 27)), "html", null, true); yield " \t\t\t\t\t\t\t\t\t\t</td> \t\t\t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t\t\t<td scope=\"row\">Total Quantity</td> \t\t\t\t\t\t\t\t\t\t<td> \t\t\t\t\t\t\t\t\t\t\t"; // line 33 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, ($context["cargo"] ?? null), "quantity", [], "any", false, false, false, 33)), "html", null, true); yield " \t\t\t\t\t\t\t\t\t\t</td> \t\t\t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t\t\t<td scope=\"row\">Date</td> \t\t\t\t\t\t\t\t\t\t<td>"; // line 38 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, ($context["cargo"] ?? null), "date", [], "any", false, false, false, 38), "d-m-Y"), "html", null, true); yield "</td> \t\t\t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t\t\t<td scope=\"row\">Unreleased</td> \t\t\t\t\t\t\t\t\t\t<td> \t\t\t\t\t\t\t\t\t\t\t"; // line 43 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(($context["unreleased"] ?? null)), "html", null, true); yield " \t\t\t\t\t\t\t\t\t\t</td> \t\t\t\t\t\t\t\t\t</tr> \t\t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t\t\t<td scope=\"row\">Unloaded</td> \t\t\t\t\t\t\t\t\t\t<td> \t\t\t\t\t\t\t\t\t\t\t"; // line 50 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(($context["unloaded"] ?? null)), "html", null, true); yield " \t\t\t\t\t\t\t\t\t\t</td> \t\t\t\t\t\t\t\t\t</tr> </table> </div> \t </div> \t </div> \t <div class=\"col-md-12\"> \t <div class=\"card\"> \t <div class=\"header\"> \t <h4 class=\"title\">Add-ons</h4> \t </div> \t <div class=\"content table-responsive table-full-width\"> <table class=\"table table-hover subcargo\"> <thead> <tr> \t\t\t\t\t\t\t <th>ID</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>Actions</th> \t\t\t\t\t\t\t </tr> </thead> <tbody> "; // line 74 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["subcargo"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 75 yield "\t\t\t\t\t\t\t\t\t\t\t<tr class=\"tableRow\"> \t\t\t\t\t\t\t\t <td>"; // line 76 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 76), "html", null, true); yield "</td> \t\t\t\t\t\t\t\t <td> \t\t\t\t\t\t\t\t \t"; // line 78 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "quantity", [], "any", false, false, false, 78)), "html", null, true); yield " \t\t\t\t\t\t\t\t </td> \t\t\t\t\t\t\t\t <td>"; // line 80 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "date", [], "any", false, false, false, 80), "html", null, true); yield "</td> \t\t\t\t\t\t\t\t <td><a href=\""; // line 81 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("deleteSubCargo", ["cargo" => CoreExtension::getAttribute($this->env, $this->source, ($context["cargo"] ?? null), "id", [], "any", false, false, false, 81), "subcargo" => CoreExtension::getAttribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 81)]), "html", null, true); yield "\"><i class=\"fa fa-trash\"></i></a></td> \t\t\t\t\t\t\t\t </tr> \t\t\t\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 84 yield " </tbody> </table> </div> \t </div> \t </div> \t <div class=\"col-md-12\"> \t <div class=\"card\"> \t <div class=\"header\"> \t <h4 class=\"title\">Release Orders</h4> \t </div> \t <div class=\"content table-responsive table-full-width\"> <table class=\"table table-hover release\"> <thead> <tr> \t\t\t\t\t\t\t <th>ID</th> \t\t\t\t\t\t\t <th>Customer</th> \t\t\t\t\t\t\t <th>Quantity</th> \t\t\t\t\t\t\t <th>Bank</th> \t\t\t\t\t\t\t <th>Date</th> \t\t\t\t\t\t\t <th>Status</th> \t\t\t\t\t\t\t <th>Action</th> \t\t\t\t\t\t\t </tr> </thead> <tbody> "; // line 108 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["release"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 109 yield "\t\t\t\t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t\t <td>"; // line 110 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 110), "html", null, true); yield "</td> \t\t\t\t\t\t\t\t <td>"; // line 111 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "customer", [], "any", false, false, false, 111), "html", null, true); yield "</td> \t\t\t\t\t\t\t\t <td> \t\t\t\t\t\t\t\t \t"; // line 113 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "quantity", [], "any", false, false, false, 113)), "html", null, true); yield " \t\t\t\t\t\t\t\t </td> \t\t\t\t\t\t\t\t <td>"; // line 115 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "bank", [], "any", false, false, false, 115), "html", null, true); yield "</td> \t\t\t\t\t\t\t\t <td>"; // line 116 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "date", [], "any", false, false, false, 116), "html", null, true); yield "</td> \t\t\t\t\t\t\t\t <td>"; // line 117 if (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "isLoaded", [], "any", false, false, false, 117)) { yield "Loaded"; } yield "</td> \t\t\t\t\t\t\t\t <td><a href=\""; // line 118 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("viewRelease", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 118)]), "html", null, true); yield "\">View Release Order</a></td> \t\t\t\t\t\t\t\t </tr> \t\t\t\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 121 yield " </tbody> </table> </div> \t </div> \t </div> \t </div> \t </div> \t</div> "; return; yield ''; } // line 131 public function block_javascript($context, array $blocks = []) { $macros = $this->macros; yield "\t<script> \t\t\$(document).ready(function() { \t\t \$('.subcargo, .release').DataTable(); \t\t}); \t</script> "; return; yield ''; } /** * @codeCoverageIgnore */ public function getTemplateName() { return "cargo/view.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable() { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo() { return array ( 264 => 131, 251 => 121, 242 => 118, 236 => 117, 232 => 116, 228 => 115, 223 => 113, 218 => 111, 214 => 110, 211 => 109, 207 => 108, 181 => 84, 172 => 81, 168 => 80, 163 => 78, 158 => 76, 155 => 75, 151 => 74, 124 => 50, 114 => 43, 106 => 38, 98 => 33, 89 => 27, 81 => 22, 74 => 18, 65 => 12, 61 => 11, 52 => 4, 48 => 3, 37 => 1,); } public function getSourceContext() { return new Source("", "cargo/view.html.twig", "/var/www/html/boazapp/templates/cargo/view.html.twig"); } }