<style>
.navigation--li {
display: block;
font-family: var(--font-second);
margin: 1rem 0;
text-align: left;
}
.logo_size{
position: absolute;
top: -35px;
}
.logo_size img{
height:80px;
}
</style>
<div class="container-fluid bg-white">
<div class="row">
<div class="col-sm-12 p-0">
<div class="container">
<div class="row">
<div class="col-sm-12 py-2" style="border-bottom: 1px solid #fbfbfb;">
<div class="display_flx">
{% if app.request.locale == 'en' %}
<div class="switches-container">
<input class="locale--input" id="enLocale" type="radio" name="locale" value="en" checked />
<input class="locale--input" id="hiLocale" type="radio" name="locale" value="hi" />
<label class="locale--label" for="enLocale">{{ 'english'|trans }}</label>
<label class="locale--label" for="hiLocale">{{ 'hindi'|trans }}</label>
<div class="switch-wrapper">
<div class="switch">
<div>{{ 'english'|trans }}</div>
<div>{{ 'hindi'|trans }}</div>
</div>
</div>
</div>
{% else %}
<div class="switches-container">
<input class="locale--input" id="enLocale" type="radio" name="locale" value="en" />
<input class="locale--input" id="hiLocale" type="radio" name="locale" value="hi" checked />
<label class="locale--label" for="enLocale">{{ 'english'|trans }}</label>
<label class="locale--label" for="hiLocale">{{ 'hindi'|trans }}</label>
<div class="switch-wrapper">
<div class="switch">
<div>{{ 'english'|trans }}</div>
<div>{{ 'hindi'|trans }}</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
<div class="display_flx sm_hide py-2" style="position: relative;">
<div>
<a class="logo_size" href="http://89.116.20.47/">
{% if app.request.locale == 'en' %}
<img class="" src="{{ asset('images/Elogo.png') }}" alt="PFI" /></a>
{% else %}
<img class="" src="{{ asset('images/Hlogo.png') }}" alt="PFI" /></a>
{% endif %}
</div>
<div class="">
<div class="partnav">
<form class="search1" id="searchForm" autocomplete="off" onsubmit="return searchQuery();">
<div class="input-group">
<span class="input-group-text" style="background-color: transparent; border-right: 0px;">
<img class="search--icon" src="{{ asset('images/search.png') }}" />
</span>
<input type="text" class="form-control home_search_inp" name="q" id="search-input" placeholder="{{ 'navbar.search'|trans }}" value="{{ data.query }}" style="border-left: 0px;">
<a class="btn btn-warning" href="#" id="search-button" onclick="redirectWithQuery()" style="display: flex; justify-content: center; align-items: center;"><b> {{ 'navbar.search'|trans }}</b></a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<nav class="navbar">
<div class="wrapper">
{% if app.request.locale == 'en' %}
<a class="navbar__logo sm_show" href="http://89.116.20.47/"><img class="navbar__logo--img" src="{{ asset('images/Elogo.png') }}" alt="PFI" /></a>
{% else %}
<a class="navbar__logo sm_show" href="http://89.116.20.47/"><img class="navbar__logo--img" src="{{ asset('images/Hlogo.png') }}" alt="PFI" /></a>
{% endif %}
<div class="navbar--toggle" id="menuToggle">
<span>{{ 'navbar.menu'|trans }}</span>
<i class="fa-solid fa-bars text-warning pe-3" style="font-size: 24px;"></i>
</div>
<div class="navbar--menu" id="navbarMenu">
<ul class="navigation mb-0">
<li style="align-items: flex-start; margin-left: 12px;" class="navigation--li dropdown {% if app.request.pathinfo starts with '/bucket/' %}active{% endif %} ">
<div class="dropdown--label">
<span>{{ 'issues_and_themes'|trans }}</span>
<img src="{{ asset('images/dropdown.png') }}" />
</div>
<div class="dropdown__items">
{% for bucket in data.buckets %}
<a class="dropdown__items--a" href="{{ path('web_bucket', { id: bucket.id }) }}">{{ bucket.title|striptags|raw }}</a>
{% endfor %}
</div>
</li>
<li class="navigation--li dropdown d-none">
<div class="dropdown--label">
<span>{{ 'choose_lang'|trans }}</span>
<img src="{{ asset('images/dropdown.png') }}" />
</div>
<div class="dropdown__items" style="min-width: 100%">
<a class="dropdown__items--a" href="" data-action="lang" data-lang="en">{{ 'english'|trans }}</a>
<a class="dropdown__items--a" href="" data-action="lang" data-lang="hi">{{ 'hindi'|trans }}</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link {% if app.request.pathinfo == '/introduction' %}active{% endif %}" href="{{ path('web_introduction') }} " style="margin-right: 0.5rem;">{{ 'introduction'|trans }}</a>
</li>
<li class="nav-item">
<a class="nav-link {% if app.request.pathinfo == '/updates' %}active{% endif %}" href="{{ path('web_updates') }}" style="margin-right: 0.5rem;">{{ 'updates'|trans }}</a>
</li>
<li class="nav-item">
<a class="nav-link {% if app.request.pathinfo == '/dashboard/IN' %}active{% endif %}" href="dashboard/IN" style="margin-right: 0.5rem;">{{ 'state_dashboard'|trans }} </a>
</li>
<li class="nav-item">
<a class="nav-link {% if app.request.pathinfo == '/viewDistrict' %}active{% endif %}" href="{{ path('web_district') }}" style="margin-right: 0.5rem;">{{ 'district_dashboard'|trans }}</a>
</li>
<li class="nav-item">
<a class="nav-link {% if app.request.pathinfo == '/contact' %}active{% endif %}" href="{{ path('web_contact') }}" style="margin-right: 0.5rem;">{{ 'contact_us'|trans }}</a>
</li>
</ul>
</div>
</div>
</nav>
<script>
function redirectWithQuery() {
var inputVal = document.getElementById('search-input').value;
var url = "{{ path('web_chatbot') }}" + "?q=" + encodeURIComponent(inputVal);
//alert(url);
window.location.href = url;
}
</script>