<?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;

/* admin/details/index.html.twig */
class __TwigTemplate_44786c7c9d753a9ebe96ae50329a47d01290d7f8dcd061711f092d2b5762c1a5 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 "adminBase.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", "admin/details/index.html.twig"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "admin/details/index.html.twig"));

        $this->parent = $this->loadTemplate("adminBase.html.twig", "admin/details/index.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 "                <!-- Container Fluid-->
                <div class=\"container-fluid\" id=\"container-wrapper\">
                    <div class=\"row\">
                        <div class=\"col-lg-12\">
                            <!-- Horizontal Form -->
                            <div class=\"card mb-4\">
                                <div class=\"card-header py-3 d-flex flex-row align-items-center justify-content-between\">
                                    <h4 class=\"m-0 font-weight-bold \">Purchase Order Detail</h4>
                                    <div class=\"btn-groupss\">
                                        ";
        // line 13
        if (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 13, $this->source); })()), 0, [], "array", false, false, false, 13), "fld13", [], "array", false, false, false, 13), "1")) {
            // line 14
            echo "                                            <span class=\"badge badge-primary\">";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 14, $this->source); })()), 0, [], "array", false, false, false, 14), "description", [], "array", false, false, false, 14), "html", null, true);
            echo "</span>
                                        ";
        } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source,         // line 15
(isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 15, $this->source); })()), 0, [], "array", false, false, false, 15), "fld13", [], "array", false, false, false, 15), "2")) {
            // line 16
            echo "                                            <span class=\"badge badge-success\">";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 16, $this->source); })()), 0, [], "array", false, false, false, 16), "description", [], "array", false, false, false, 16), "html", null, true);
            echo "</span>
                                        ";
        } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source,         // line 17
(isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 17, $this->source); })()), 0, [], "array", false, false, false, 17), "fld13", [], "array", false, false, false, 17), "3")) {
            // line 18
            echo "                                            <span class=\"badge badge-warning\">";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 18, $this->source); })()), 0, [], "array", false, false, false, 18), "description", [], "array", false, false, false, 18), "html", null, true);
            echo "</span>
                                        ";
        } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source,         // line 19
(isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 19, $this->source); })()), 0, [], "array", false, false, false, 19), "fld13", [], "array", false, false, false, 19), "4")) {
            // line 20
            echo "                                            <span class=\"badge badge-danger\">";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 20, $this->source); })()), 0, [], "array", false, false, false, 20), "description", [], "array", false, false, false, 20), "html", null, true);
            echo "</span>
                                        ";
        } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source,         // line 21
(isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 21, $this->source); })()), 0, [], "array", false, false, false, 21), "fld13", [], "array", false, false, false, 21), "5")) {
            // line 22
            echo "                                            <span class=\"badge badge-secondary\">";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 22, $this->source); })()), "description", [], "any", false, false, false, 22), "html", null, true);
            echo "</span>
                                        ";
        } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source,         // line 23
(isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 23, $this->source); })()), 0, [], "array", false, false, false, 23), "fld13", [], "array", false, false, false, 23), "6")) {
            // line 24
            echo "                                            <span class=\"badge badge-info\">";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 24, $this->source); })()), 0, [], "array", false, false, false, 24), "description", [], "array", false, false, false, 24), "html", null, true);
            echo "</span>
                                        ";
        }
        // line 26
        echo "                                    </div>
                                </div>
                                <div class=\"card-body\">
                                    <form>
                                        <div class=\"form-group row\">
                                            <div class=\"col-sm-5\">
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-5 col-form-label font-weight-bold\">PR Code :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">";
        // line 34
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 34, $this->source); })()), 0, [], "array", false, false, false, 34), "fld1", [], "array", false, false, false, 34), "html", null, true);
        echo "</label>
                                                </div>
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-5 col-form-label font-weight-bold\">Date Created :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">";
        // line 38
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 38, $this->source); })()), 0, [], "array", false, false, false, 38), "fld2", [], "array", false, false, false, 38), "html", null, true);
        echo "</label>
                                                </div>
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-5 col-form-label font-weight-bold\">Date Needed :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">";
        // line 42
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 42, $this->source); })()), 0, [], "array", false, false, false, 42), "fld3", [], "array", false, false, false, 42), "html", null, true);
        echo "</label>
                                                </div>
                                            </div>
                                            <div class=\"col-sm-7\">
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-4 col-form-label font-weight-bold\">Department :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">";
        // line 48
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 48, $this->source); })()), 0, [], "array", false, false, false, 48), "fld4", [], "array", false, false, false, 48), "html", null, true);
        echo "</label>
                                                </div>
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-4 col-form-label font-weight-bold\">Purchasing Location :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">";
        // line 52
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 52, $this->source); })()), 0, [], "array", false, false, false, 52), "fld6", [], "array", false, false, false, 52), "html", null, true);
        echo "</label>
                                                </div>
                                            </div>
                                        </div>

                                        <div class=\"form-group row\">
                                            <div class=\"col-sm-5\">
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-5 col-form-label font-weight-bold\">Expense Type :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">";
        // line 61
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 61, $this->source); })()), 0, [], "array", false, false, false, 61), "fld8", [], "array", false, false, false, 61), "html", null, true);
        echo "</label>
                                                </div>
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-5 col-form-label font-weight-bold\">Nature of Request :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">";
        // line 65
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 65, $this->source); })()), 0, [], "array", false, false, false, 65), "fld11", [], "array", false, false, false, 65), "html", null, true);
        echo "</label>
                                                </div>
                                            </div>

                                            <div class=\"col-sm-7\">
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-4 col-form-label font-weight-bold\">PPE Purpose :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">";
        // line 72
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 72, $this->source); })()), 0, [], "array", false, false, false, 72), "fld9", [], "array", false, false, false, 72), "html", null, true);
        echo "</label>
                                                </div>
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-4 col-form-label font-weight-bold\">Project Description :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">";
        // line 76
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 76, $this->source); })()), 0, [], "array", false, false, false, 76), "fld10", [], "array", false, false, false, 76), "html", null, true);
        echo "</label>
                                                </div>
                                            </div>

                                        </div>

                                        <div class=\"form-group row\">
                                            <div class=\"col-sm-6\">
                                                <label for=\"exampleFormControlTextarea1\">Request Notes</label>
                                                <textarea class=\"form-control\" id=\"exampleFormControlTextarea1\" rows=\"3\"></textarea>
                                            </div>
                                            <div class=\"col-sm-6 float-left float-right\">
                                                 <label for=\"exampleFormControlTextarea1\">Returned Notes</label>
                                                 <textarea class=\"form-control\" id=\"exampleFormControlTextarea1\" rows=\"3\"></textarea>
                                            </div>
                                        </div>

                                        <div class=\"row\">
                                            <div class=\"col-lg-12 mb-4\">
                                                <!-- Simple Tables -->
                                                <div class=\"card\">
                                                    <div class=\"card-header py-3 d-flex flex-row align-items-center justify-content-between\">
                                                        <h4 class=\"m-0 font-weight-bold \">List of Items</h4>
                                                        <button id=\"savebtn\" type=\"button\" class=\"btn btn-primary mb-1 float-right\">Save</button>

                                                    </div>
                                                    <div class=\"table-responsive\">
                                                        <table class=\"table align-items-center table-flush\">
                                                            <thead class=\"thead-light\">
                                                            <tr>
                                                                <th>Item Code</th>
                                                                <th>Description</th>
                                                                <th>QTY</th>
                                                                <th>Estimated Cost</th>
                                                                <th>Total Cost</th>
                                                                <th>Status</th>
                                                            </tr>
                                                            </thead>
                                                            <tbody>
                                                            ";
        // line 115
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 115, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["data"]) {
            // line 116
            echo "                                                                <tr>
                                                                    <td>";
            // line 117
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld2", [], "any", false, false, false, 117), "html", null, true);
            echo "</td>
                                                                    <td>";
            // line 118
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld3", [], "any", false, false, false, 118), "html", null, true);
            echo "</td>
                                                                    <td>";
            // line 119
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld7", [], "any", false, false, false, 119), "html", null, true);
            echo "</td>
                                                                    <td>";
            // line 120
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld8", [], "any", false, false, false, 120), "html", null, true);
            echo "</td>
                                                                    <td>";
            // line 121
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld9", [], "any", false, false, false, 121), "html", null, true);
            echo "</td>
                                                                    <td>
                                                                        ";
            // line 123
            if (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 123, $this->source); })()), 0, [], "array", false, false, false, 123), "fld13", [], "array", false, false, false, 123), "1")) {
                // line 124
                echo "                                                                            ";
                if (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["data"], "fld11", [], "any", false, false, false, 124), "1")) {
                    // line 125
                    echo "                                                                                <select class=\"form-control\" name=";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld2", [], "any", false, false, false, 125), "html", null, true);
                    echo "  >
                                                                                    <option disabled=\"disabled\">Active</option>
                                                                                    <option selected=\"true\" value=\"1\">Check</option>a
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            ";
                } else {
                    // line 131
                    echo "                                                                                <select class=\"form-control\" name=";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld2", [], "any", false, false, false, 131), "html", null, true);
                    echo "  >
                                                                                    <option selected=\"true\" disabled=\"disabled\">Active</option>
                                                                                    <option value=\"1\">Check</option>a
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            ";
                }
                // line 137
                echo "                                                                        ";
            } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 137, $this->source); })()), 0, [], "array", false, false, false, 137), "fld13", [], "array", false, false, false, 137), "2")) {
                // line 138
                echo "                                                                            ";
                if (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["data"], "fld12", [], "any", false, false, false, 138), "1")) {
                    // line 139
                    echo "                                                                                <select class=\"form-control\" name=";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld2", [], "any", false, false, false, 139), "html", null, true);
                    echo ">
                                                                                    <option disabled=\"disabled\">Checked</option>
                                                                                    <option selected=\"true\"value=\"1\">Verify</option>
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            ";
                } else {
                    // line 145
                    echo "                                                                                <select class=\"form-control\" name=";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld2", [], "any", false, false, false, 145), "html", null, true);
                    echo ">
                                                                                    <option selected=\"true\" disabled=\"disabled\">Checked</option>
                                                                                    <option value=\"1\">Verify</option>
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            ";
                }
                // line 151
                echo "                                                                        ";
            } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 151, $this->source); })()), 0, [], "array", false, false, false, 151), "fld13", [], "array", false, false, false, 151), "3")) {
                // line 152
                echo "                                                                            ";
                if (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["data"], "fld13", [], "any", false, false, false, 152), "1")) {
                    // line 153
                    echo "                                                                                <select class=\"form-control\" name=";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld2", [], "any", false, false, false, 153), "html", null, true);
                    echo ">
                                                                                    <option disabled=\"disabled\">Verified</option>
                                                                                    <option selected=\"true\" value=\"1\">Recommend</option>
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            ";
                } else {
                    // line 159
                    echo "                                                                                <select class=\"form-control\" name=";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld2", [], "any", false, false, false, 159), "html", null, true);
                    echo ">
                                                                                    <option selected=\"true\" disabled=\"disabled\">Verified</option>
                                                                                    <option value=\"1\">Recommend</option>
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            ";
                }
                // line 165
                echo "                                                                        ";
            } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 165, $this->source); })()), 0, [], "array", false, false, false, 165), "fld13", [], "array", false, false, false, 165), "4")) {
                // line 166
                echo "                                                                            ";
                if (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["data"], "fld14", [], "any", false, false, false, 166), "1")) {
                    // line 167
                    echo "                                                                                <select class=\"form-control\" name=";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld2", [], "any", false, false, false, 167), "html", null, true);
                    echo ">
                                                                                    <option disabled=\"disabled\">Recommended</option>
                                                                                    <option selected=\"true\" value=\"1\">Review</option>
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            ";
                } else {
                    // line 173
                    echo "                                                                                <select class=\"form-control\" name=";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld2", [], "any", false, false, false, 173), "html", null, true);
                    echo ">
                                                                                    <option selected=\"true\" disabled=\"disabled\">Recommended</option>
                                                                                    <option value=\"1\">Review</option>
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            ";
                }
                // line 179
                echo "                                                                        ";
            } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 179, $this->source); })()), 0, [], "array", false, false, false, 179), "fld13", [], "array", false, false, false, 179), "5")) {
                // line 180
                echo "                                                                            ";
                if (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["data"], "fld15", [], "any", false, false, false, 180), "1")) {
                    // line 181
                    echo "                                                                                <select class=\"form-control\" name=";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld2", [], "any", false, false, false, 181), "html", null, true);
                    echo ">
                                                                                    <option disabled=\"disabled\">Reviewed</option>
                                                                                    <option selected=\"true\"  value=\"1\">Approve</option>
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            ";
                } else {
                    // line 187
                    echo "                                                                                <select class=\"form-control\" name=";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld2", [], "any", false, false, false, 187), "html", null, true);
                    echo ">
                                                                                    <option selected=\"true\" disabled=\"disabled\">Reviewed</option>
                                                                                    <option value=\"1\">Approve</option>
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            ";
                }
                // line 193
                echo "
                                                                        ";
            }
            // line 195
            echo "                                                                    </td>
                                                                </tr>
                                                            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['data'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 198
        echo "                                                            </tbody>
                                                        </table>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <div class=\"form-group row\">
                                            <div class=\"col-sm-12\">
                                                <label for=\"exampleFormControlTextarea1\">Notes (Optional)</label>
                                                <textarea class=\"form-control\" id=\"exampleFormControlTextarea1\" rows=\"3\"></textarea>
                                            </div>
                                        </div>
                                        ";
        // line 211
        if (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 211, $this->source); })()), 0, [], "array", false, false, false, 211), "fld13", [], "array", false, false, false, 211), "1")) {
            // line 212
            echo "                                            <button id = \"submitbtn\" type=\"button\" class=\"btn btn-success\" aria-haspopup=\"true\" aria-expanded=\"false\">
                                                Check
                                            </button>
                                        ";
        } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source,         // line 215
(isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 215, $this->source); })()), 0, [], "array", false, false, false, 215), "fld13", [], "array", false, false, false, 215), "2")) {
            // line 216
            echo "                                            <button id = \"submitbtn\" type=\"button\" class=\"btn btn-success\" aria-haspopup=\"true\" aria-expanded=\"false\">
                                                Verify
                                            </button>
                                        ";
        } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source,         // line 219
(isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 219, $this->source); })()), 0, [], "array", false, false, false, 219), "fld13", [], "array", false, false, false, 219), "3")) {
            // line 220
            echo "                                            <button id = \"submitbtn\" type=\"button\" class=\"btn btn-success\" aria-haspopup=\"true\" aria-expanded=\"false\">
                                                Recommend
                                            </button>
                                        ";
        } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source,         // line 223
(isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 223, $this->source); })()), 0, [], "array", false, false, false, 223), "fld13", [], "array", false, false, false, 223), "4")) {
            // line 224
            echo "                                            <button id = \"submitbtn\" type=\"button\" class=\"btn btn-success\" aria-haspopup=\"true\" aria-expanded=\"false\">
                                                Review
                                            </button>
                                        ";
        } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source,         // line 227
(isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 227, $this->source); })()), 0, [], "array", false, false, false, 227), "fld13", [], "array", false, false, false, 227), "5")) {
            // line 228
            echo "                                            <button id = \"submitbtn\" type=\"button\" class=\"btn btn-success\" aria-haspopup=\"true\" aria-expanded=\"false\">
                                                Approve
                                            </button>
                                        ";
        }
        // line 232
        echo "
                                    </form>
                                </div>
                            </div>
                        </div>
                    <!--Row-->
                </div>
                <!---Container Fluid-->
            </div>
        </div>
    </div>
    <script src=\"https://code.jquery.com/jquery-3.5.1.js\"></script>
    <script type=\"text/javascript\" language=\"javascript\" >
        \$(document).ready(function() {
            console.log( \"ready!\" );
            var table = \$('#example').DataTable({
                columnDefs: [{
                    orderable: false,
                    targets: [0]
                }]
            });

            \$('#savebtn').click( function() {
                var ItemData = table.\$('input,select').serializeArray();
                // var form_data  = table.rows().data();
                console.log(ItemData);
                if(ItemData === false){
                    alert(\"No changes made\")
                }else{
                    update_data(ItemData);
                }
            } );

            \$('#submitbtn').click( function() {
                    update_header();
            } );

        } );


        function update_header()
        {
            var url = '";
        // line 274
        echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("update");
        echo "';
            var current_status = \"";
        // line 275
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 275, $this->source); })()), 0, [], "array", false, false, false, 275), "fld13", [], "array", false, false, false, 275), "html", null, true);
        echo "\";
            var update_status = parseInt(current_status) + 1 ;
            var prID = \"";
        // line 277
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 277, $this->source); })()), 0, [], "array", false, false, false, 277), "fld1", [], "array", false, false, false, 277), "html", null, true);
        echo "\";
            console.log(update_status);

            \$.ajax({
                enctype: 'multipart/form-data',
                url: url,
                type: \"POST\",
                dataType: \"json\",
                data:{update_status:update_status, current_status:current_status, prID:prID},
                success:function(data)
                {
                    var url = '";
        // line 288
        echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("p-req");
        echo "';
                    window.location.href = url;

                    // \$('#alert_message').html('<div class=\"alert alert-success\">'+data+'</div>');
                    // \$('#user_data').DataTable().destroy();
                    // fetch_data();
                },
                error: function (errormessage) {
                    console.log(errormessage.responseText);
                }
            });
            setInterval(function(){
                \$('#alert_message').html('');
            }, 5000);
        }


        function update_data(ItemData)
        {
            var itemsJSON = JSON.stringify(ItemData);
            var url = '";
        // line 308
        echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("item-update");
        echo "';
            var current_status = \"";
        // line 309
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pr_info"]) || array_key_exists("pr_info", $context) ? $context["pr_info"] : (function () { throw new RuntimeError('Variable "pr_info" does not exist.', 309, $this->source); })()), 0, [], "array", false, false, false, 309), "fld13", [], "array", false, false, false, 309), "html", null, true);
        echo "\";
            console.log(itemsJSON);

            \$.ajax({
                enctype: 'multipart/form-data',
                url: url,
                type: \"POST\",
                dataType: \"json\",
                data:{id:itemsJSON, current_status:current_status},
                success:function(data)
                {
                    alert(\"Successfully Updated\");
                    // \$('#alert_message').html('<div class=\"alert alert-success\">'+data+'</div>');
                    // \$('#user_data').DataTable().destroy();
                    // fetch_data();
                },
                error: function (errormessage) {
                    console.log(errormessage.responseText);
                }
            });
            setInterval(function(){
                \$('#alert_message').html('');
            }, 5000);
        }

    </script>
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    public function getTemplateName()
    {
        return "admin/details/index.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  554 => 309,  550 => 308,  527 => 288,  513 => 277,  508 => 275,  504 => 274,  460 => 232,  454 => 228,  452 => 227,  447 => 224,  445 => 223,  440 => 220,  438 => 219,  433 => 216,  431 => 215,  426 => 212,  424 => 211,  409 => 198,  401 => 195,  397 => 193,  387 => 187,  377 => 181,  374 => 180,  371 => 179,  361 => 173,  351 => 167,  348 => 166,  345 => 165,  335 => 159,  325 => 153,  322 => 152,  319 => 151,  309 => 145,  299 => 139,  296 => 138,  293 => 137,  283 => 131,  273 => 125,  270 => 124,  268 => 123,  263 => 121,  259 => 120,  255 => 119,  251 => 118,  247 => 117,  244 => 116,  240 => 115,  198 => 76,  191 => 72,  181 => 65,  174 => 61,  162 => 52,  155 => 48,  146 => 42,  139 => 38,  132 => 34,  122 => 26,  116 => 24,  114 => 23,  109 => 22,  107 => 21,  102 => 20,  100 => 19,  95 => 18,  93 => 17,  88 => 16,  86 => 15,  81 => 14,  79 => 13,  68 => 4,  58 => 3,  35 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% extends 'adminBase.html.twig' %}

{% block content %}
                <!-- Container Fluid-->
                <div class=\"container-fluid\" id=\"container-wrapper\">
                    <div class=\"row\">
                        <div class=\"col-lg-12\">
                            <!-- Horizontal Form -->
                            <div class=\"card mb-4\">
                                <div class=\"card-header py-3 d-flex flex-row align-items-center justify-content-between\">
                                    <h4 class=\"m-0 font-weight-bold \">Purchase Order Detail</h4>
                                    <div class=\"btn-groupss\">
                                        {% if pr_info[0]['fld13'] == '1' %}
                                            <span class=\"badge badge-primary\">{{ pr_info[0]['description'] }}</span>
                                        {% elseif pr_info[0]['fld13'] == '2' %}
                                            <span class=\"badge badge-success\">{{ pr_info[0]['description'] }}</span>
                                        {% elseif pr_info[0]['fld13'] == '3' %}
                                            <span class=\"badge badge-warning\">{{ pr_info[0]['description'] }}</span>
                                        {% elseif pr_info[0]['fld13'] == '4' %}
                                            <span class=\"badge badge-danger\">{{ pr_info[0]['description'] }}</span>
                                        {% elseif pr_info[0]['fld13'] == '5' %}
                                            <span class=\"badge badge-secondary\">{{ data.description}}</span>
                                        {% elseif pr_info[0]['fld13'] == '6' %}
                                            <span class=\"badge badge-info\">{{ pr_info[0]['description'] }}</span>
                                        {% endif %}
                                    </div>
                                </div>
                                <div class=\"card-body\">
                                    <form>
                                        <div class=\"form-group row\">
                                            <div class=\"col-sm-5\">
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-5 col-form-label font-weight-bold\">PR Code :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">{{ pr_info[0]['fld1'] }}</label>
                                                </div>
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-5 col-form-label font-weight-bold\">Date Created :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">{{pr_info[0]['fld2']}}</label>
                                                </div>
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-5 col-form-label font-weight-bold\">Date Needed :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">{{pr_info[0]['fld3']}}</label>
                                                </div>
                                            </div>
                                            <div class=\"col-sm-7\">
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-4 col-form-label font-weight-bold\">Department :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">{{pr_info[0]['fld4']}}</label>
                                                </div>
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-4 col-form-label font-weight-bold\">Purchasing Location :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">{{pr_info[0]['fld6']}}</label>
                                                </div>
                                            </div>
                                        </div>

                                        <div class=\"form-group row\">
                                            <div class=\"col-sm-5\">
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-5 col-form-label font-weight-bold\">Expense Type :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">{{pr_info[0]['fld8']}}</label>
                                                </div>
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-5 col-form-label font-weight-bold\">Nature of Request :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">{{pr_info[0]['fld11']}}</label>
                                                </div>
                                            </div>

                                            <div class=\"col-sm-7\">
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-4 col-form-label font-weight-bold\">PPE Purpose :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">{{pr_info[0]['fld9']}}</label>
                                                </div>
                                                <div class=\"form-group row\">
                                                    <label  class=\"col-sm-4 col-form-label font-weight-bold\">Project Description :</label>
                                                    <label  class=\"col-sm-7 col-form-label\">{{pr_info[0]['fld10']}}</label>
                                                </div>
                                            </div>

                                        </div>

                                        <div class=\"form-group row\">
                                            <div class=\"col-sm-6\">
                                                <label for=\"exampleFormControlTextarea1\">Request Notes</label>
                                                <textarea class=\"form-control\" id=\"exampleFormControlTextarea1\" rows=\"3\"></textarea>
                                            </div>
                                            <div class=\"col-sm-6 float-left float-right\">
                                                 <label for=\"exampleFormControlTextarea1\">Returned Notes</label>
                                                 <textarea class=\"form-control\" id=\"exampleFormControlTextarea1\" rows=\"3\"></textarea>
                                            </div>
                                        </div>

                                        <div class=\"row\">
                                            <div class=\"col-lg-12 mb-4\">
                                                <!-- Simple Tables -->
                                                <div class=\"card\">
                                                    <div class=\"card-header py-3 d-flex flex-row align-items-center justify-content-between\">
                                                        <h4 class=\"m-0 font-weight-bold \">List of Items</h4>
                                                        <button id=\"savebtn\" type=\"button\" class=\"btn btn-primary mb-1 float-right\">Save</button>

                                                    </div>
                                                    <div class=\"table-responsive\">
                                                        <table class=\"table align-items-center table-flush\">
                                                            <thead class=\"thead-light\">
                                                            <tr>
                                                                <th>Item Code</th>
                                                                <th>Description</th>
                                                                <th>QTY</th>
                                                                <th>Estimated Cost</th>
                                                                <th>Total Cost</th>
                                                                <th>Status</th>
                                                            </tr>
                                                            </thead>
                                                            <tbody>
                                                            {% for data in items %}
                                                                <tr>
                                                                    <td>{{ data.fld2 }}</td>
                                                                    <td>{{ data.fld3 }}</td>
                                                                    <td>{{ data.fld7 }}</td>
                                                                    <td>{{ data.fld8}}</td>
                                                                    <td>{{ data.fld9 }}</td>
                                                                    <td>
                                                                        {% if pr_info[0]['fld13'] == '1' %}
                                                                            {% if data.fld11 == '1' %}
                                                                                <select class=\"form-control\" name={{ data.fld2 }}  >
                                                                                    <option disabled=\"disabled\">Active</option>
                                                                                    <option selected=\"true\" value=\"1\">Check</option>a
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            {% else %}
                                                                                <select class=\"form-control\" name={{ data.fld2 }}  >
                                                                                    <option selected=\"true\" disabled=\"disabled\">Active</option>
                                                                                    <option value=\"1\">Check</option>a
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            {% endif %}
                                                                        {% elseif pr_info[0]['fld13'] == '2' %}
                                                                            {% if data.fld12 == '1' %}
                                                                                <select class=\"form-control\" name={{ data.fld2 }}>
                                                                                    <option disabled=\"disabled\">Checked</option>
                                                                                    <option selected=\"true\"value=\"1\">Verify</option>
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            {% else %}
                                                                                <select class=\"form-control\" name={{ data.fld2 }}>
                                                                                    <option selected=\"true\" disabled=\"disabled\">Checked</option>
                                                                                    <option value=\"1\">Verify</option>
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            {% endif %}
                                                                        {% elseif pr_info[0]['fld13'] == '3' %}
                                                                            {% if data.fld13 == '1' %}
                                                                                <select class=\"form-control\" name={{ data.fld2 }}>
                                                                                    <option disabled=\"disabled\">Verified</option>
                                                                                    <option selected=\"true\" value=\"1\">Recommend</option>
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            {% else %}
                                                                                <select class=\"form-control\" name={{ data.fld2 }}>
                                                                                    <option selected=\"true\" disabled=\"disabled\">Verified</option>
                                                                                    <option value=\"1\">Recommend</option>
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            {% endif %}
                                                                        {% elseif pr_info[0]['fld13'] == '4' %}
                                                                            {% if data.fld14 == '1' %}
                                                                                <select class=\"form-control\" name={{ data.fld2 }}>
                                                                                    <option disabled=\"disabled\">Recommended</option>
                                                                                    <option selected=\"true\" value=\"1\">Review</option>
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            {% else %}
                                                                                <select class=\"form-control\" name={{ data.fld2 }}>
                                                                                    <option selected=\"true\" disabled=\"disabled\">Recommended</option>
                                                                                    <option value=\"1\">Review</option>
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            {% endif %}
                                                                        {% elseif pr_info[0]['fld13'] == '5' %}
                                                                            {% if data.fld15 == '1' %}
                                                                                <select class=\"form-control\" name={{ data.fld2 }}>
                                                                                    <option disabled=\"disabled\">Reviewed</option>
                                                                                    <option selected=\"true\"  value=\"1\">Approve</option>
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            {% else %}
                                                                                <select class=\"form-control\" name={{ data.fld2 }}>
                                                                                    <option selected=\"true\" disabled=\"disabled\">Reviewed</option>
                                                                                    <option value=\"1\">Approve</option>
                                                                                    <option value=\"0\">Disapprove</option>
                                                                                </select>
                                                                            {% endif %}

                                                                        {% endif %}
                                                                    </td>
                                                                </tr>
                                                            {% endfor %}
                                                            </tbody>
                                                        </table>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <div class=\"form-group row\">
                                            <div class=\"col-sm-12\">
                                                <label for=\"exampleFormControlTextarea1\">Notes (Optional)</label>
                                                <textarea class=\"form-control\" id=\"exampleFormControlTextarea1\" rows=\"3\"></textarea>
                                            </div>
                                        </div>
                                        {% if pr_info[0]['fld13'] == '1' %}
                                            <button id = \"submitbtn\" type=\"button\" class=\"btn btn-success\" aria-haspopup=\"true\" aria-expanded=\"false\">
                                                Check
                                            </button>
                                        {% elseif pr_info[0]['fld13'] == '2' %}
                                            <button id = \"submitbtn\" type=\"button\" class=\"btn btn-success\" aria-haspopup=\"true\" aria-expanded=\"false\">
                                                Verify
                                            </button>
                                        {% elseif pr_info[0]['fld13'] == '3' %}
                                            <button id = \"submitbtn\" type=\"button\" class=\"btn btn-success\" aria-haspopup=\"true\" aria-expanded=\"false\">
                                                Recommend
                                            </button>
                                        {% elseif pr_info[0]['fld13'] == '4' %}
                                            <button id = \"submitbtn\" type=\"button\" class=\"btn btn-success\" aria-haspopup=\"true\" aria-expanded=\"false\">
                                                Review
                                            </button>
                                        {% elseif pr_info[0]['fld13'] == '5' %}
                                            <button id = \"submitbtn\" type=\"button\" class=\"btn btn-success\" aria-haspopup=\"true\" aria-expanded=\"false\">
                                                Approve
                                            </button>
                                        {% endif %}

                                    </form>
                                </div>
                            </div>
                        </div>
                    <!--Row-->
                </div>
                <!---Container Fluid-->
            </div>
        </div>
    </div>
    <script src=\"https://code.jquery.com/jquery-3.5.1.js\"></script>
    <script type=\"text/javascript\" language=\"javascript\" >
        \$(document).ready(function() {
            console.log( \"ready!\" );
            var table = \$('#example').DataTable({
                columnDefs: [{
                    orderable: false,
                    targets: [0]
                }]
            });

            \$('#savebtn').click( function() {
                var ItemData = table.\$('input,select').serializeArray();
                // var form_data  = table.rows().data();
                console.log(ItemData);
                if(ItemData === false){
                    alert(\"No changes made\")
                }else{
                    update_data(ItemData);
                }
            } );

            \$('#submitbtn').click( function() {
                    update_header();
            } );

        } );


        function update_header()
        {
            var url = '{{ path(\"update\") }}';
            var current_status = \"{{ pr_info[0]['fld13'] }}\";
            var update_status = parseInt(current_status) + 1 ;
            var prID = \"{{ pr_info[0]['fld1'] }}\";
            console.log(update_status);

            \$.ajax({
                enctype: 'multipart/form-data',
                url: url,
                type: \"POST\",
                dataType: \"json\",
                data:{update_status:update_status, current_status:current_status, prID:prID},
                success:function(data)
                {
                    var url = '{{ path(\"p-req\") }}';
                    window.location.href = url;

                    // \$('#alert_message').html('<div class=\"alert alert-success\">'+data+'</div>');
                    // \$('#user_data').DataTable().destroy();
                    // fetch_data();
                },
                error: function (errormessage) {
                    console.log(errormessage.responseText);
                }
            });
            setInterval(function(){
                \$('#alert_message').html('');
            }, 5000);
        }


        function update_data(ItemData)
        {
            var itemsJSON = JSON.stringify(ItemData);
            var url = '{{ path(\"item-update\") }}';
            var current_status = \"{{ pr_info[0]['fld13'] }}\";
            console.log(itemsJSON);

            \$.ajax({
                enctype: 'multipart/form-data',
                url: url,
                type: \"POST\",
                dataType: \"json\",
                data:{id:itemsJSON, current_status:current_status},
                success:function(data)
                {
                    alert(\"Successfully Updated\");
                    // \$('#alert_message').html('<div class=\"alert alert-success\">'+data+'</div>');
                    // \$('#user_data').DataTable().destroy();
                    // fetch_data();
                },
                error: function (errormessage) {
                    console.log(errormessage.responseText);
                }
            });
            setInterval(function(){
                \$('#alert_message').html('');
            }, 5000);
        }

    </script>
{% endblock %}
", "admin/details/index.html.twig", "D:\\xampp\\htdocs\\symproj\\templates\\admin\\details\\index.html.twig");
    }
}
