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/index.html.twig */
class __TwigTemplate_238132765cf9efccff7b57619a46a0e8b8df0afc30570956c2cca0900ca1dd81 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' ],
'javascripts' => [ $this , 'block_javascripts' ],
];
}
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/index.html.twig" ));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 -> enter ( $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "template" , "frontend/index.html.twig" ));
$this -> parent = $this -> loadTemplate ( "base.html.twig" , "frontend/index.html.twig" , 1 );
$this -> parent -> display ( $context , array_merge ( $this -> blocks , $blocks ));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e -> leave ( $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof );
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 -> leave ( $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof );
}
// line 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 - Electronic Supplier Development Desk" ;
// 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 - Electronic Supplier Development Desk" ;
// line 8
echo " " ;
$context [ "metaDescription" ] = "SMME's can make use of this portal to attain SANRAL tenders" ;
// 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 class=\"container-fluid\">
" ;
// line 28
if ( !( null === (isset( $context [ "copy" ]) || array_key_exists ( "copy" , $context ) ? $context [ "copy" ] : (function () { throw new RuntimeError ( 'Variable "copy" does not exist.' , 28 , $this -> source ); })()))) {
// line 29
echo " " ;
echo (isset( $context [ "copy" ]) || array_key_exists ( "copy" , $context ) ? $context [ "copy" ] : (function () { throw new RuntimeError ( 'Variable "copy" does not exist.' , 29 , $this -> source ); })());
echo "
" ;
}
// line 31
echo " <div class=\"row\">
<div class=\"col-12 col-md-9\">
<div class=\"row\">
<div class=\"col-12\">
<div style=\"border: solid 2px #ff6600;margin-bottom: 22px\">
<div class=\"row\">
<div class=\"col-12 text-center\" style=\"padding: 13px;display: flex;align-items: center;justify-content: center;\">
<i class=\"fas fa-info-circle\" style=\"font-size: 35px;color: #ff6600;margin-right: 20px\"></i>
All tenders advertised here are for 2nd tier procurement only. Visit
<a href=\"https://www.nra.co.za\" target=\"_blank\" style=\"color: #ff6600\">www.nra.co.za</a> for other tenders.
</div>
</div>
</div>
</div>
<div class=\"col-12 col-md-4\" style=\"margin-bottom: 30px\">
<div class=\"card\">
<div class=\"card-header clementine p-0\" style=\"padding: 6px 14px !important\">
<nav class=\"navbar card-nav\">
<span class=\"navbar-brand mb-0 h1 text-uppercase text-white card-title\">Closing Soon</span>
</nav>
</div>
<ul class=\"list-group list-group-flush\">
" ;
// line 53
if (( twig_length_filter ( $this -> env , (isset( $context [ "closing_soon" ]) || array_key_exists ( "closing_soon" , $context ) ? $context [ "closing_soon" ] : (function () { throw new RuntimeError ( 'Variable "closing_soon" does not exist.' , 53 , $this -> source ); })())) > 0 )) {
// line 54
echo " " ;
$context [ '_parent' ] = $context ;
$context [ '_seq' ] = twig_ensure_traversable ((isset( $context [ "closing_soon" ]) || array_key_exists ( "closing_soon" , $context ) ? $context [ "closing_soon" ] : (function () { throw new RuntimeError ( 'Variable "closing_soon" does not exist.' , 54 , $this -> source ); })()));
foreach ( $context [ '_seq' ] as $context [ "_key" ] => $context [ "closing" ]) {
// line 55
echo " <li class=\"list-group-item pb-1\">
<dl>
<dt class=\"pt-1\">
<a class=\"tender-title text-black teaser-2-lines\" href=\"" ;
// line 58
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 [ "closing" ], "id" , [], "any" , false , false , false , 58 )]), "html" , null , true );
echo "\">
" ;
// line 59
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "closing" ], "contractDescription" , [], "any" , false , false , false , 59 ), "html" , null , true );
echo "
</a>
</dt>
<dd class=\"py-0\">
<span>" ;
// line 63
echo twig_escape_filter ( $this -> env , twig_date_format_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "closing" ], "closingDate" , [], "any" , false , false , false , 63 ), "l d F Y" ), "html" , null , true );
echo "</span>
<span>
<p>Operations</p>
</span>
</dd>
</dl>
</li>
" ;
}
$_parent = $context [ '_parent' ];
unset( $context [ '_seq' ], $context [ '_iterated' ], $context [ '_key' ], $context [ 'closing' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 71
echo " " ;
} else {
// line 72
echo " <li class=\"list-group-item pb-1\">
There are no tenders closing soon.
<br>
</li>
" ;
}
// line 77
echo " </ul>
</div>
</div>
" ;
// line 80
$context [ '_parent' ] = $context ;
$context [ '_seq' ] = twig_ensure_traversable ((isset( $context [ "regions" ]) || array_key_exists ( "regions" , $context ) ? $context [ "regions" ] : (function () { throw new RuntimeError ( 'Variable "regions" does not exist.' , 80 , $this -> source ); })()));
foreach ( $context [ '_seq' ] as $context [ "_key" ] => $context [ "region_arr" ]) {
// line 81
echo " " ;
$context [ "regionId" ] = twig_get_attribute ( $this -> env , $this -> source , twig_get_attribute ( $this -> env , $this -> source , $context [ "region_arr" ], "region" , [], "array" , false , false , false , 81 ), "regionId" , [], "array" , false , false , false , 81 );
// line 82
echo " " ;
$context [ "regionName" ] = twig_get_attribute ( $this -> env , $this -> source , twig_get_attribute ( $this -> env , $this -> source , $context [ "region_arr" ], "region" , [], "array" , false , false , false , 82 ), "regionName" , [], "array" , false , false , false , 82 );
// line 83
echo " " ;
$context [ "thumb" ] = twig_get_attribute ( $this -> env , $this -> source , twig_get_attribute ( $this -> env , $this -> source , $context [ "region_arr" ], "region" , [], "array" , false , false , false , 83 ), "thumb" , [], "array" , false , false , false , 83 );
// line 84
echo " <div class=\"col-12 col-md-4\" style=\"margin-bottom: 30px\">
<div class=\"card\">
<div class=\"card-header rain-forest\">
<div class=\"row m-0\">
<div class=\"region-title text-white\">
<a class=\"navbar-brand text-white text-uppercase py-2\" href=\"" ;
// line 89
echo twig_escape_filter ( $this -> env , $this -> extensions [ 'Symfony\Bridge\Twig\Extension\RoutingExtension' ]-> getPath ( "tender_region_page" , [ "region" => twig_lower_filter ( $this -> env , twig_replace_filter ((isset( $context [ "regionName" ]) || array_key_exists ( "regionName" , $context ) ? $context [ "regionName" ] : (function () { throw new RuntimeError ( 'Variable "regionName" does not exist.' , 89 , $this -> source ); })()), [ " " => "-" ])), "region_id" => (isset( $context [ "regionId" ]) || array_key_exists ( "regionId" , $context ) ? $context [ "regionId" ] : (function () { throw new RuntimeError ( 'Variable "regionId" does not exist.' , 89 , $this -> source ); })())]), "html" , null , true );
echo "\">
" ;
// line 90
echo twig_escape_filter ( $this -> env , (isset( $context [ "regionName" ]) || array_key_exists ( "regionName" , $context ) ? $context [ "regionName" ] : (function () { throw new RuntimeError ( 'Variable "regionName" does not exist.' , 90 , $this -> source ); })()), "html" , null , true );
echo "
</a>
</div>
<div class=\"py-0 pl-3 info-icon ml-auto\">
<a type=\"button\" href=\"#\" target=\"_blank\" class=\"btn btn-link text-white tooltip-toggle\" title=\"Click for more regional information\">
<span class=\"tooltip-icon\">?</span>
<div class=\"tooltip p-3\">
<div class=\"row\">
<img src=\"" ;
// line 98
echo twig_escape_filter ( $this -> env , $this -> extensions [ 'Symfony\Bridge\Twig\Extension\AssetExtension' ]-> getAssetUrl (( "images/regions/" . (isset( $context [ "thumb" ]) || array_key_exists ( "thumb" , $context ) ? $context [ "thumb" ] : (function () { throw new RuntimeError ( 'Variable "thumb" does not exist.' , 98 , $this -> source ); })()))), "html" , null , true );
echo "\" class=\"img-fluid\" style=\"max-height: 80px; display: block;margin-left: auto;margin-right: auto\">
</div>
</div>
</a>
</div>
</div>
</div>
<ul class=\"list-group list-group-flush\">
" ;
// line 106
if (( twig_length_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , twig_get_attribute ( $this -> env , $this -> source , $context [ "region_arr" ], "region" , [], "array" , false , false , false , 106 ), "data" , [], "array" , false , false , false , 106 )) > 0 )) {
// line 107
echo " " ;
$context [ '_parent' ] = $context ;
$context [ '_seq' ] = twig_ensure_traversable ( twig_get_attribute ( $this -> env , $this -> source , twig_get_attribute ( $this -> env , $this -> source , $context [ "region_arr" ], "region" , [], "array" , false , false , false , 107 ), "data" , [], "array" , false , false , false , 107 ));
foreach ( $context [ '_seq' ] as $context [ "_key" ] => $context [ "region" ]) {
// line 108
echo " <li class=\"list-group-item pb-1\">
<dl>
<dt class=\"pt-1\">
<a class=\"tender-title text-black teaser-2-lines\" href=\"" ;
// line 111
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 [ "region" ], "id" , [], "any" , false , false , false , 111 )]), "html" , null , true );
echo "\">
" ;
// line 112
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "region" ], "contractDescription" , [], "any" , false , false , false , 112 ), "html" , null , true );
echo "
</a>
</dt>
<dd class=\"py-0\">
<span>" ;
// line 116
echo twig_escape_filter ( $this -> env , twig_date_format_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "region" ], "closingDate" , [], "any" , false , false , false , 116 ), "l d F Y" ), "html" , null , true );
echo "</span>
<span><p>" ;
// line 117
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "region" ], "category" , [], "any" , false , false , false , 117 ), "html" , null , true );
echo "</p></span>
</dd>
</dl>
</li>
" ;
}
$_parent = $context [ '_parent' ];
unset( $context [ '_seq' ], $context [ '_iterated' ], $context [ '_key' ], $context [ 'region' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 122
echo " " ;
} else {
// line 123
echo " <li class=\"list-group-item pb-1\">
There currently no advertised tenders in this region.
</li>
" ;
}
// line 127
echo " </ul>
" ;
// line 128
if (( twig_length_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , twig_get_attribute ( $this -> env , $this -> source , $context [ "region_arr" ], "region" , [], "array" , false , false , false , 128 ), "data" , [], "array" , false , false , false , 128 )) > 0 )) {
// line 129
echo " <div class=\"text-center\">
<a href=\"" ;
// line 130
echo twig_escape_filter ( $this -> env , $this -> extensions [ 'Symfony\Bridge\Twig\Extension\RoutingExtension' ]-> getPath ( "tender_region_page" , [ "region" => twig_lower_filter ( $this -> env , twig_replace_filter ((isset( $context [ "regionName" ]) || array_key_exists ( "regionName" , $context ) ? $context [ "regionName" ] : (function () { throw new RuntimeError ( 'Variable "regionName" does not exist.' , 130 , $this -> source ); })()), [ " " => "-" ])), "region_id" => (isset( $context [ "regionId" ]) || array_key_exists ( "regionId" , $context ) ? $context [ "regionId" ] : (function () { throw new RuntimeError ( 'Variable "regionId" does not exist.' , 130 , $this -> source ); })())]), "html" , null , true );
echo "\" class=\"btn btn-link btn-more py-2 btn-lg btn-block rounded-0 text-white rain-forest\">
View All
</a>
</div>
" ;
}
// line 135
echo " </div>
</div>
" ;
}
$_parent = $context [ '_parent' ];
unset( $context [ '_seq' ], $context [ '_iterated' ], $context [ '_key' ], $context [ 'region_arr' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 138
echo " </div>
</div>
<div class=\"col-12 col-md-3\">
" ;
// line 141
echo $this -> env -> getRuntime ( 'Symfony\Bridge\Twig\Extension\HttpKernelRuntime' )-> renderFragment ( Symfony\Bridge\Twig\Extension\HttpKernelExtension :: controller ( "App\\Controller\\CarouselController::getCarousel" , [ "page" => "home" ]));
// line 146
echo "
</div>
</div>
<div class=\"row\">
<div class=\"col-12\">
<h4>
Are you a SMME or a New Entrant?
</h4>
</div>
</div>
<div class=\"row justify-content-between\">
" ;
// line 157
$context [ "count" ] = 0 ;
// line 158
echo " " ;
$context [ "offset" ] = "" ;
// line 159
echo " " ;
$context [ '_parent' ] = $context ;
$context [ '_seq' ] = twig_ensure_traversable ((isset( $context [ "entrants" ]) || array_key_exists ( "entrants" , $context ) ? $context [ "entrants" ] : (function () { throw new RuntimeError ( 'Variable "entrants" does not exist.' , 159 , $this -> source ); })()));
foreach ( $context [ '_seq' ] as $context [ "_key" ] => $context [ "entrant" ]) {
// line 160
echo " " ;
$context [ "count" ] = ((isset( $context [ "count" ]) || array_key_exists ( "count" , $context ) ? $context [ "count" ] : (function () { throw new RuntimeError ( 'Variable "count" does not exist.' , 160 , $this -> source ); })()) + 1 );
// line 161
echo " " ;
if (((isset( $context [ "count" ]) || array_key_exists ( "count" , $context ) ? $context [ "count" ] : (function () { throw new RuntimeError ( 'Variable "count" does not exist.' , 161 , $this -> source ); })()) == 1 )) {
// line 162
echo " " ;
$context [ "offset" ] = "col-md-offset-1" ;
// line 163
echo " " ;
}
// line 164
echo " <div class=\"col-12 col-md-2 no-gutters\">
<a href=\"" ;
// line 165
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "entrant" ], "website" , [], "any" , false , false , false , 165 ), "html" , null , true );
echo "\" target=\"_blank\">
<img src=\"" ;
// line 166
echo twig_escape_filter ( $this -> env , $this -> extensions [ 'Symfony\Bridge\Twig\Extension\AssetExtension' ]-> getAssetUrl (( "images/entrants/" . twig_get_attribute ( $this -> env , $this -> source , $context [ "entrant" ], "logo" , [], "any" , false , false , false , 166 ))), "html" , null , true );
echo "\" class=\"img-fluid\" alt=\"" ;
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "entrant" ], "name" , [], "any" , false , false , false , 166 ), "html" , null , true );
echo "\">
</a>
</div>
" ;
// line 169
$context [ "offset" ] = "" ;
// line 170
echo " " ;
}
$_parent = $context [ '_parent' ];
unset( $context [ '_seq' ], $context [ '_iterated' ], $context [ '_key' ], $context [ 'entrant' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 171
echo " </div>
</div>
<!-- Subscription Form -->
<div id=\"subscribe-con\">
<div class=\"modal fade\" id=\"subscribe\" tabindex=\"-1\" role=\"dialog\" aria-label=\"myModalLabel\" aria-hidden=\"true\">
" ;
// line 177
echo $this -> env -> getRuntime ( 'Symfony\Bridge\Twig\Extension\HttpKernelRuntime' )-> renderFragment ( Symfony\Bridge\Twig\Extension\HttpKernelExtension :: controller ( "App\\Controller\\HomeController::getSubscribeForm" ));
echo "
</div>
</div>
" ;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 -> leave ( $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof );
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e -> leave ( $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof );
}
// line 182
public function block_javascripts ( $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" , "javascripts" ));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 -> enter ( $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "block" , "javascripts" ));
// line 183
echo " " ;
$this -> displayParentBlock ( "javascripts" , $context , $blocks );
echo "
<script>
" ;
// line 186
if (((isset( $context [ "subscribed" ]) || array_key_exists ( "subscribed" , $context ) ? $context [ "subscribed" ] : (function () { throw new RuntimeError ( 'Variable "subscribed" does not exist.' , 186 , $this -> source ); })()) == 1 )) {
// line 187
echo " var now = new Date();
now.setDate(now.getDate() + 100000000);
document.cookie = \"subscribe=1; expires=\" + now + \"; path=/\";
" ;
}
// line 191
echo "
cookie_value = (document.cookie.match(/^(?:.*;)?\\s*subscribe\\s*=\\s*([^;]+)(?:.*)?\$/)||[,null])[1];
if(cookie_value == null || cookie_value == 0) {
var now = new Date();
now.setDate(now.getDate() + 1);
document.cookie = \"subscribe=0; expires=\" + now + \"; path=/\";
}
if(cookie_value == 1){
jQuery('#subscribe-con').empty();
}
jQuery(document).ready(function(){
jQuery(window).on('load', function() {
jQuery('#subscribe').modal('show');
});
});
</script>
" ;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 -> leave ( $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof );
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e -> leave ( $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof );
}
public function getTemplateName ()
{
return "frontend/index.html.twig" ;
}
public function isTraitable ()
{
return false ;
}
public function getDebugInfo ()
{
return array ( 496 => 191 , 490 => 187 , 488 => 186 , 481 => 183 , 471 => 182 , 457 => 177 , 449 => 171 , 443 => 170 , 441 => 169 , 433 => 166 , 429 => 165 , 426 => 164 , 423 => 163 , 420 => 162 , 417 => 161 , 414 => 160 , 409 => 159 , 406 => 158 , 404 => 157 , 391 => 146 , 389 => 141 , 384 => 138 , 376 => 135 , 368 => 130 , 365 => 129 , 363 => 128 , 360 => 127 , 354 => 123 , 351 => 122 , 340 => 117 , 336 => 116 , 329 => 112 , 325 => 111 , 320 => 108 , 315 => 107 , 313 => 106 , 302 => 98 , 291 => 90 , 287 => 89 , 280 => 84 , 277 => 83 , 274 => 82 , 271 => 81 , 267 => 80 , 262 => 77 , 255 => 72 , 252 => 71 , 238 => 63 , 231 => 59 , 227 => 58 , 222 => 55 , 217 => 54 , 215 => 53 , 191 => 31 , 185 => 29 , 183 => 28 , 180 => 27 , 170 => 26 , 157 => 23 , 147 => 22 , 135 => 20 , 131 => 19 , 127 => 18 , 122 => 17 , 116 => 14 , 112 => 12 , 108 => 11 , 104 => 9 , 101 => 8 , 98 => 7 , 88 => 6 , 75 => 4 , 72 => 3 , 62 => 2 , 39 => 1 ,);
}
public function getSourceContext ()
{
return new Source ( "{% extends 'base.html.twig' %}
{% block title %}
{% set metaTitle = 'SANRAL eSDD - Electronic Supplier Development Desk' %}
{{ metaTitle }}
{% endblock %}
{% block meta_decription %}
{% set metaTitle = 'SANRAL eSDD - Electronic Supplier Development Desk' %}
{% set metaDescription = \"SMME's can make use of this portal to attain SANRAL tenders\" %}
<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 class=\"container-fluid\">
{% if copy is not null %}
{{ copy|raw }}
{% endif %}
<div class=\"row\">
<div class=\"col-12 col-md-9\">
<div class=\"row\">
<div class=\"col-12\">
<div style=\"border: solid 2px #ff6600;margin-bottom: 22px\">
<div class=\"row\">
<div class=\"col-12 text-center\" style=\"padding: 13px;display: flex;align-items: center;justify-content: center;\">
<i class=\"fas fa-info-circle\" style=\"font-size: 35px;color: #ff6600;margin-right: 20px\"></i>
All tenders advertised here are for 2nd tier procurement only. Visit
<a href=\"https://www.nra.co.za\" target=\"_blank\" style=\"color: #ff6600\">www.nra.co.za</a> for other tenders.
</div>
</div>
</div>
</div>
<div class=\"col-12 col-md-4\" style=\"margin-bottom: 30px\">
<div class=\"card\">
<div class=\"card-header clementine p-0\" style=\"padding: 6px 14px !important\">
<nav class=\"navbar card-nav\">
<span class=\"navbar-brand mb-0 h1 text-uppercase text-white card-title\">Closing Soon</span>
</nav>
</div>
<ul class=\"list-group list-group-flush\">
{% if closing_soon|length > 0 %}
{% for closing in closing_soon %}
<li class=\"list-group-item pb-1\">
<dl>
<dt class=\"pt-1\">
<a class=\"tender-title text-black teaser-2-lines\" href=\"{{ path('tenders_page',{'id':closing.id}) }}\">
{{ closing.contractDescription }}
</a>
</dt>
<dd class=\"py-0\">
<span>{{ closing.closingDate|date('l d F Y') }}</span>
<span>
<p>Operations</p>
</span>
</dd>
</dl>
</li>
{% endfor %}
{% else %}
<li class=\"list-group-item pb-1\">
There are no tenders closing soon.
<br>
</li>
{% endif %}
</ul>
</div>
</div>
{% for region_arr in regions %}
{% set regionId = region_arr['region']['regionId'] %}
{% set regionName = region_arr['region']['regionName'] %}
{% set thumb = region_arr['region']['thumb'] %}
<div class=\"col-12 col-md-4\" style=\"margin-bottom: 30px\">
<div class=\"card\">
<div class=\"card-header rain-forest\">
<div class=\"row m-0\">
<div class=\"region-title text-white\">
<a class=\"navbar-brand text-white text-uppercase py-2\" href=\"{{ path('tender_region_page',{'region':regionName|replace({' ':'-'})|lower, 'region_id': regionId}) }}\">
{{ regionName }}
</a>
</div>
<div class=\"py-0 pl-3 info-icon ml-auto\">
<a type=\"button\" href=\"#\" target=\"_blank\" class=\"btn btn-link text-white tooltip-toggle\" title=\"Click for more regional information\">
<span class=\"tooltip-icon\">?</span>
<div class=\"tooltip p-3\">
<div class=\"row\">
<img src=\"{{ asset('images/regions/' ~ thumb) }}\" class=\"img-fluid\" style=\"max-height: 80px; display: block;margin-left: auto;margin-right: auto\">
</div>
</div>
</a>
</div>
</div>
</div>
<ul class=\"list-group list-group-flush\">
{% if region_arr['region']['data']|length > 0 %}
{% for region in region_arr['region']['data'] %}
<li class=\"list-group-item pb-1\">
<dl>
<dt class=\"pt-1\">
<a class=\"tender-title text-black teaser-2-lines\" href=\"{{ path('tenders_page',{'id':region.id}) }}\">
{{ region.contractDescription }}
</a>
</dt>
<dd class=\"py-0\">
<span>{{ region.closingDate|date('l d F Y') }}</span>
<span><p>{{ region.category }}</p></span>
</dd>
</dl>
</li>
{% endfor %}
{% else %}
<li class=\"list-group-item pb-1\">
There currently no advertised tenders in this region.
</li>
{% endif %}
</ul>
{% if region_arr['region']['data']|length > 0 %}
<div class=\"text-center\">
<a href=\"{{ path('tender_region_page',{'region':regionName|replace({' ':'-'})|lower, 'region_id': regionId}) }}\" class=\"btn btn-link btn-more py-2 btn-lg btn-block rounded-0 text-white rain-forest\">
View All
</a>
</div>
{% endif %}
</div>
</div>
{% endfor %}
</div>
</div>
<div class=\"col-12 col-md-3\">
{{ render(controller(
'App\\\\Controller\\\\CarouselController::getCarousel',
{
'page': 'home'
}
)) }}
</div>
</div>
<div class=\"row\">
<div class=\"col-12\">
<h4>
Are you a SMME or a New Entrant?
</h4>
</div>
</div>
<div class=\"row justify-content-between\">
{% set count = 0 %}
{% set offset = '' %}
{% for entrant in entrants %}
{% set count = count + 1 %}
{% if count == 1 %}
{% set offset = 'col-md-offset-1' %}
{% endif %}
<div class=\"col-12 col-md-2 no-gutters\">
<a href=\"{{ entrant.website }}\" target=\"_blank\">
<img src=\"{{ asset('images/entrants/' ~ entrant.logo) }}\" class=\"img-fluid\" alt=\"{{ entrant.name }}\">
</a>
</div>
{% set offset = '' %}
{% endfor %}
</div>
</div>
<!-- Subscription Form -->
<div id=\"subscribe-con\">
<div class=\"modal fade\" id=\"subscribe\" tabindex=\"-1\" role=\"dialog\" aria-label=\"myModalLabel\" aria-hidden=\"true\">
{{ render(controller('App\\\\Controller\\\\HomeController::getSubscribeForm')) }}
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script>
{% if subscribed == 1 %}
var now = new Date();
now.setDate(now.getDate() + 100000000);
document.cookie = \"subscribe=1; expires=\" + now + \"; path=/\";
{% endif %}
cookie_value = (document.cookie.match(/^(?:.*;)?\\s*subscribe\\s*=\\s*([^;]+)(?:.*)?\$/)||[,null])[1];
if(cookie_value == null || cookie_value == 0) {
var now = new Date();
now.setDate(now.getDate() + 1);
document.cookie = \"subscribe=0; expires=\" + now + \"; path=/\";
}
if(cookie_value == 1){
jQuery('#subscribe-con').empty();
}
jQuery(document).ready(function(){
jQuery(window).on('load', function() {
jQuery('#subscribe').modal('show');
});
});
</script>
{% endblock %}" , "frontend/index.html.twig" , "/var/www/html/sanralsmme/templates/frontend/index.html.twig" );
}
}