<?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/dashboard/purchaserequest.php */
class __TwigTemplate_2106eeedc5c4212058f7ff990e8466aef017fbafcc49f9e2e25944aa4daf60ee 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/dashboard/purchaserequest.php"));

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

        $this->parent = $this->loadTemplate("adminBase.html.twig", "admin/dashboard/purchaserequest.php", 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 "        <div class=\"container-fluid\" id=\"container-wrapper\">
          <div class=\"d-sm-flex align-items-center justify-content-between mb-4\">
            <h1 class=\"h3 mb-0 text-gray-800\">Purchase Request</h1>
              <ol class=\"breadcrumb\">
              <li class=\"breadcrumb-item\"><a href=\"./\">Home</a></li>
              <li class=\"breadcrumb-item\"><a href=\"";
        // line 9
        echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
        echo "\" id=\"aLogOutId\">Logout</a></li>
            </ol>
          </div>
            <!-- Row -->
            <div class=\"row\">
                <!-- Datatables -->
                <div class=\"col-lg-12\">
                    ";
        // line 16
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(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.', 16, $this->source); })()), "flashes", [0 => "success"], "method", false, false, false, 16));
        foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
            // line 17
            echo "                    <div class=\"alert alert-success\">
                        ";
            // line 18
            echo twig_escape_filter($this->env, $context["message"], "html", null, true);
            echo "
                    </div>
                    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 21
        echo "                    <div class=\"card mb-4\">
                        <div class=\"card-header py-3 d-flex flex-row align-items-center justify-content-between\">
                            <h6 class=\"m-0 font-weight-bold text-primary\">DataTables</h6>
                        </div>
                        <div class=\"table-responsive p-3\">
                            <table class=\"table align-items-center table-flush\" id=\"dataTable\">
                                <thead class=\"thead-light\">
                                <tr>
                                    <th>Status</th>
                                    <th>PR Code</th>
                                    <th>Date Created</th>
                                    <th>Department</th>
                                    <th>More</th>
                                </tr>
                                </thead>
                                <tbody>
                                ";
        // line 37
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["datas"]) || array_key_exists("datas", $context) ? $context["datas"] : (function () { throw new RuntimeError('Variable "datas" does not exist.', 37, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["data"]) {
            // line 38
            echo "                                <tr>
                                    <td>
                                        ";
            // line 40
            if (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["data"], "StatusID", [], "any", false, false, false, 40), "1")) {
                // line 41
                echo "                                        <span class=\"badge badge-primary\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "status", [], "any", false, false, false, 41), "html", null, true);
                echo "</span>
                                        ";
            } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source,             // line 42
$context["data"], "StatusID", [], "any", false, false, false, 42), "2")) {
                // line 43
                echo "                                        <span class=\"badge badge-success\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "status", [], "any", false, false, false, 43), "html", null, true);
                echo "</span>
                                        ";
            } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source,             // line 44
$context["data"], "StatusID", [], "any", false, false, false, 44), "3")) {
                // line 45
                echo "                                        <span class=\"badge badge-warning\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "status", [], "any", false, false, false, 45), "html", null, true);
                echo "</span>
                                        ";
            } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source,             // line 46
$context["data"], "StatusID", [], "any", false, false, false, 46), "4")) {
                // line 47
                echo "                                        <span class=\"badge badge-danger\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "status", [], "any", false, false, false, 47), "html", null, true);
                echo "</span>
                                        ";
            } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source,             // line 48
$context["data"], "StatusID", [], "any", false, false, false, 48), "5")) {
                // line 49
                echo "                                        <span class=\"badge badge-secondary\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "status", [], "any", false, false, false, 49), "html", null, true);
                echo "</span>
                                        ";
            } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source,             // line 50
$context["data"], "StatusID", [], "any", false, false, false, 50), "6")) {
                // line 51
                echo "                                        <span class=\"badge badge-info\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "status", [], "any", false, false, false, 51), "html", null, true);
                echo "</span>
                                        ";
            }
            // line 53
            echo "                                    </td>
                                    <td contenteditable id=\"data1\" >";
            // line 54
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld1", [], "any", false, false, false, 54), "html", null, true);
            echo "</td>
                                    <td>";
            // line 55
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld2", [], "any", false, false, false, 55), "html", null, true);
            echo "</td>
                                    <td>";
            // line 56
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["data"], "fld8", [], "any", false, false, false, 56), "html", null, true);
            echo "</td>
                                    <td>
                                        <a class=\"text-info\" href=\"";
            // line 58
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("details", ["prID" => twig_get_attribute($this->env, $this->source, $context["data"], "fld1", [], "any", false, false, false, 58)]), "html", null, true);
            echo "\"> View Details </a>
                                    </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 62
        echo "                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
          </div>
       </div>
    </div>
  </div>

";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    public function getTemplateName()
    {
        return "admin/dashboard/purchaserequest.php";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  196 => 62,  186 => 58,  181 => 56,  177 => 55,  173 => 54,  170 => 53,  164 => 51,  162 => 50,  157 => 49,  155 => 48,  150 => 47,  148 => 46,  143 => 45,  141 => 44,  136 => 43,  134 => 42,  129 => 41,  127 => 40,  123 => 38,  119 => 37,  101 => 21,  92 => 18,  89 => 17,  85 => 16,  75 => 9,  68 => 4,  58 => 3,  35 => 1,);
    }

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

{% block content %}
        <div class=\"container-fluid\" id=\"container-wrapper\">
          <div class=\"d-sm-flex align-items-center justify-content-between mb-4\">
            <h1 class=\"h3 mb-0 text-gray-800\">Purchase Request</h1>
              <ol class=\"breadcrumb\">
              <li class=\"breadcrumb-item\"><a href=\"./\">Home</a></li>
              <li class=\"breadcrumb-item\"><a href=\"{{ path('home') }}\" id=\"aLogOutId\">Logout</a></li>
            </ol>
          </div>
            <!-- Row -->
            <div class=\"row\">
                <!-- Datatables -->
                <div class=\"col-lg-12\">
                    {% for message in app.flashes('success') %}
                    <div class=\"alert alert-success\">
                        {{ message }}
                    </div>
                    {% endfor %}
                    <div class=\"card mb-4\">
                        <div class=\"card-header py-3 d-flex flex-row align-items-center justify-content-between\">
                            <h6 class=\"m-0 font-weight-bold text-primary\">DataTables</h6>
                        </div>
                        <div class=\"table-responsive p-3\">
                            <table class=\"table align-items-center table-flush\" id=\"dataTable\">
                                <thead class=\"thead-light\">
                                <tr>
                                    <th>Status</th>
                                    <th>PR Code</th>
                                    <th>Date Created</th>
                                    <th>Department</th>
                                    <th>More</th>
                                </tr>
                                </thead>
                                <tbody>
                                {% for data in datas %}
                                <tr>
                                    <td>
                                        {% if data.StatusID == '1' %}
                                        <span class=\"badge badge-primary\">{{ data.status}}</span>
                                        {% elseif data.StatusID == '2' %}
                                        <span class=\"badge badge-success\">{{ data.status}}</span>
                                        {% elseif data.StatusID == '3' %}
                                        <span class=\"badge badge-warning\">{{ data.status}}</span>
                                        {% elseif data.StatusID == '4' %}
                                        <span class=\"badge badge-danger\">{{ data.status}}</span>
                                        {% elseif data.StatusID == '5' %}
                                        <span class=\"badge badge-secondary\">{{ data.status}}</span>
                                        {% elseif data.StatusID == '6' %}
                                        <span class=\"badge badge-info\">{{ data.status}}</span>
                                        {% endif %}
                                    </td>
                                    <td contenteditable id=\"data1\" >{{ data.fld1 }}</td>
                                    <td>{{data.fld2 }}</td>
                                    <td>{{ data.fld8}}</td>
                                    <td>
                                        <a class=\"text-info\" href=\"{{ path('details', {prID:data.fld1}) }}\"> View Details </a>
                                    </td>
                                </tr>
                                {% endfor %}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
          </div>
       </div>
    </div>
  </div>

{% endblock %}
", "admin/dashboard/purchaserequest.php", "D:\\xampp\\htdocs\\symproj\\templates\\admin\\dashboard\\purchaserequest.php");
    }
}
