Deprecated: Return type of Google\Model::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Model.php on line 256

Deprecated: Return type of Google\Model::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Model.php on line 261

Deprecated: Return type of Google\Model::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Model.php on line 268

Deprecated: Return type of Google\Model::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Model.php on line 278

Deprecated: Return type of Google\Collection::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Collection.php on line 22

Deprecated: Return type of Google\Collection::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Collection.php on line 38

Deprecated: Return type of Google\Collection::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Collection.php on line 30

Deprecated: Return type of Google\Collection::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Collection.php on line 43

Deprecated: Return type of Google\Collection::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Collection.php on line 14

Deprecated: Return type of Google\Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/sanralsmme/vendor/google/apiclient/src/Collection.php on line 49
Symfony Profiler

var/cache/dev/twig/1d/1d73c8b787298dd029221f6c680c60f6e081062d76e1bf04d00b6a1718ba16da.php line 169

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* frontend/tender-search.html.twig */
  14. class __TwigTemplate_cc0dad45bba838228c5ebedd29ddce54563a3b53e65110aa1db0ea3ea7124349 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'meta_decription' => [$this'block_meta_decription'],
  25.             'stylesheets' => [$this'block_stylesheets'],
  26.             'layout' => [$this'block_layout'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/tender-search.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/tender-search.html.twig"));
  41.         $this->parent $this->loadTemplate("base.html.twig""frontend/tender-search.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  45.         
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  47.     }
  48.     // line 2
  49.     public function block_title($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         // line 3
  57.         echo "        ";
  58.         $context["metaTitle"] = ("SANRAL eSDD - " twig_capitalize_string_filter($this->env, (isset($context["region"]) || array_key_exists("region"$context) ? $context["region"] : (function () { throw new RuntimeError('Variable "region" does not exist.'3$this->source); })())));
  59.         // line 4
  60.         echo "        ";
  61.         echo twig_escape_filter($this->env, (isset($context["metaTitle"]) || array_key_exists("metaTitle"$context) ? $context["metaTitle"] : (function () { throw new RuntimeError('Variable "metaTitle" does not exist.'4$this->source); })()), "html"nulltrue);
  62.         echo "
  63.     ";
  64.         
  65.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  66.         
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  68.     }
  69.     // line 6
  70.     public function block_meta_decription($context, array $blocks = [])
  71.     {
  72.         $macros $this->macros;
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_decription"));
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_decription"));
  77.         // line 7
  78.         echo "        ";
  79.         $context["metaTitle"] = ("SANRAL eSDD - " twig_capitalize_string_filter($this->env, (isset($context["region"]) || array_key_exists("region"$context) ? $context["region"] : (function () { throw new RuntimeError('Variable "region" does not exist.'7$this->source); })())));
  80.         // line 8
  81.         echo "        ";
  82.         $context["metaDescription"] = ("SMME's can find out more about SANRAL tenders in the " twig_capitalize_string_filter($this->env, (isset($context["region"]) || array_key_exists("region"$context) ? $context["region"] : (function () { throw new RuntimeError('Variable "region" does not exist.'8$this->source); })())));
  83.         // line 9
  84.         echo "        <meta name=\"twitter:card\" content=\"summary\" />
  85.         <meta name=\"twitter:site\" content=\"Sanral\" />
  86.         <meta name=\"twitter:title\" content=\"";
  87.         // line 11
  88.         echo twig_escape_filter($this->env, (isset($context["metaTitle"]) || array_key_exists("metaTitle"$context) ? $context["metaTitle"] : (function () { throw new RuntimeError('Variable "metaTitle" does not exist.'11$this->source); })()), "html"nulltrue);
  89.         echo "\" />
  90.         <meta name=\"twitter:description\" content=\"";
  91.         // line 12
  92.         echo twig_escape_filter($this->env, (isset($context["metaDescription"]) || array_key_exists("metaDescription"$context) ? $context["metaDescription"] : (function () { throw new RuntimeError('Variable "metaDescription" does not exist.'12$this->source); })()), "html"nulltrue);
  93.         echo "\" />
  94. ";
  95.         // line 14
  96.         echo "        <meta name=\"twitter:url\" content=\"";
  97.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'14$this->source); })()), "request", [], "any"falsefalsefalse14), "uri", [], "any"falsefalsefalse14), "html"nulltrue);
  98.         echo "\" />
  99. ";
  100.         // line 17
  101.         echo "        <meta name=\"og:title\" content=\"";
  102.         echo twig_escape_filter($this->env, (isset($context["metaTitle"]) || array_key_exists("metaTitle"$context) ? $context["metaTitle"] : (function () { throw new RuntimeError('Variable "metaTitle" does not exist.'17$this->source); })()), "html"nulltrue);
  103.         echo "\" />
  104.         <meta name=\"og:description\" content=\"";
  105.         // line 18
  106.         echo twig_escape_filter($this->env, (isset($context["metaDescription"]) || array_key_exists("metaDescription"$context) ? $context["metaDescription"] : (function () { throw new RuntimeError('Variable "metaDescription" does not exist.'18$this->source); })()), "html"nulltrue);
  107.         echo "\" />
  108.         <meta name=\"og:url\" content=\"";
  109.         // line 19
  110.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'19$this->source); })()), "request", [], "any"falsefalsefalse19), "uri", [], "any"falsefalsefalse19), "html"nulltrue);
  111.         echo "\" />
  112.         <meta name=\"description\" content=\"";
  113.         // line 20
  114.         echo twig_escape_filter($this->env, (isset($context["metaDescription"]) || array_key_exists("metaDescription"$context) ? $context["metaDescription"] : (function () { throw new RuntimeError('Variable "metaDescription" does not exist.'20$this->source); })()), "html"nulltrue);
  115.         echo "\">
  116.     ";
  117.         
  118.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  119.         
  120.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  121.     }
  122.     // line 22
  123.     public function block_stylesheets($context, array $blocks = [])
  124.     {
  125.         $macros $this->macros;
  126.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  127.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  128.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  129.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  130.         // line 23
  131.         echo "        ";
  132.         $this->displayParentBlock("stylesheets"$context$blocks);
  133.         echo "
  134.     ";
  135.         
  136.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  137.         
  138.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  139.     }
  140.     // line 26
  141.     public function block_layout($context, array $blocks = [])
  142.     {
  143.         $macros $this->macros;
  144.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  145.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout"));
  146.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  147.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout"));
  148.         // line 27
  149.         echo "        <div id=\"content-wrapper\" class=\"container-fluid\">
  150.             <div class=\"row no-gutters py-4\">
  151.                 <div class=\"col-md-9 px-3\">
  152.                     <div class=\"row mb-3\">
  153.                         <div class=\"col-12 no-gutters-sm\">
  154.                             ";
  155.         // line 32
  156.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\TendersController::getSearchForm"));
  157.         echo "
  158.                         </div>
  159.                     </div>
  160.                     <div class=\"row\">
  161.                         <div class=\"col-12 no-gutters-left\">
  162.                             <!-- Desktop -->
  163.                             <div class=\"table-responsive-md d-none d-md-block\">
  164.                                 <table class=\"table custom-table\">
  165.                                     <thead class=\"rain-forest\">
  166.                                     <tr class=\"text-white text-uppercase font-weight-light table-head\">
  167.                                         <th style=\"max-width: 90px;\" scope=\"col\">Category</th>
  168.                                         <th scope=\"col\">Tender Description</th>
  169.                                         <th style=\"max-width: 120px;\" scope=\"col\">Tender Number</th>
  170.                                         <th style=\"max-width: 120px;\" scope=\"col\">Published</th>
  171.                                         <th style=\"max-width: 150px;\" scope=\"col\">Closing Date &amp; Time</th>
  172.                                     </tr>
  173.                                     </thead>
  174.                                     <tbody>
  175.                                         ";
  176.         // line 51
  177.         if ((twig_length_filter($this->env, (isset($context["tenders"]) || array_key_exists("tenders"$context) ? $context["tenders"] : (function () { throw new RuntimeError('Variable "tenders" does not exist.'51$this->source); })())) > 0)) {
  178.             // line 52
  179.             echo "                                            ";
  180.             $context['_parent'] = $context;
  181.             $context['_seq'] = twig_ensure_traversable((isset($context["tenders"]) || array_key_exists("tenders"$context) ? $context["tenders"] : (function () { throw new RuntimeError('Variable "tenders" does not exist.'52$this->source); })()));
  182.             foreach ($context['_seq'] as $context["_key"] => $context["tender"]) {
  183.                 // line 53
  184.                 echo "                                                <tr>
  185.                                                     <td style=\"max-width: 90px;\">
  186.                                                         <a href=\"";
  187.                 // line 55
  188.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("tenders_page", ["id" => twig_get_attribute($this->env$this->source$context["tender"], "id", [], "any"falsefalsefalse55)]), "html"nulltrue);
  189.                 echo "\">
  190.                                                             ";
  191.                 // line 56
  192.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["tender"], "category", [], "any"falsefalsefalse56), "html"nulltrue);
  193.                 echo "
  194.                                                         </a>
  195.                                                     </td>
  196.                                                     <td class=\"text-truncate\" style=\"max-width: 300px;\">
  197.                                                         <a class=\"text-black text-uppercase font-weight-bold tender-desc\" href=\"";
  198.                 // line 60
  199.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("tenders_page", ["id" => twig_get_attribute($this->env$this->source$context["tender"], "id", [], "any"falsefalsefalse60)]), "html"nulltrue);
  200.                 echo "\">
  201.                                                             ";
  202.                 // line 61
  203.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["tender"], "contractDescription", [], "any"falsefalsefalse61), "html"nulltrue);
  204.                 echo "
  205.                                                         </a>
  206.                                                     </td>
  207.                                                     <td class=\"text-truncate\" style=\"max-width: 120px;\">
  208.                                                         <a href=\"";
  209.                 // line 65
  210.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("tenders_page", ["id" => twig_get_attribute($this->env$this->source$context["tender"], "id", [], "any"falsefalsefalse65)]), "html"nulltrue);
  211.                 echo "\">
  212.                                                             ";
  213.                 // line 66
  214.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["tender"], "projectNumber", [], "any"falsefalsefalse66), "html"nulltrue);
  215.                 echo "
  216.                                                         </a>
  217.                                                     </td>
  218.                                                     <td style=\"max-width: 120px;\">
  219.                                                         <a href=\"";
  220.                 // line 70
  221.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("tenders_page", ["id" => twig_get_attribute($this->env$this->source$context["tender"], "id", [], "any"falsefalsefalse70)]), "html"nulltrue);
  222.                 echo "\">
  223.                                                             ";
  224.                 // line 71
  225.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["tender"], "created", [], "any"falsefalsefalse71), "Y-m-d"), "html"nulltrue);
  226.                 echo "
  227.                                                         </a>
  228.                                                     </td>
  229.                                                     <td style=\"max-width: 150px;\">
  230.                                                         <a href=\"";
  231.                 // line 75
  232.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("tenders_page", ["id" => twig_get_attribute($this->env$this->source$context["tender"], "id", [], "any"falsefalsefalse75)]), "html"nulltrue);
  233.                 echo "\">
  234.                                                             ";
  235.                 // line 76
  236.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["tender"], "closingDate", [], "any"falsefalsefalse76), "Y-m-d"), "html"nulltrue);
  237.                 echo "
  238.                                                             ";
  239.                 // line 77
  240.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["tender"], "closingTime", [], "any"falsefalsefalse77), "html"nulltrue);
  241.                 echo ":00:00
  242.                                                         </a>
  243.                                                     </td>
  244.                                                 </tr>
  245.                                             ";
  246.             }
  247.             $_parent $context['_parent'];
  248.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tender'], $context['_parent'], $context['loop']);
  249.             $context array_intersect_key($context$_parent) + $_parent;
  250.             // line 82
  251.             echo "                                        ";
  252.         } else {
  253.             // line 83
  254.             echo "                                            <tr>
  255.                                                 <td colspan=\"5\">
  256.                                                     There are currently no search results for <b><i>";
  257.             // line 85
  258.             echo twig_escape_filter($this->env, (isset($context["search_criteria"]) || array_key_exists("search_criteria"$context) ? $context["search_criteria"] : (function () { throw new RuntimeError('Variable "search_criteria" does not exist.'85$this->source); })()), "html"nulltrue);
  259.             echo "</i></b>.
  260.                                                 </td>
  261.                                             </tr>
  262.                                         ";
  263.         }
  264.         // line 89
  265.         echo "                                    </tbody>
  266.                                 </table>
  267.                             </div>
  268.                             <!-- Mobile -->
  269.                             <div class=\"d-block d-md-none\">
  270.                                 ";
  271.         // line 95
  272.         if ((twig_length_filter($this->env, (isset($context["tenders"]) || array_key_exists("tenders"$context) ? $context["tenders"] : (function () { throw new RuntimeError('Variable "tenders" does not exist.'95$this->source); })())) > 0)) {
  273.             // line 96
  274.             echo "                                    ";
  275.             $context['_parent'] = $context;
  276.             $context['_seq'] = twig_ensure_traversable((isset($context["tenders"]) || array_key_exists("tenders"$context) ? $context["tenders"] : (function () { throw new RuntimeError('Variable "tenders" does not exist.'96$this->source); })()));
  277.             foreach ($context['_seq'] as $context["_key"] => $context["tender"]) {
  278.                 // line 97
  279.                 echo "                                        <div class=\"row rain-forest\">
  280.                                             <div class=\"col-12 font-weight-bold text-white\" style=\"padding: 15px\">
  281.                                                 ";
  282.                 // line 99
  283.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["tender"], "contractDescription", [], "any"falsefalsefalse99), "html"nulltrue);
  284.                 echo "
  285.                                             </div>
  286.                                         </div>
  287.                                         <div class=\"row\" style=\"background-color:#f0f0f0\">
  288.                                             <div class=\"col-12\" style=\"padding: 15px\">
  289.                                                 <b>Category:</b> ";
  290.                 // line 104
  291.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["tender"], "category", [], "any"falsefalsefalse104), "html"nulltrue);
  292.                 echo "
  293.                                             </div>
  294.                                         </div>
  295.                                         <div class=\"row bl br\">
  296.                                             <div class=\"col-12 teaser-3-lines\" style=\"padding: 15px\">
  297.                                                 <a href=\"";
  298.                 // line 109
  299.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("tenders_page", ["id" => twig_get_attribute($this->env$this->source$context["tender"], "id", [], "any"falsefalsefalse109)]), "html"nulltrue);
  300.                 echo "\">
  301.                                                     ";
  302.                 // line 110
  303.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["tender"], "projectNumber", [], "any"falsefalsefalse110), "html"nulltrue);
  304.                 echo "
  305.                                                 </a>
  306.                                             </div>
  307.                                         </div>
  308.                                         <div class=\"row\" style=\"background-color:#f0f0f0\">
  309.                                             <div class=\"col-12\" style=\"padding: 15px\">
  310.                                                 <a href=\"";
  311.                 // line 116
  312.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("tenders_page", ["id" => twig_get_attribute($this->env$this->source$context["tender"], "id", [], "any"falsefalsefalse116)]), "html"nulltrue);
  313.                 echo "\">
  314.                                                     <b>Published:</b> ";
  315.                 // line 117
  316.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["tender"], "created", [], "any"falsefalsefalse117), "Y-m-d"), "html"nulltrue);
  317.                 echo "
  318.                                                 </a>
  319.                                             </div>
  320.                                         </div>
  321.                                         <div class=\"row bl br bb\" style=\"margin-bottom: 15px\">
  322.                                             <div class=\"col-12\" style=\"padding: 15px;\">
  323.                                                 <a href=\"";
  324.                 // line 123
  325.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("tenders_page", ["id" => twig_get_attribute($this->env$this->source$context["tender"], "id", [], "any"falsefalsefalse123)]), "html"nulltrue);
  326.                 echo "\">
  327.                                                     <b>Closing Date:</b> ";
  328.                 // line 124
  329.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["tender"], "closingDate", [], "any"falsefalsefalse124), "Y-m-d"), "html"nulltrue);
  330.                 echo "
  331.                                                 </a>
  332.                                             </div>
  333.                                         </div>
  334.                                     ";
  335.             }
  336.             $_parent $context['_parent'];
  337.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tender'], $context['_parent'], $context['loop']);
  338.             $context array_intersect_key($context$_parent) + $_parent;
  339.             // line 129
  340.             echo "                                ";
  341.         } else {
  342.             // line 130
  343.             echo "                                    <div class=\"row\">
  344.                                         <div class=\"col-12\">
  345.                                             There are currently no search results for <b><i>";
  346.             // line 132
  347.             echo twig_escape_filter($this->env, (isset($context["search_criteria"]) || array_key_exists("search_criteria"$context) ? $context["search_criteria"] : (function () { throw new RuntimeError('Variable "search_criteria" does not exist.'132$this->source); })()), "html"nulltrue);
  348.             echo "</i></b>.
  349.                                         </div>
  350.                                     </div>
  351.                                 ";
  352.         }
  353.         // line 136
  354.         echo "                            </div>
  355.                         </div>
  356.                     </div>
  357.                 </div>
  358.                 <div class=\"col-md-3\" style=\"margin-top: 18px\">
  359.                     ";
  360.         // line 142
  361.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\CarouselController::getCarousel", ["page" => "tenders"]));
  362.         // line 147
  363.         echo "
  364.                 </div>
  365.             </div>
  366.         </div>
  367.     ";
  368.         
  369.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  370.         
  371.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  372.     }
  373.     public function getTemplateName()
  374.     {
  375.         return "frontend/tender-search.html.twig";
  376.     }
  377.     public function isTraitable()
  378.     {
  379.         return false;
  380.     }
  381.     public function getDebugInfo()
  382.     {
  383.         return array (  396 => 147,  394 => 142,  386 => 136,  379 => 132,  375 => 130,  372 => 129,  361 => 124,  357 => 123,  348 => 117,  344 => 116,  335 => 110,  331 => 109,  323 => 104,  315 => 99,  311 => 97,  306 => 96,  304 => 95,  296 => 89,  289 => 85,  285 => 83,  282 => 82,  271 => 77,  267 => 76,  263 => 75,  256 => 71,  252 => 70,  245 => 66,  241 => 65,  234 => 61,  230 => 60,  223 => 56,  219 => 55,  215 => 53,  210 => 52,  208 => 51,  186 => 32,  179 => 27,  169 => 26,  156 => 23,  146 => 22,  134 => 20,  130 => 19,  126 => 18,  121 => 17,  115 => 14,  111 => 12,  107 => 11,  103 => 9,  100 => 8,  97 => 7,  87 => 6,  74 => 4,  71 => 3,  61 => 2,  38 => 1,);
  384.     }
  385.     public function getSourceContext()
  386.     {
  387.         return new Source("{% extends 'base.html.twig' %}
  388.     {% block title %}
  389.         {% set metaTitle = 'SANRAL eSDD - ' ~ region|capitalize %}
  390.         {{ metaTitle }}
  391.     {% endblock %}
  392.     {% block meta_decription %}
  393.         {% set metaTitle = 'SANRAL eSDD - ' ~ region|capitalize %}
  394.         {% set metaDescription = \"SMME's can find out more about SANRAL tenders in the \" ~ region|capitalize %}
  395.         <meta name=\"twitter:card\" content=\"summary\" />
  396.         <meta name=\"twitter:site\" content=\"Sanral\" />
  397.         <meta name=\"twitter:title\" content=\"{{ metaTitle }}\" />
  398.         <meta name=\"twitter:description\" content=\"{{ metaDescription }}\" />
  399. {#        <meta name=\"twitter:image\" content=\"https://hugenouttunnel.nerdw.com/images/home/{{ home_data.ogImage }}\" />#}
  400.         <meta name=\"twitter:url\" content=\"{{ app.request.uri }}\" />
  401. {#        <meta name=\"og:image\" content=\"https://hugenouttunnel.nerdw.com/images/home/{{ home_data.ogImage }}\" />#}
  402.         <meta name=\"og:title\" content=\"{{ metaTitle }}\" />
  403.         <meta name=\"og:description\" content=\"{{ metaDescription }}\" />
  404.         <meta name=\"og:url\" content=\"{{ app.request.uri }}\" />
  405.         <meta name=\"description\" content=\"{{ metaDescription }}\">
  406.     {% endblock %}
  407.     {% block stylesheets %}
  408.         {{ parent() }}
  409.     {% endblock %}
  410.     {% block layout %}
  411.         <div id=\"content-wrapper\" class=\"container-fluid\">
  412.             <div class=\"row no-gutters py-4\">
  413.                 <div class=\"col-md-9 px-3\">
  414.                     <div class=\"row mb-3\">
  415.                         <div class=\"col-12 no-gutters-sm\">
  416.                             {{ render(controller('App\\\\Controller\\\\TendersController::getSearchForm')) }}
  417.                         </div>
  418.                     </div>
  419.                     <div class=\"row\">
  420.                         <div class=\"col-12 no-gutters-left\">
  421.                             <!-- Desktop -->
  422.                             <div class=\"table-responsive-md d-none d-md-block\">
  423.                                 <table class=\"table custom-table\">
  424.                                     <thead class=\"rain-forest\">
  425.                                     <tr class=\"text-white text-uppercase font-weight-light table-head\">
  426.                                         <th style=\"max-width: 90px;\" scope=\"col\">Category</th>
  427.                                         <th scope=\"col\">Tender Description</th>
  428.                                         <th style=\"max-width: 120px;\" scope=\"col\">Tender Number</th>
  429.                                         <th style=\"max-width: 120px;\" scope=\"col\">Published</th>
  430.                                         <th style=\"max-width: 150px;\" scope=\"col\">Closing Date &amp; Time</th>
  431.                                     </tr>
  432.                                     </thead>
  433.                                     <tbody>
  434.                                         {% if tenders|length > 0 %}
  435.                                             {% for tender in tenders %}
  436.                                                 <tr>
  437.                                                     <td style=\"max-width: 90px;\">
  438.                                                         <a href=\"{{ path('tenders_page',{'id': tender.id}) }}\">
  439.                                                             {{ tender.category }}
  440.                                                         </a>
  441.                                                     </td>
  442.                                                     <td class=\"text-truncate\" style=\"max-width: 300px;\">
  443.                                                         <a class=\"text-black text-uppercase font-weight-bold tender-desc\" href=\"{{ path('tenders_page',{'id': tender.id}) }}\">
  444.                                                             {{ tender.contractDescription }}
  445.                                                         </a>
  446.                                                     </td>
  447.                                                     <td class=\"text-truncate\" style=\"max-width: 120px;\">
  448.                                                         <a href=\"{{ path('tenders_page',{'id': tender.id}) }}\">
  449.                                                             {{ tender.projectNumber }}
  450.                                                         </a>
  451.                                                     </td>
  452.                                                     <td style=\"max-width: 120px;\">
  453.                                                         <a href=\"{{ path('tenders_page',{'id': tender.id}) }}\">
  454.                                                             {{ tender.created|date('Y-m-d') }}
  455.                                                         </a>
  456.                                                     </td>
  457.                                                     <td style=\"max-width: 150px;\">
  458.                                                         <a href=\"{{ path('tenders_page',{'id': tender.id}) }}\">
  459.                                                             {{ tender.closingDate|date('Y-m-d') }}
  460.                                                             {{ tender.closingTime }}:00:00
  461.                                                         </a>
  462.                                                     </td>
  463.                                                 </tr>
  464.                                             {%  endfor %}
  465.                                         {% else %}
  466.                                             <tr>
  467.                                                 <td colspan=\"5\">
  468.                                                     There are currently no search results for <b><i>{{ search_criteria }}</i></b>.
  469.                                                 </td>
  470.                                             </tr>
  471.                                         {% endif %}
  472.                                     </tbody>
  473.                                 </table>
  474.                             </div>
  475.                             <!-- Mobile -->
  476.                             <div class=\"d-block d-md-none\">
  477.                                 {% if tenders|length > 0 %}
  478.                                     {% for tender in tenders %}
  479.                                         <div class=\"row rain-forest\">
  480.                                             <div class=\"col-12 font-weight-bold text-white\" style=\"padding: 15px\">
  481.                                                 {{ tender.contractDescription }}
  482.                                             </div>
  483.                                         </div>
  484.                                         <div class=\"row\" style=\"background-color:#f0f0f0\">
  485.                                             <div class=\"col-12\" style=\"padding: 15px\">
  486.                                                 <b>Category:</b> {{ tender.category }}
  487.                                             </div>
  488.                                         </div>
  489.                                         <div class=\"row bl br\">
  490.                                             <div class=\"col-12 teaser-3-lines\" style=\"padding: 15px\">
  491.                                                 <a href=\"{{ path('tenders_page',{'id': tender.id}) }}\">
  492.                                                     {{ tender.projectNumber }}
  493.                                                 </a>
  494.                                             </div>
  495.                                         </div>
  496.                                         <div class=\"row\" style=\"background-color:#f0f0f0\">
  497.                                             <div class=\"col-12\" style=\"padding: 15px\">
  498.                                                 <a href=\"{{ path('tenders_page',{'id': tender.id}) }}\">
  499.                                                     <b>Published:</b> {{ tender.created|date('Y-m-d') }}
  500.                                                 </a>
  501.                                             </div>
  502.                                         </div>
  503.                                         <div class=\"row bl br bb\" style=\"margin-bottom: 15px\">
  504.                                             <div class=\"col-12\" style=\"padding: 15px;\">
  505.                                                 <a href=\"{{ path('tenders_page',{'id': tender.id}) }}\">
  506.                                                     <b>Closing Date:</b> {{ tender.closingDate|date('Y-m-d') }}
  507.                                                 </a>
  508.                                             </div>
  509.                                         </div>
  510.                                     {% endfor %}
  511.                                 {%  else %}
  512.                                     <div class=\"row\">
  513.                                         <div class=\"col-12\">
  514.                                             There are currently no search results for <b><i>{{ search_criteria }}</i></b>.
  515.                                         </div>
  516.                                     </div>
  517.                                 {% endif %}
  518.                             </div>
  519.                         </div>
  520.                     </div>
  521.                 </div>
  522.                 <div class=\"col-md-3\" style=\"margin-top: 18px\">
  523.                     {{ render(controller(
  524.                         'App\\\\Controller\\\\CarouselController::getCarousel',
  525.                         {
  526.                             'page': 'tenders'
  527.                         }
  528.                     )) }}
  529.                 </div>
  530.             </div>
  531.         </div>
  532.     {% endblock %}""frontend/tender-search.html.twig""/var/www/html/sanralsmme/templates/frontend/tender-search.html.twig");
  533.     }
  534. }