{% import 'utility/_macros.twig' as macros %}
{{ macros.langswitch() }}
{{ macros.mobilesearch() }}
<div>
<!-- Carousel -->
<div id="demo" class="carousel slide" data-bs-ride="carousel">
<!-- Indicators/dots -->
<div class="carousel-indicators">
<button type="button" data-bs-target="#demo" data-bs-slide-to="0" class="active"></button>
<button type="button" data-bs-target="#demo" data-bs-slide-to="1"></button>
<button type="button" data-bs-target="#demo" data-bs-slide-to="2"></button>
</div>
<!-- The slideshow/carousel -->
<div id="bannerCarousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
{% for banner in data.banners %}
<div class="carousel-item {% if loop.first %}active{% endif %}">
<div class="row carousel_item_bg">
<div class="col-xl-11 col-lg-11 col-md-11 col-sm-12 m-auto">
<div class="row">
<div class="col-xl-5 col-lg-5 col-md-5 col-sm-12 order-last text-center">
<div class="carousel_img">
<img src="{{ asset('uploads/banners/' ~ banner.cover) }}" alt="{{ banner.title }}" class="d-block" style="width:70%;">
</div>
</div>
<div class="col-xl-7 col-lg-7 col-md-7 col-sm-12">
<div class="carousel_item_text">
<h2 class="text-bold">{{ banner.title }}</h2>
<p class="text-muted">{{ banner.description }}</p>
{# <a class="btn btn-warning rounded-5 mt-4" href="#" style="width: 135px;">{{ 'home.readmore'|trans }} <img style="height: 10px;" src="./assets/images/long-arrow.png" alt="long-arrow"></a>#}
</div>
</div>
</div>
</div>
</div>
</div>
{% else %}
<div class="carousel-item active">
<div class="row carousel_item_bg">
<div class="col-xl-11 col-lg-11 col-md-11 col-sm-12 m-auto">
<div class="row">
<div class="col-xl-12 text-center">
<h2>No banners available at the moment.</h2>
</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
<a class="carousel-control-prev" href="#bannerCarousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#bannerCarousel" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
{#<div class="carousel-item ">
<div class="row carousel_item_bg">
<div class="col-xl-11 col-lg-11 col-md-11 col-sm-12 m-auto">
<div class="row">
<div class="col-xl-5 col-lg-5 col-md-5 col-sm-12 order-last">
<div class="carousel_img">
<img src="./assets/images/banner_2.png" alt="Banner_2" class="d-block" style="width:70%;">
</div>
</div>
<div class="col-xl-7 col-lg-7 col-md-7 col-sm-12">
<div class="carousel_item_text">
<h2 class="text-bold">{{ 'home.hbanner5'|trans }}, <br>
{{ 'home.hbanner6'|trans }} <br>{{ 'home.hbanner8'|trans }}</h2>
<p class="text-muted">
{{ 'home.hbanner7'|trans }}
</p>
<a class="btn btn-warning rounded-5 mt-4" href="#" style="width: 135px;">{{ 'home.readmore'|trans }} <img style="height: 10px;" src="./assets/images/long-arrow.png" alt="long-arrow"></a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item ">
<div class="row carousel_item_bg">
<div class="col-xl-11 col-lg-11 col-md-11 col-sm-12 m-auto">
<div class="row">
<div class="col-xl-5 col-lg-5 col-md-5 col-sm-12 order-last">
<div class="carousel_img">
<img src="./assets/images/banner_3.png" alt="Banner_3" class="d-block" style="width:70%;">
</div>
</div>
<div class="col-xl-7 col-lg-7 col-md-7 col-sm-12">
<div class="carousel_item_text">
<h2 class="text-bold">{{ 'home.hbanner9'|trans }}, <br>
{{ 'home.hbanner10'|trans }} <br>{{ 'home.hbanner12'|trans }}</h2>
<p class="text-muted">
{{ 'home.hbanner11'|trans }}
</p>
<a class="btn btn-warning rounded-5 mt-4" href="#" style="width: 135px;">{{ 'home.readmore'|trans }} <img style="height: 10px;" src="./assets/images/long-arrow.png" alt="long-arrow"></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>#}
<!-- Left and right controls/icons -->
<button class="carousel-control-prev" type="button" data-bs-target="#demo" data-bs-slide="prev">
<span class="carousel-control-prev-icon"></span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#demo" data-bs-slide="next">
<span class="carousel-control-next-icon"></span>
</button>
</div>
</div>
<header class="header">
<div class="header--wrapper1">
<div class="header__news d-none">
<div class="introduction">
<h2 class="heading--display semibold introduction--title">{{ 'home.introduction'|trans }}</h2>
{% if data.intro[0] %}
<p class="introduction--desc">{{ data.intro[0].introduction|raw|nl2br }}</p>
{% else %}
<div class="alert alert--warning alert--100">{{ 'no_records_found'|trans }}</div>
{% endif %}
</div>
<div class="newsarticles">
<h1 class="heading--display semibold header__news--head">{{ 'home.updates'|trans }}</h1>
<div class="articles">
{% for update in data.updates %}
{% if update.category == 'article' %}
<div class="article news">
<p class="article--title">{{ update.title|raw }}</p>
<a class="article--link" href="{{ update.link }}" target="_blank">{{ 'home.read'|trans }}></a>
</div>
{% else %}
<div class="article notification">
<p class="article--title">{{ update.title|raw }}</p>
</div>
{% endif %}
{% else %}
<div class="alert alert--warning alert--100">{{ 'no_records_found'|trans }}</div>
{% endfor %}
</div>
<div class="articles--mobile">
<div class="splide" id="news">
<div class="splide__slider">
<div class="splide__arrows">
<button class="splide__arrow splide__arrow--prev"></button>
<button class="splide__arrow splide__arrow--next"></button>
</div>
<div class="splide__track">
<ul class="splide__list">
{% for update in data.updates %}
<li class="splide__slide">
{% if update.category == 'article' %}
<div class="article news">
<p class="article--title">{{ update.title|raw }}</p>
<a class="article--link" href="{{ update.link }}" target="_blank">{{ 'home.read'|trans }}></a>
</div>
{% else %}
<div class="article notification">
<p class="article--title">{{ update.title|raw }}</p>
</div>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="header__map__new">
<div class="mapcontainer">
<div class="mapcontainer__content">
<h2 class="heading--l2 medium mapcontainer__content--head">{{ 'home.key_fp_indicators'|trans }}</h2>
<p class="mapcontainer__content--tag">{{ 'home.click_on_state'|trans }}</p>
</div>
<div class="map" id="map"></div>
</div>
<div class="indicators" id="showMapData">
<h2 class="heading--l2 medium indicators--state"></h2>
<div class="indicators--labels">
<div class="indicator indicator--1" data-indicator="#indicator1"></div>
<div class="indicator indicator--2" data-indicator="#indicator2"></div>
<div class="indicator indicator--3" data-indicator="#indicator3"></div>
<div class="indicator indicator--4" data-indicator="#indicator4"></div>
<div class="indicator indicator--5" data-indicator="#indicator5"></div>
</div>
<small class="indicators--info">
{{ 'home.arrow_depicts'|trans }}
<br />
<span style="color: #ace207;">{{ 'green'|trans }}</span>: {{ 'home.improvement'|trans }} |
<span style="color: #ff003c;">{{ 'red'|trans }}</span>: {{ 'home.deterioration'|trans }} |
<span style="color: #ffd800;">{{ 'yellow'|trans }}</span>: {{ 'home.no_change'|trans }}
</small>
<ul class="indicators__details" style="padding: 0px;">
<li class="indicators__details--li active" id="indicator1">{{ 'home.sex_ratio_at'|trans }}</li>
<li class="indicators__details--li" id="indicator2" style="color: #f99420">{{ 'home.total_fertility_rate'|trans }}</li>
<li class="indicators__details--li" id="indicator3" style="color: #dc2695">{{ 'home.women_age'|trans }}</li>
<li class="indicators__details--li" id="indicator4" style="color: #3dc9e1">{{ 'home.current_use'|trans }}</li>
<li class="indicators__details--li" id="indicator5" style="color: #a24be7">{{ 'home.total_umnet'|trans }}</li>
</ul>
<div class="indicators__source">
<span class="indicators__source--label">{{ 'home.source'|trans }}</span>
<span class="indicators__source--link"></span>
</div>
<hr class="indicators--hr" />
<div class="indicators__dashboard">
<a class="btn btn--primary-211 btn-lg btn-warning anchor--dashboard rounded-5">{{ 'home.view_full_dashboard'|trans }} <img src="./assets/images/long-arrow.png"/></a>
<p class="indicators--info-2">{{ 'home.click_to_see'|trans }}</p>
</div>
</div>
</div>
</div>
</header>