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

templates/frontend/tender-search.html.twig line 32

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2.     {% block title %}
  3.         {% set metaTitle = 'SANRAL eSDD - ' ~ region|capitalize %}
  4.         {{ metaTitle }}
  5.     {% endblock %}
  6.     {% block meta_decription %}
  7.         {% set metaTitle = 'SANRAL eSDD - ' ~ region|capitalize %}
  8.         {% set metaDescription = "SMME's can find out more about SANRAL tenders in the " ~ region|capitalize %}
  9.         <meta name="twitter:card" content="summary" />
  10.         <meta name="twitter:site" content="Sanral" />
  11.         <meta name="twitter:title" content="{{ metaTitle }}" />
  12.         <meta name="twitter:description" content="{{ metaDescription }}" />
  13. {#        <meta name="twitter:image" content="https://hugenouttunnel.nerdw.com/images/home/{{ home_data.ogImage }}" />#}
  14.         <meta name="twitter:url" content="{{ app.request.uri }}" />
  15. {#        <meta name="og:image" content="https://hugenouttunnel.nerdw.com/images/home/{{ home_data.ogImage }}" />#}
  16.         <meta name="og:title" content="{{ metaTitle }}" />
  17.         <meta name="og:description" content="{{ metaDescription }}" />
  18.         <meta name="og:url" content="{{ app.request.uri }}" />
  19.         <meta name="description" content="{{ metaDescription }}">
  20.     {% endblock %}
  21.     {% block stylesheets %}
  22.         {{ parent() }}
  23.     {% endblock %}
  24.     {% block layout %}
  25.         <div id="content-wrapper" class="container-fluid">
  26.             <div class="row no-gutters py-4">
  27.                 <div class="col-md-9 px-3">
  28.                     <div class="row mb-3">
  29.                         <div class="col-12 no-gutters-sm">
  30.                             {{ render(controller('App\\Controller\\TendersController::getSearchForm')) }}
  31.                         </div>
  32.                     </div>
  33.                     <div class="row">
  34.                         <div class="col-12 no-gutters-left">
  35.                             <!-- Desktop -->
  36.                             <div class="table-responsive-md d-none d-md-block">
  37.                                 <table class="table custom-table">
  38.                                     <thead class="rain-forest">
  39.                                     <tr class="text-white text-uppercase font-weight-light table-head">
  40.                                         <th style="max-width: 90px;" scope="col">Category</th>
  41.                                         <th scope="col">Tender Description</th>
  42.                                         <th style="max-width: 120px;" scope="col">Tender Number</th>
  43.                                         <th style="max-width: 120px;" scope="col">Published</th>
  44.                                         <th style="max-width: 150px;" scope="col">Closing Date &amp; Time</th>
  45.                                     </tr>
  46.                                     </thead>
  47.                                     <tbody>
  48.                                         {% if tenders|length > 0 %}
  49.                                             {% for tender in tenders %}
  50.                                                 <tr>
  51.                                                     <td style="max-width: 90px;">
  52.                                                         <a href="{{ path('tenders_page',{'id': tender.id}) }}">
  53.                                                             {{ tender.category }}
  54.                                                         </a>
  55.                                                     </td>
  56.                                                     <td class="text-truncate" style="max-width: 300px;">
  57.                                                         <a class="text-black text-uppercase font-weight-bold tender-desc" href="{{ path('tenders_page',{'id': tender.id}) }}">
  58.                                                             {{ tender.contractDescription }}
  59.                                                         </a>
  60.                                                     </td>
  61.                                                     <td class="text-truncate" style="max-width: 120px;">
  62.                                                         <a href="{{ path('tenders_page',{'id': tender.id}) }}">
  63.                                                             {{ tender.projectNumber }}
  64.                                                         </a>
  65.                                                     </td>
  66.                                                     <td style="max-width: 120px;">
  67.                                                         <a href="{{ path('tenders_page',{'id': tender.id}) }}">
  68.                                                             {{ tender.created|date('Y-m-d') }}
  69.                                                         </a>
  70.                                                     </td>
  71.                                                     <td style="max-width: 150px;">
  72.                                                         <a href="{{ path('tenders_page',{'id': tender.id}) }}">
  73.                                                             {{ tender.closingDate|date('Y-m-d') }}
  74.                                                             {{ tender.closingTime }}:00:00
  75.                                                         </a>
  76.                                                     </td>
  77.                                                 </tr>
  78.                                             {%  endfor %}
  79.                                         {% else %}
  80.                                             <tr>
  81.                                                 <td colspan="5">
  82.                                                     There are currently no search results for <b><i>{{ search_criteria }}</i></b>.
  83.                                                 </td>
  84.                                             </tr>
  85.                                         {% endif %}
  86.                                     </tbody>
  87.                                 </table>
  88.                             </div>
  89.                             <!-- Mobile -->
  90.                             <div class="d-block d-md-none">
  91.                                 {% if tenders|length > 0 %}
  92.                                     {% for tender in tenders %}
  93.                                         <div class="row rain-forest">
  94.                                             <div class="col-12 font-weight-bold text-white" style="padding: 15px">
  95.                                                 {{ tender.contractDescription }}
  96.                                             </div>
  97.                                         </div>
  98.                                         <div class="row" style="background-color:#f0f0f0">
  99.                                             <div class="col-12" style="padding: 15px">
  100.                                                 <b>Category:</b> {{ tender.category }}
  101.                                             </div>
  102.                                         </div>
  103.                                         <div class="row bl br">
  104.                                             <div class="col-12 teaser-3-lines" style="padding: 15px">
  105.                                                 <a href="{{ path('tenders_page',{'id': tender.id}) }}">
  106.                                                     {{ tender.projectNumber }}
  107.                                                 </a>
  108.                                             </div>
  109.                                         </div>
  110.                                         <div class="row" style="background-color:#f0f0f0">
  111.                                             <div class="col-12" style="padding: 15px">
  112.                                                 <a href="{{ path('tenders_page',{'id': tender.id}) }}">
  113.                                                     <b>Published:</b> {{ tender.created|date('Y-m-d') }}
  114.                                                 </a>
  115.                                             </div>
  116.                                         </div>
  117.                                         <div class="row bl br bb" style="margin-bottom: 15px">
  118.                                             <div class="col-12" style="padding: 15px;">
  119.                                                 <a href="{{ path('tenders_page',{'id': tender.id}) }}">
  120.                                                     <b>Closing Date:</b> {{ tender.closingDate|date('Y-m-d') }}
  121.                                                 </a>
  122.                                             </div>
  123.                                         </div>
  124.                                     {% endfor %}
  125.                                 {%  else %}
  126.                                     <div class="row">
  127.                                         <div class="col-12">
  128.                                             There are currently no search results for <b><i>{{ search_criteria }}</i></b>.
  129.                                         </div>
  130.                                     </div>
  131.                                 {% endif %}
  132.                             </div>
  133.                         </div>
  134.                     </div>
  135.                 </div>
  136.                 <div class="col-md-3" style="margin-top: 18px">
  137.                     {{ render(controller(
  138.                         'App\\Controller\\CarouselController::getCarousel',
  139.                         {
  140.                             'page': 'tenders'
  141.                         }
  142.                     )) }}
  143.                 </div>
  144.             </div>
  145.         </div>
  146.     {% endblock %}