templates/Frontend/Pages/index.html.twig line 1

Open in your IDE?
  1. {% extends 'Frontend/_templates/default.html.twig' %}
  2. {% block page_title %}Interlet Group - Cardiff Letting Agent{% endblock %}
  3. {% block meta_tags %}
  4.     {% if page.seoDescription %}
  5.         <meta name="description" content="{{ page.seoDescription }}">
  6.     {% endif %}
  7.     {% if page.seoKeywords %}
  8.         <meta name="keywords" content="{{ page.seoKeywords }}">
  9.     {% endif %}
  10. {% endblock %}
  11. {% block content %}
  12.     <div class="block-hero">
  13.         <div class="container">
  14.             <div class="row">
  15.                 <div class="col-md-9 col-lg-7">
  16.                     <div class="inside">
  17.                         <h1>Residential Sales &amp; Property Management</h1>
  18.                         <p>
  19.                             We offer a range of high quality properties available around Cardiff University and the city centre with excellent prices.
  20.                         </p>
  21.                         <div class="d-lg-none">
  22.                             <a href="{{ path('frontend_properties_lettings') }}" class="btn btn-lg btn-primary">Browse Properties</a>
  23.                         </div>
  24.                     </div>
  25.                     <div class="d-none d-lg-block quick-search">
  26.                         <form action="{{ path('frontend_properties_lettings') }}" method="get">
  27.                             <div class="row g-1">
  28.                                 <div class="col">
  29.                                     <label>Area</label>
  30.                                     <select class="form-control" name="area">
  31.                                         <option value="">Any</option>
  32.                                         {% for someArea in allAreas %}
  33.                                             <option value="{{ someArea.id }}">{{ someArea.name }}</option>
  34.                                         {% endfor %}
  35.                                     </select>
  36.                                 </div>
  37.                                 <div class="col">
  38.                                     <label>Type</label>
  39.                                     <select class="form-control" name="type">
  40.                                         <option value="">Any</option>
  41.                                         {% for someType in allTypes %}
  42.                                             <option value="{{ someType.id }}">{{ someType.name }}</option>
  43.                                         {% endfor %}
  44.                                     </select>
  45.                                 </div>
  46.                                 <div class="col">
  47.                                     <label>Bedrooms</label>
  48.                                     <select class="form-control" name="bedrooms">
  49.                                         <option value="">Any</option>
  50.                                         {% for i in range(1, 14) %}
  51.                                             <option value="{{ i }}">{{ i }}</option>
  52.                                         {% endfor %}
  53.                                     </select>
  54.                                 </div>
  55.                                 <div class="col">
  56.                                     <label>Max PCM</label>
  57.                                     <select class="form-control" name="max_price">
  58.                                         <option value="">Any</option>
  59.                                         {% for i in range(1, 26) %}
  60.                                             <option value="{{ 200 + (i*50) }}">{{ 200 + (i*50) }}</option>
  61.                                         {% endfor %}
  62.                                     </select>
  63.                                 </div>
  64.                                 <div class="col-3">
  65.                                     <button class="btn btn-lg btn-primary w-100 ml-2"><i class="fas fa-search"></i></button>
  66.                                 </div>
  67.                             </div>
  68.                         </form>
  69.                     </div>
  70.                 </div>
  71.             </div>
  72.         </div>
  73.     </div>
  74.     <div class="block-heroquote">
  75.         <div class="container">
  76.             <blockquote>
  77.                 <p>Interlet found me the perfect property and was incredibly helpful throughout the entire process. I can highly recommend Interlet for your property needs!</p>
  78.             </blockquote>
  79.         </div>
  80.     </div>
  81.     <div class="block-featurehighlight">
  82.         <div class="container">
  83.             <h2 class="text-center mb-5">Why Choose Us?</h2>
  84.             <div class="row">
  85.                 <div class="col-12 col-lg-4">
  86.                     <div class="icon-box">
  87.                         <i class="fas fa-home"></i>
  88.                     </div>
  89.                     <h3>Sales &amp; Lettings</h3>
  90.                     <p>
  91.                         We offer a fantastic selection of properties to rent in Cardiff for both Students & Professionals. Give us a call now or drop us a line and we'll get back to you.
  92.                     </p>
  93.                     <div class="mb-4 d-lg-none">&nbsp;</div>
  94.                 </div>
  95.                 <div class="col-12 col-lg-4">
  96.                     <div class="icon-box">
  97.                         <i class="fas fa-key"></i>
  98.                     </div>
  99.                     <h3>Management</h3>
  100.                     <p>
  101.                         At Interlet we look after a range of properties and with our on call maintenance team you can be confident your house will be looked after.
  102.                     </p>
  103.                     <div class="mb-4 d-lg-none">&nbsp;</div>
  104.                 </div>
  105.                 <div class="col-12 col-lg-4">
  106.                     <div class="icon-box">
  107.                         <i class="fas fa-hands-helping"></i>
  108.                     </div>
  109.                     <h3>Helpful Service</h3>
  110.                     <p>
  111.                         We believe that choosing a house should be a fun experience and with our friendly & trained staff we will find only the properties that are suitable for you.
  112.                     </p>
  113.                     <div class="mb-4 d-lg-none">&nbsp;</div>
  114.                 </div>
  115.             </div>
  116.         </div>
  117.     </div>
  118.     <div class="block-propertylist px-0">
  119.         <div class="container">
  120.             <h2 class="text-center mb-5">Featured Properties</h2>
  121.         </div>
  122.         <div id="featured-slider">
  123.             {% for propIndex,someProperty in featuredProperties %}
  124.                 <div>
  125.                     <div class="p-2">
  126.                         <div class="property" style="max-width: 400px;">
  127.                             <a href="{{ path('frontend_properties_viewproperty', {property_reference: someProperty.reference}) }}" class="image"><img src="{{ file_helper.thumbnail((someProperty.featuredImage ? 'data/' ~ someProperty.featuredImage.filename : '.' ~ asset('build/images/placeholder.png')), 750, 750) }}" alt=""/></a>
  128.                             {% if someProperty.cornerBanner %}
  129.                                 <img src="{{ asset('build/images/' ~ someProperty.cornerBanner) }}" class="corner-banner" alt=""/>
  130.                             {% endif %}
  131.                             <div class="detail">
  132.                                 <span class="area">{{ someProperty.area.name }}, {{ someProperty.postcode }}</span>
  133.                                 <a href="{{ path('frontend_properties_viewproperty', {property_reference: someProperty.reference}) }}" class="title">{{ someProperty.address2 }}</a>
  134.                                 <div class="row mt-3">
  135.                                     <div class="col-4">
  136.                                         <div class="spec">
  137.                                             <i class="fas fa-bed"></i>
  138.                                             <span>{{ someProperty.bedrooms }} Beds</span>
  139.                                         </div>
  140.                                     </div>
  141.                                     <div class="col-4">
  142.                                         <div class="spec">
  143.                                             <i class="fas fa-bath"></i>
  144.                                             <span>{{ someProperty.bathrooms }} Bathrooms</span>
  145.                                         </div>
  146.                                     </div>
  147.                                     <div class="col-4">
  148.                                         <div class="spec">
  149.                                             <i class="far fa-calendar"></i>
  150.                                             {% if someProperty.dateAvailable and someProperty.dateAvailable > "today"|date %}
  151.                                                 <span class="availability">Available {{ someProperty.dateAvailable|date('F') }}</span>
  152.                                             {% else %}
  153.                                                 <span>Available Now</span>
  154.                                             {% endif %}
  155.                                         </div>
  156.                                     </div>
  157.                                 </div>
  158.                             </div>
  159.                             <div class="bottom">
  160.                                 <div class="row">
  161.                                     <div class="col-6">
  162.                                         {% if someProperty.listingType == "letting" %}
  163.                                             <a href="{{ path('frontend_properties_viewproperty', {property_reference: someProperty.reference}) }}" class="btn btn-lg btn-outline-secondary w-100"><strong>{{ (someProperty.rentalPrice / 10)|format_currency('GBP', {fraction_digit: 0}) }}</strong> <small>/{{ someProperty.rentFrequency|short_rental_frequency }}</small></a>
  164.                                         {% else %}
  165.                                             <a href="{{ path('frontend_properties_viewproperty', {property_reference: someProperty.reference}) }}" class="btn btn-lg btn-outline-secondary w-100"><strong>{{ (someProperty.salePrice / 10)|format_currency('GBP', {fraction_digit: 0}) }}</strong></a>
  166.                                         {% endif %}
  167.                                     </div>
  168.                                     <div class="col-6">
  169.                                         <a href="{{ path('frontend_properties_viewproperty', {property_reference: someProperty.reference}) }}" class="btn btn-lg btn-dark w-100">View Details</a>
  170.                                     </div>
  171.                                 </div>
  172.                             </div>
  173.                         </div>
  174.                     </div>
  175.                 </div>
  176.             {% endfor %}
  177.         </div>
  178.     </div>
  179. {% endblock %}