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

/* extension/dashboard/pending_order.twig */
class __TwigTemplate_49a931973ecc4d3b38f962dd1a20d4ab extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<div class=\"panel panel-default\">
  <div class=\"panel-heading\">
    <h3 class=\"panel-title\"><i class=\"fa fa-comments\"></i> ";
        // line 3
        echo ($context["heading_title"] ?? null);
        echo "</h3>
  </div>
  
  <div class=\"panel-body\">
    ";
        // line 7
        if (($context["orders"] ?? null)) {
            // line 8
            echo "      <div class=\"table-responsive\">
        <table class=\"table table-bordered table-hover mb-0\">
          <thead class=\"table-light\">
            <tr>
              <th>";
            // line 12
            echo ($context["column_order_id"] ?? null);
            echo "</th>
              <th>";
            // line 13
            echo ($context["column_customer"] ?? null);
            echo "</th>
              <th>";
            // line 14
            echo ($context["column_status"] ?? null);
            echo "</th>
              <th>";
            // line 15
            echo ($context["column_total"] ?? null);
            echo "</th>
              <th>";
            // line 16
            echo ($context["column_date_added"] ?? null);
            echo "</th>
              <th>";
            // line 17
            echo ($context["column_action"] ?? null);
            echo "</th>
            </tr>
          </thead>
          <tbody>
            ";
            // line 21
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["orders"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["order"]) {
                // line 22
                echo "              <tr>
                <td>#";
                // line 23
                echo twig_get_attribute($this->env, $this->source, $context["order"], "order_id", [], "any", false, false, false, 23);
                echo "</td>
                <td>";
                // line 24
                echo twig_get_attribute($this->env, $this->source, $context["order"], "customer", [], "any", false, false, false, 24);
                echo "</td>
                <td>";
                // line 25
                echo twig_get_attribute($this->env, $this->source, $context["order"], "status", [], "any", false, false, false, 25);
                echo "</td>
                <td>";
                // line 26
                echo twig_get_attribute($this->env, $this->source, $context["order"], "total", [], "any", false, false, false, 26);
                echo "</td>
                <td>";
                // line 27
                echo twig_get_attribute($this->env, $this->source, $context["order"], "date_added", [], "any", false, false, false, 27);
                echo "</td>
                <td>
                  <a href=\"";
                // line 29
                echo twig_get_attribute($this->env, $this->source, $context["order"], "view", [], "any", false, false, false, 29);
                echo "\" class=\"btn btn-sm btn-info\">
                    <i class=\"fa fa-eye\"></i> View
                  </a>
                </td>
              </tr>
            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['order'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 35
            echo "          </tbody>
        </table>
      </div>
    ";
        } else {
            // line 39
            echo "      <p class=\"text-muted\">";
            echo ($context["text_no_results"] ?? null);
            echo "</p>
    ";
        }
        // line 41
        echo "  </div>
</div>";
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "extension/dashboard/pending_order.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable()
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  135 => 41,  129 => 39,  123 => 35,  111 => 29,  106 => 27,  102 => 26,  98 => 25,  94 => 24,  90 => 23,  87 => 22,  83 => 21,  76 => 17,  72 => 16,  68 => 15,  64 => 14,  60 => 13,  56 => 12,  50 => 8,  48 => 7,  41 => 3,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "extension/dashboard/pending_order.twig", "");
    }
}
