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
<?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 ;
/* frontend/tender-search.html.twig */
class __TwigTemplate_cc0dad45bba838228c5ebedd29ddce54563a3b53e65110aa1db0ea3ea7124349 extends Template
{
private $source ;
private $macros = [];
public function __construct ( Environment $env )
{
parent :: __construct ( $env );
$this -> source = $this -> getSourceContext ();
$this -> blocks = [
'title' => [ $this , 'block_title' ],
'meta_decription' => [ $this , 'block_meta_decription' ],
'stylesheets' => [ $this , 'block_stylesheets' ],
'layout' => [ $this , 'block_layout' ],
];
}
protected function doGetParent (array $context )
{
// line 1
return "base.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" , "frontend/tender-search.html.twig" ));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 -> enter ( $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "template" , "frontend/tender-search.html.twig" ));
$this -> parent = $this -> loadTemplate ( "base.html.twig" , "frontend/tender-search.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 2
public function block_title ( $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" , "title" ));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 -> enter ( $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "title" ));
// line 3
echo " " ;
$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 ); })())));
// line 4
echo " " ;
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" , null , true );
echo "
" ;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 -> leave ( $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof );
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e -> leave ( $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof );
}
// line 6
public function block_meta_decription ( $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" , "meta_decription" ));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 -> enter ( $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "meta_decription" ));
// line 7
echo " " ;
$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 ); })())));
// line 8
echo " " ;
$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 ); })())));
// line 9
echo " <meta name=\"twitter:card\" content=\"summary\" />
<meta name=\"twitter:site\" content=\"Sanral\" />
<meta name=\"twitter:title\" content=\"" ;
// line 11
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" , null , true );
echo "\" />
<meta name=\"twitter:description\" content=\"" ;
// line 12
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" , null , true );
echo "\" />
" ;
// line 14
echo " <meta name=\"twitter:url\" content=\"" ;
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "app" ]) || array_key_exists ( "app" , $context ) ? $context [ "app" ] : (function () { throw new RuntimeError ( 'Variable "app" does not exist.' , 14 , $this -> source ); })()), "request" , [], "any" , false , false , false , 14 ), "uri" , [], "any" , false , false , false , 14 ), "html" , null , true );
echo "\" />
" ;
// line 17
echo " <meta name=\"og:title\" content=\"" ;
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" , null , true );
echo "\" />
<meta name=\"og:description\" content=\"" ;
// line 18
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" , null , true );
echo "\" />
<meta name=\"og:url\" content=\"" ;
// line 19
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "app" ]) || array_key_exists ( "app" , $context ) ? $context [ "app" ] : (function () { throw new RuntimeError ( 'Variable "app" does not exist.' , 19 , $this -> source ); })()), "request" , [], "any" , false , false , false , 19 ), "uri" , [], "any" , false , false , false , 19 ), "html" , null , true );
echo "\" />
<meta name=\"description\" content=\"" ;
// line 20
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" , null , true );
echo "\">
" ;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 -> leave ( $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof );
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e -> leave ( $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof );
}
// line 22
public function block_stylesheets ( $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" , "stylesheets" ));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 -> enter ( $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "stylesheets" ));
// line 23
echo " " ;
$this -> displayParentBlock ( "stylesheets" , $context , $blocks );
echo "
" ;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 -> leave ( $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof );
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e -> leave ( $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof );
}
// line 26
public function block_layout ( $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" , "layout" ));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 -> enter ( $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "layout" ));
// line 27
echo " <div id=\"content-wrapper\" class=\"container-fluid\">
<div class=\"row no-gutters py-4\">
<div class=\"col-md-9 px-3\">
<div class=\"row mb-3\">
<div class=\"col-12 no-gutters-sm\">
" ;
// line 32
echo $this -> env -> getRuntime ( 'Symfony\Bridge\Twig\Extension\HttpKernelRuntime' )-> renderFragment ( Symfony\Bridge\Twig\Extension\HttpKernelExtension :: controller ( "App\\Controller\\TendersController::getSearchForm" ));
echo "
</div>
</div>
<div class=\"row\">
<div class=\"col-12 no-gutters-left\">
<!-- Desktop -->
<div class=\"table-responsive-md d-none d-md-block\">
<table class=\"table custom-table\">
<thead class=\"rain-forest\">
<tr class=\"text-white text-uppercase font-weight-light table-head\">
<th style=\"max-width: 90px;\" scope=\"col\">Category</th>
<th scope=\"col\">Tender Description</th>
<th style=\"max-width: 120px;\" scope=\"col\">Tender Number</th>
<th style=\"max-width: 120px;\" scope=\"col\">Published</th>
<th style=\"max-width: 150px;\" scope=\"col\">Closing Date & Time</th>
</tr>
</thead>
<tbody>
" ;
// line 51
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 )) {
// line 52
echo " " ;
$context [ '_parent' ] = $context ;
$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 ); })()));
foreach ( $context [ '_seq' ] as $context [ "_key" ] => $context [ "tender" ]) {
// line 53
echo " <tr>
<td style=\"max-width: 90px;\">
<a href=\"" ;
// line 55
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" , false , false , false , 55 )]), "html" , null , true );
echo "\">
" ;
// line 56
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "tender" ], "category" , [], "any" , false , false , false , 56 ), "html" , null , true );
echo "
</a>
</td>
<td class=\"text-truncate\" style=\"max-width: 300px;\">
<a class=\"text-black text-uppercase font-weight-bold tender-desc\" href=\"" ;
// line 60
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" , false , false , false , 60 )]), "html" , null , true );
echo "\">
" ;
// line 61
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "tender" ], "contractDescription" , [], "any" , false , false , false , 61 ), "html" , null , true );
echo "
</a>
</td>
<td class=\"text-truncate\" style=\"max-width: 120px;\">
<a href=\"" ;
// line 65
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" , false , false , false , 65 )]), "html" , null , true );
echo "\">
" ;
// line 66
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "tender" ], "projectNumber" , [], "any" , false , false , false , 66 ), "html" , null , true );
echo "
</a>
</td>
<td style=\"max-width: 120px;\">
<a href=\"" ;
// line 70
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" , false , false , false , 70 )]), "html" , null , true );
echo "\">
" ;
// line 71
echo twig_escape_filter ( $this -> env , twig_date_format_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "tender" ], "created" , [], "any" , false , false , false , 71 ), "Y-m-d" ), "html" , null , true );
echo "
</a>
</td>
<td style=\"max-width: 150px;\">
<a href=\"" ;
// line 75
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" , false , false , false , 75 )]), "html" , null , true );
echo "\">
" ;
// line 76
echo twig_escape_filter ( $this -> env , twig_date_format_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "tender" ], "closingDate" , [], "any" , false , false , false , 76 ), "Y-m-d" ), "html" , null , true );
echo "
" ;
// line 77
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "tender" ], "closingTime" , [], "any" , false , false , false , 77 ), "html" , null , true );
echo ":00:00
</a>
</td>
</tr>
" ;
}
$_parent = $context [ '_parent' ];
unset( $context [ '_seq' ], $context [ '_iterated' ], $context [ '_key' ], $context [ 'tender' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 82
echo " " ;
} else {
// line 83
echo " <tr>
<td colspan=\"5\">
There are currently no search results for <b><i>" ;
// line 85
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" , null , true );
echo "</i></b>.
</td>
</tr>
" ;
}
// line 89
echo " </tbody>
</table>
</div>
<!-- Mobile -->
<div class=\"d-block d-md-none\">
" ;
// line 95
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 )) {
// line 96
echo " " ;
$context [ '_parent' ] = $context ;
$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 ); })()));
foreach ( $context [ '_seq' ] as $context [ "_key" ] => $context [ "tender" ]) {
// line 97
echo " <div class=\"row rain-forest\">
<div class=\"col-12 font-weight-bold text-white\" style=\"padding: 15px\">
" ;
// line 99
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "tender" ], "contractDescription" , [], "any" , false , false , false , 99 ), "html" , null , true );
echo "
</div>
</div>
<div class=\"row\" style=\"background-color:#f0f0f0\">
<div class=\"col-12\" style=\"padding: 15px\">
<b>Category:</b> " ;
// line 104
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "tender" ], "category" , [], "any" , false , false , false , 104 ), "html" , null , true );
echo "
</div>
</div>
<div class=\"row bl br\">
<div class=\"col-12 teaser-3-lines\" style=\"padding: 15px\">
<a href=\"" ;
// line 109
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" , false , false , false , 109 )]), "html" , null , true );
echo "\">
" ;
// line 110
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "tender" ], "projectNumber" , [], "any" , false , false , false , 110 ), "html" , null , true );
echo "
</a>
</div>
</div>
<div class=\"row\" style=\"background-color:#f0f0f0\">
<div class=\"col-12\" style=\"padding: 15px\">
<a href=\"" ;
// line 116
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" , false , false , false , 116 )]), "html" , null , true );
echo "\">
<b>Published:</b> " ;
// line 117
echo twig_escape_filter ( $this -> env , twig_date_format_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "tender" ], "created" , [], "any" , false , false , false , 117 ), "Y-m-d" ), "html" , null , true );
echo "
</a>
</div>
</div>
<div class=\"row bl br bb\" style=\"margin-bottom: 15px\">
<div class=\"col-12\" style=\"padding: 15px;\">
<a href=\"" ;
// line 123
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" , false , false , false , 123 )]), "html" , null , true );
echo "\">
<b>Closing Date:</b> " ;
// line 124
echo twig_escape_filter ( $this -> env , twig_date_format_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "tender" ], "closingDate" , [], "any" , false , false , false , 124 ), "Y-m-d" ), "html" , null , true );
echo "
</a>
</div>
</div>
" ;
}
$_parent = $context [ '_parent' ];
unset( $context [ '_seq' ], $context [ '_iterated' ], $context [ '_key' ], $context [ 'tender' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 129
echo " " ;
} else {
// line 130
echo " <div class=\"row\">
<div class=\"col-12\">
There are currently no search results for <b><i>" ;
// line 132
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" , null , true );
echo "</i></b>.
</div>
</div>
" ;
}
// line 136
echo " </div>
</div>
</div>
</div>
<div class=\"col-md-3\" style=\"margin-top: 18px\">
" ;
// line 142
echo $this -> env -> getRuntime ( 'Symfony\Bridge\Twig\Extension\HttpKernelRuntime' )-> renderFragment ( Symfony\Bridge\Twig\Extension\HttpKernelExtension :: controller ( "App\\Controller\\CarouselController::getCarousel" , [ "page" => "tenders" ]));
// line 147
echo "
</div>
</div>
</div>
" ;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 -> leave ( $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof );
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e -> leave ( $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof );
}
public function getTemplateName ()
{
return "frontend/tender-search.html.twig" ;
}
public function isTraitable ()
{
return false ;
}
public function getDebugInfo ()
{
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 ,);
}
public function getSourceContext ()
{
return new Source ( "{% extends 'base.html.twig' %}
{% block title %}
{% set metaTitle = 'SANRAL eSDD - ' ~ region|capitalize %}
{{ metaTitle }}
{% endblock %}
{% block meta_decription %}
{% set metaTitle = 'SANRAL eSDD - ' ~ region|capitalize %}
{% set metaDescription = \"SMME's can find out more about SANRAL tenders in the \" ~ region|capitalize %}
<meta name=\"twitter:card\" content=\"summary\" />
<meta name=\"twitter:site\" content=\"Sanral\" />
<meta name=\"twitter:title\" content=\"{{ metaTitle }}\" />
<meta name=\"twitter:description\" content=\"{{ metaDescription }}\" />
{# <meta name=\"twitter:image\" content=\"https://hugenouttunnel.nerdw.com/images/home/{{ home_data.ogImage }}\" />#}
<meta name=\"twitter:url\" content=\"{{ app.request.uri }}\" />
{# <meta name=\"og:image\" content=\"https://hugenouttunnel.nerdw.com/images/home/{{ home_data.ogImage }}\" />#}
<meta name=\"og:title\" content=\"{{ metaTitle }}\" />
<meta name=\"og:description\" content=\"{{ metaDescription }}\" />
<meta name=\"og:url\" content=\"{{ app.request.uri }}\" />
<meta name=\"description\" content=\"{{ metaDescription }}\">
{% endblock %}
{% block stylesheets %}
{{ parent() }}
{% endblock %}
{% block layout %}
<div id=\"content-wrapper\" class=\"container-fluid\">
<div class=\"row no-gutters py-4\">
<div class=\"col-md-9 px-3\">
<div class=\"row mb-3\">
<div class=\"col-12 no-gutters-sm\">
{{ render(controller('App\\\\Controller\\\\TendersController::getSearchForm')) }}
</div>
</div>
<div class=\"row\">
<div class=\"col-12 no-gutters-left\">
<!-- Desktop -->
<div class=\"table-responsive-md d-none d-md-block\">
<table class=\"table custom-table\">
<thead class=\"rain-forest\">
<tr class=\"text-white text-uppercase font-weight-light table-head\">
<th style=\"max-width: 90px;\" scope=\"col\">Category</th>
<th scope=\"col\">Tender Description</th>
<th style=\"max-width: 120px;\" scope=\"col\">Tender Number</th>
<th style=\"max-width: 120px;\" scope=\"col\">Published</th>
<th style=\"max-width: 150px;\" scope=\"col\">Closing Date & Time</th>
</tr>
</thead>
<tbody>
{% if tenders|length > 0 %}
{% for tender in tenders %}
<tr>
<td style=\"max-width: 90px;\">
<a href=\"{{ path('tenders_page',{'id': tender.id}) }}\">
{{ tender.category }}
</a>
</td>
<td class=\"text-truncate\" style=\"max-width: 300px;\">
<a class=\"text-black text-uppercase font-weight-bold tender-desc\" href=\"{{ path('tenders_page',{'id': tender.id}) }}\">
{{ tender.contractDescription }}
</a>
</td>
<td class=\"text-truncate\" style=\"max-width: 120px;\">
<a href=\"{{ path('tenders_page',{'id': tender.id}) }}\">
{{ tender.projectNumber }}
</a>
</td>
<td style=\"max-width: 120px;\">
<a href=\"{{ path('tenders_page',{'id': tender.id}) }}\">
{{ tender.created|date('Y-m-d') }}
</a>
</td>
<td style=\"max-width: 150px;\">
<a href=\"{{ path('tenders_page',{'id': tender.id}) }}\">
{{ tender.closingDate|date('Y-m-d') }}
{{ tender.closingTime }}:00:00
</a>
</td>
</tr>
{% endfor %}
{% else %}
<tr>
<td colspan=\"5\">
There are currently no search results for <b><i>{{ search_criteria }}</i></b>.
</td>
</tr>
{% endif %}
</tbody>
</table>
</div>
<!-- Mobile -->
<div class=\"d-block d-md-none\">
{% if tenders|length > 0 %}
{% for tender in tenders %}
<div class=\"row rain-forest\">
<div class=\"col-12 font-weight-bold text-white\" style=\"padding: 15px\">
{{ tender.contractDescription }}
</div>
</div>
<div class=\"row\" style=\"background-color:#f0f0f0\">
<div class=\"col-12\" style=\"padding: 15px\">
<b>Category:</b> {{ tender.category }}
</div>
</div>
<div class=\"row bl br\">
<div class=\"col-12 teaser-3-lines\" style=\"padding: 15px\">
<a href=\"{{ path('tenders_page',{'id': tender.id}) }}\">
{{ tender.projectNumber }}
</a>
</div>
</div>
<div class=\"row\" style=\"background-color:#f0f0f0\">
<div class=\"col-12\" style=\"padding: 15px\">
<a href=\"{{ path('tenders_page',{'id': tender.id}) }}\">
<b>Published:</b> {{ tender.created|date('Y-m-d') }}
</a>
</div>
</div>
<div class=\"row bl br bb\" style=\"margin-bottom: 15px\">
<div class=\"col-12\" style=\"padding: 15px;\">
<a href=\"{{ path('tenders_page',{'id': tender.id}) }}\">
<b>Closing Date:</b> {{ tender.closingDate|date('Y-m-d') }}
</a>
</div>
</div>
{% endfor %}
{% else %}
<div class=\"row\">
<div class=\"col-12\">
There are currently no search results for <b><i>{{ search_criteria }}</i></b>.
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
<div class=\"col-md-3\" style=\"margin-top: 18px\">
{{ render(controller(
'App\\\\Controller\\\\CarouselController::getCarousel',
{
'page': 'tenders'
}
)) }}
</div>
</div>
</div>
{% endblock %}" , "frontend/tender-search.html.twig" , "/var/www/html/sanralsmme/templates/frontend/tender-search.html.twig" );
}
}