/
home
/
obinna
/
html
/
boaz2
/
var
/
cache
/
dev
/
twig
/
f1
/
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; /* release/view.html.twig */ class __TwigTemplate_a35aedeea58c2be3aa6b8e83a72a0155af4182ab0910bdb512fe99348cfc869e 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", "release/view.html.twig")); $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "release/view.html.twig")); $this->parent = $this->loadTemplate("base1.html.twig", "release/view.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<style type=\"text/css\"> \t\t.d-flex { \t\t\tdisplay: flex; \t\t\tjustify-content: space-between; \t\t} \t\tdiv.row>div.col-md-2>h3 { \t\t\tcolor: purple; \t\t} \t</style> \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\">Release Order</h4> \t "; // line 21 if ((isset($context["editable"]) || array_key_exists("editable", $context) ? $context["editable"] : (function () { throw new RuntimeError('Variable "editable" does not exist.', 21, $this->source); })())) { // line 22 echo "\t\t\t\t\t\t\t\t<div class=\"d-flex\"> \t\t\t\t\t\t\t\t\t<h3><a href=\""; // line 23 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("viewCargo", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 23, $this->source); })()), "cargo", [], "any", false, false, false, 23), "id", [], "any", false, false, false, 23), "product" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 23, $this->source); })()), "cargo", [], "any", false, false, false, 23), "product", [], "any", false, false, false, 23)]), "html", null, true); echo "\">Cargo</a></h3> \t\t\t\t\t\t\t\t\t<h3><a href=\""; // line 24 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("editRelease", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 24, $this->source); })()), "id", [], "any", false, false, false, 24)]), "html", null, true); echo "\">Edit Release Order</a></h3> \t\t\t\t\t\t\t\t\t<h3><a href=\""; // line 25 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("deleteRelease", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 25, $this->source); })()), "id", [], "any", false, false, false, 25)]), "html", null, true); echo "\">Delete</a></h3> \t\t\t\t\t\t\t\t</div> <h3 style=\"text-align: center;\"></h3> "; } // line 29 echo "\t </div> \t <div class=\"content\"> \t \t<div class=\"row\"> \t\t<div class=\"col-md-2 col-xs-6\"> \t\t\t<h3>Number: </h3> \t\t</div> \t\t<div class=\"col-md-4 col-xs-6\"> \t\t\t<h3>"; // line 36 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 36, $this->source); })()), "id", [], "any", false, false, false, 36), "html", null, true); echo "</h3> \t\t</div> \t\t\t\t\t\t\t\t<div class=\"col-md-2 col-xs-6\"> \t\t\t<h3>Vendor: </h3> \t\t</div> \t\t<div class=\"col-md-4 col-xs-6\"> \t\t\t<h3>"; // line 42 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 42, $this->source); })()), "cargo", [], "any", false, false, false, 42), "seller", [], "any", false, false, false, 42), "html", null, true); echo "</h3> \t\t</div> \t</div> \t \t<div class=\"row\"> \t\t<div class=\"col-md-2 col-xs-6\"> \t\t\t<h3>Customer: </h3> \t\t</div> \t\t<div class=\"col-md-4 col-xs-6\"> \t\t\t<h3>"; // line 50 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 50, $this->source); })()), "customer", [], "any", false, false, false, 50), "html", null, true); echo "</h3> \t\t</div> \t\t<div class=\"col-md-2 col-xs-6\"> \t\t\t<h3>Product: </h3> \t\t</div> \t\t<div class=\"col-md-4 col-xs-6\"> \t\t\t<h3>"; // line 56 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 56, $this->source); })()), "cargo", [], "any", false, false, false, 56), "product", [], "any", false, false, false, 56), "html", null, true); echo "</h3> \t\t</div> \t</div> \t<div class=\"row\"> \t\t<div class=\"col-md-2 col-xs-6\"> \t\t\t<h3>Quantity: </h3> \t\t</div> \t\t<div class=\"col-md-4 col-xs-6\"> \t\t\t<h3>"; // line 64 echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 64, $this->source); })()), "quantity", [], "any", false, false, false, 64)), "html", null, true); echo "</h3> \t\t</div> \t\t<div class=\"col-md-2 col-xs-6\"> \t\t\t<h3>Depot: </h3> \t\t</div> \t\t<div class=\"col-md-4 col-xs-6\"> \t\t\t<h3>"; // line 70 (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["release"] ?? null), "depot", [], "any", false, true, false, 70), "name", [], "any", true, true, false, 70) && !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["release"] ?? null), "depot", [], "any", false, true, false, 70), "name", [], "any", false, false, false, 70)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["release"] ?? null), "depot", [], "any", false, true, false, 70), "name", [], "any", false, false, false, 70), "html", null, true))) : (print (""))); echo "</h3> \t\t</div> \t</div> \t<div class=\"row\"> \t\t<div class=\"col-md-2 col-xs-6\"> \t\t\t<h3>Date: </h3> \t\t</div> \t\t<div class=\"col-md-4 col-xs-6\"> \t\t\t<h3>"; // line 78 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 78, $this->source); })()), "date", [], "any", false, false, false, 78), "html", null, true); echo "</h3> \t\t</div> \t\t<div class=\"col-md-2 col-xs-6\"> \t\t\t<h3>Bank: </h3> \t\t</div> \t\t<div class=\"col-md-4 col-xs-6\"> \t\t\t<h3>"; // line 84 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 84, $this->source); })()), "bank", [], "any", false, false, false, 84), "html", null, true); echo "</h3> \t\t</div> \t</div> <div class=\"row\"> <div class=\"col-md-2 col-xs-6\"> <h3>Balance: </h3> </div> <div class=\"col-md-4 col-xs-6\"> <h3> "; // line 93 echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 93, $this->source); })()), "quantity", [], "any", false, false, false, 93) - (isset($context["total"]) || array_key_exists("total", $context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.', 93, $this->source); })()))), "html", null, true); echo " </h3> </div> </div> \t<div class=\"row\"> \t\t<div class=\"col-md-2\"> \t\t\t<h3>Ordered By: </h3> \t\t</div> \t\t<div class=\"col-md-2\"> \t\t\t<h3 class=\"sign\"> \t\t\t\t\t\t\t "; // line 103 if (twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 103, $this->source); })()), "signoneid", [], "any", false, false, false, 103)) { // line 104 echo " "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 104, $this->source); })()), "signoneid", [], "any", false, false, false, 104), "name", [], "any", false, false, false, 104), "html", null, true); echo " "; } elseif ((twig_get_attribute($this->env, $this->source, // line 106 (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 106, $this->source); })()), "signthreeid", [], "any", false, false, false, 106) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 106, $this->source); })()), "user", [], "any", false, false, false, 106), "name", [], "any", false, false, false, 106), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 106, $this->source); })()), "signthreeid", [], "any", false, false, false, 106), "name", [], "any", false, false, false, 106))))) { // line 107 echo " "; } else { // line 108 echo " <a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("signRelease", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 108, $this->source); })()), "id", [], "any", false, false, false, 108), "sign" => "ordered"]), "html", null, true); echo "\">Click to Sign</a> "; } // line 110 echo " </h3> \t\t</div> \t\t<div class=\"col-md-2\"> \t\t\t<h3>Authorised By: </h3> \t\t</div> \t\t<div class=\"col-md-2\"> \t\t\t<h3 class=\"sign\"> \t\t\t\t\t\t "; // line 117 if (twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 117, $this->source); })()), "signtwoid", [], "any", false, false, false, 117)) { // line 118 echo " "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 118, $this->source); })()), "signtwoid", [], "any", false, false, false, 118), "name", [], "any", false, false, false, 118), "html", null, true); echo " "; } elseif ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 119 (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 119, $this->source); })()), "user", [], "any", false, false, false, 119), "role", [], "any", false, false, false, 119), "MANAGEMENT"))) { // line 120 echo " <a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("signRelease", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 120, $this->source); })()), "id", [], "any", false, false, false, 120), "sign" => "authorised"]), "html", null, true); echo "\">Click to Sign</a> "; } // line 122 echo " </h3> \t\t</div> \t\t<div class=\"col-md-2\"> \t\t\t<h3>Released By: </h3> \t\t</div> \t\t<div class=\"col-md-2\"> \t\t\t<h3 class=\"sign\"> "; // line 129 if (twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 129, $this->source); })()), "signthreeid", [], "any", false, false, false, 129)) { // line 130 echo " "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 130, $this->source); })()), "signthreeid", [], "any", false, false, false, 130), "name", [], "any", false, false, false, 130), "html", null, true); echo " "; } elseif ((twig_get_attribute($this->env, $this->source, // line 131 (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 131, $this->source); })()), "signoneid", [], "any", false, false, false, 131) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 131, $this->source); })()), "user", [], "any", false, false, false, 131), "name", [], "any", false, false, false, 131), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 131, $this->source); })()), "signoneid", [], "any", false, false, false, 131), "name", [], "any", false, false, false, 131))))) { // line 132 echo " "; } else { // line 133 echo " <a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("signRelease", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["release"]) || array_key_exists("release", $context) ? $context["release"] : (function () { throw new RuntimeError('Variable "release" does not exist.', 133, $this->source); })()), "id", [], "any", false, false, false, 133), "sign" => "released"]), "html", null, true); echo "\">Click to Sign</a> "; } // line 135 echo " </h3> \t\t</div> \t</div> </div> \t </div> \t </div> \t <div class=\"col-md-12\"> \t <div class=\"card\"> \t <div class=\"header\"> \t <h4 class=\"title\">Loaded</h4> \t </div> \t <div class=\"content table-responsive table-full-width\"> <table class=\"table table-hover\"> <thead> <tr> \t\t\t\t\t\t <th>Truck Number</th> <th>Quantity</th> <th>Date</th> <th>Waybill</th> <th>Details</th> <th>Rep</th> <th>Action</th> </tr> </thead> <tbody> "; // line 160 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["load"]) || array_key_exists("load", $context) ? $context["load"] : (function () { throw new RuntimeError('Variable "load" does not exist.', 160, $this->source); })())); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 161 echo "\t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t <td>"; // line 162 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "truck", [], "any", false, false, false, 162), "html", null, true); echo "</td> <td>"; // line 163 echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "quantity", [], "any", false, false, false, 163)), "html", null, true); echo "</td> <td>"; // line 164 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "date", [], "any", false, false, false, 164), "html", null, true); echo "</td> <td>"; // line 165 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "waybill", [], "any", false, false, false, 165), "html", null, true); echo "</td> <td>"; // line 166 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "details", [], "any", false, false, false, 166), "html", null, true); echo "</td> <td>"; // line 167 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "user", [], "any", false, false, false, 167), "name", [], "any", false, false, false, 167), "html", null, true); echo "</td> "; // line 168 if ((twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 168, $this->source); })()), "user", [], "any", false, false, false, 168) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 168, $this->source); })()), "user", [], "any", false, false, false, 168), "role", [], "any", false, false, false, 168), "MANAGEMENT")))) { // line 169 echo " <td><a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("deleteload", ["id" => twig_get_attribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 169)]), "html", null, true); echo "\">Delete</a></td> "; } // line 171 echo " </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 173 echo " </tbody> </table> </div> \t </div> \t </div> \t </div> \t </div> \t</div> "; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof); } public function getTemplateName() { return "release/view.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 353 => 173, 346 => 171, 340 => 169, 338 => 168, 334 => 167, 330 => 166, 326 => 165, 322 => 164, 318 => 163, 314 => 162, 311 => 161, 307 => 160, 280 => 135, 274 => 133, 271 => 132, 269 => 131, 264 => 130, 262 => 129, 253 => 122, 247 => 120, 245 => 119, 240 => 118, 238 => 117, 229 => 110, 223 => 108, 220 => 107, 218 => 106, 212 => 104, 210 => 103, 197 => 93, 185 => 84, 176 => 78, 165 => 70, 156 => 64, 145 => 56, 136 => 50, 125 => 42, 116 => 36, 107 => 29, 100 => 25, 96 => 24, 92 => 23, 89 => 22, 87 => 21, 68 => 4, 58 => 3, 35 => 1,); } public function getSourceContext() { return new Source("{% extends 'base1.html.twig' %} {% block content %} \t<style type=\"text/css\"> \t\t.d-flex { \t\t\tdisplay: flex; \t\t\tjustify-content: space-between; \t\t} \t\tdiv.row>div.col-md-2>h3 { \t\t\tcolor: purple; \t\t} \t</style> \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\">Release Order</h4> \t {% if editable %} \t\t\t\t\t\t\t\t<div class=\"d-flex\"> \t\t\t\t\t\t\t\t\t<h3><a href=\"{{ path('viewCargo', {'id': release.cargo.id, 'product': release.cargo.product}) }}\">Cargo</a></h3> \t\t\t\t\t\t\t\t\t<h3><a href=\"{{ path('editRelease', {'id': release.id}) }}\">Edit Release Order</a></h3> \t\t\t\t\t\t\t\t\t<h3><a href=\"{{ path('deleteRelease', {'id': release.id}) }}\">Delete</a></h3> \t\t\t\t\t\t\t\t</div> <h3 style=\"text-align: center;\"></h3> {% endif %} \t </div> \t <div class=\"content\"> \t \t<div class=\"row\"> \t\t<div class=\"col-md-2 col-xs-6\"> \t\t\t<h3>Number: </h3> \t\t</div> \t\t<div class=\"col-md-4 col-xs-6\"> \t\t\t<h3>{{ release.id }}</h3> \t\t</div> \t\t\t\t\t\t\t\t<div class=\"col-md-2 col-xs-6\"> \t\t\t<h3>Vendor: </h3> \t\t</div> \t\t<div class=\"col-md-4 col-xs-6\"> \t\t\t<h3>{{ release.cargo.seller }}</h3> \t\t</div> \t</div> \t \t<div class=\"row\"> \t\t<div class=\"col-md-2 col-xs-6\"> \t\t\t<h3>Customer: </h3> \t\t</div> \t\t<div class=\"col-md-4 col-xs-6\"> \t\t\t<h3>{{ release.customer }}</h3> \t\t</div> \t\t<div class=\"col-md-2 col-xs-6\"> \t\t\t<h3>Product: </h3> \t\t</div> \t\t<div class=\"col-md-4 col-xs-6\"> \t\t\t<h3>{{ release.cargo.product }}</h3> \t\t</div> \t</div> \t<div class=\"row\"> \t\t<div class=\"col-md-2 col-xs-6\"> \t\t\t<h3>Quantity: </h3> \t\t</div> \t\t<div class=\"col-md-4 col-xs-6\"> \t\t\t<h3>{{ release.quantity|number_format }}</h3> \t\t</div> \t\t<div class=\"col-md-2 col-xs-6\"> \t\t\t<h3>Depot: </h3> \t\t</div> \t\t<div class=\"col-md-4 col-xs-6\"> \t\t\t<h3>{{ release.depot.name ?? '' }}</h3> \t\t</div> \t</div> \t<div class=\"row\"> \t\t<div class=\"col-md-2 col-xs-6\"> \t\t\t<h3>Date: </h3> \t\t</div> \t\t<div class=\"col-md-4 col-xs-6\"> \t\t\t<h3>{{ release.date }}</h3> \t\t</div> \t\t<div class=\"col-md-2 col-xs-6\"> \t\t\t<h3>Bank: </h3> \t\t</div> \t\t<div class=\"col-md-4 col-xs-6\"> \t\t\t<h3>{{ release.bank }}</h3> \t\t</div> \t</div> <div class=\"row\"> <div class=\"col-md-2 col-xs-6\"> <h3>Balance: </h3> </div> <div class=\"col-md-4 col-xs-6\"> <h3> {{ (release.quantity - total)|number_format }} </h3> </div> </div> \t<div class=\"row\"> \t\t<div class=\"col-md-2\"> \t\t\t<h3>Ordered By: </h3> \t\t</div> \t\t<div class=\"col-md-2\"> \t\t\t<h3 class=\"sign\"> \t\t\t\t\t\t\t {% if release.signoneid %} {{ release.signoneid.name }} {% elseif release.signthreeid and (app.user.name == release.signthreeid.name) %} {% else %} <a href=\"{{ path('signRelease', {'id': release.id, 'sign': 'ordered'}) }}\">Click to Sign</a> {% endif %} </h3> \t\t</div> \t\t<div class=\"col-md-2\"> \t\t\t<h3>Authorised By: </h3> \t\t</div> \t\t<div class=\"col-md-2\"> \t\t\t<h3 class=\"sign\"> \t\t\t\t\t\t {% if release.signtwoid %} {{ release.signtwoid.name }} {% elseif app.user.role == 'MANAGEMENT' %} <a href=\"{{ path('signRelease', {'id': release.id, 'sign': 'authorised'}) }}\">Click to Sign</a> {% endif %} </h3> \t\t</div> \t\t<div class=\"col-md-2\"> \t\t\t<h3>Released By: </h3> \t\t</div> \t\t<div class=\"col-md-2\"> \t\t\t<h3 class=\"sign\"> {% if release.signthreeid %} {{ release.signthreeid.name }} {% elseif release.signoneid and (app.user.name == release.signoneid.name) %} {% else %} <a href=\"{{ path('signRelease', {'id': release.id, 'sign': 'released'}) }}\">Click to Sign</a> {% endif %} </h3> \t\t</div> \t</div> </div> \t </div> \t </div> \t <div class=\"col-md-12\"> \t <div class=\"card\"> \t <div class=\"header\"> \t <h4 class=\"title\">Loaded</h4> \t </div> \t <div class=\"content table-responsive table-full-width\"> <table class=\"table table-hover\"> <thead> <tr> \t\t\t\t\t\t <th>Truck Number</th> <th>Quantity</th> <th>Date</th> <th>Waybill</th> <th>Details</th> <th>Rep</th> <th>Action</th> </tr> </thead> <tbody> {% for item in load %} \t\t\t\t\t\t\t\t<tr> \t\t\t\t\t\t\t <td>{{ item.truck }}</td> <td>{{ item.quantity|number_format }}</td> <td>{{ item.date }}</td> <td>{{ item.waybill }}</td> <td>{{ item.details }}</td> <td>{{ item.user.name }}</td> {% if app.user and app.user.role == 'MANAGEMENT' %} <td><a href=\"{{ path('deleteload', {'id': item.id}) }}\">Delete</a></td> {% endif %} </tr> \t\t\t\t\t\t\t{% endfor %} </tbody> </table> </div> \t </div> \t </div> \t </div> \t </div> \t</div> {% endblock %} ", "release/view.html.twig", "/var/www/html/boaz2/templates/release/view.html.twig"); } }