<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="{{ site['url'] }}/">
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>{{ title }}</title>
		<meta name="keywords" content="{{ site['keywords'] }}">
		<meta name="description" content="{{ site['description'] }}">
		{% if site['favicon'] %}
			<link rel="shortcut icon" type="image/ico" href="{{ site['favicon'] }}"/>
		{% endif %}

  
  <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
  

<script>Sentry.init({ dsn: 'https://294a44a1147a468c88270ee2dd6ecde9@sentry.io/4504813329711104' });</script>
<style>.integration-fixed {
  position: fixed;
  z-index: 10000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  row-gap: 12px;
}
.integration-fixed__top-left {
  top: 0;
  left: 0;
}
.integration-fixed__top-right {
  top: 0;
  right: 0;
}
.integration-fixed__bottom-left {
  bottom: 0;
  left: 0;
}
.integration-fixed__bottom-right {
  bottom: 0;
  right: 0;
}
</style>


<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-11497717268"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'AW-11497717268');
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-11517445304">
</script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'AW-11517445304');
</script>



        <link rel="stylesheet" type="text/css" href="https://storage.perfectcdn.com/m5ll5t/4tndprjt8tth0ttw.css">
        <link rel="stylesheet" type="text/css" href="https://storage.perfectcdn.com/m5ll5t/x46plgxudogqbrp4.css">
        <link rel="stylesheet" type="text/css" href="https://storage.perfectcdn.com/libs/bootstrap-datetimepicker/4.17.47/bootstrap-datetimepicker.min.css">
        <link rel="stylesheet" type="text/css" href="https://storage.perfectcdn.com/css/font-awesome/css/all.min.css">
        <link rel="stylesheet" type="text/css" href="https://storage.perfectcdn.com/global/cuw6iix855efzrw3.css">
        <link rel="stylesheet" type="text/css" href="https://storage.perfectcdn.com/global/ny6mhzbbh07u28pq.css">
        <script>
      window.modules = {};
    </script>

    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
  </head>

	{% if user['auth'] %}

 <nav class="navbar navbar-expand-lg navbar-light bg-light usernav ">
      <div class="container-fluid">
        <!--<a class="navbar-brand" href="/">
                                <img src="https://storage.perfectcdn.com/m5ll5t/qc0win1kwpzx5jfk.png" alt="airsmm.com" title="airsmm.com">
                              </a>-->
        <!--<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div id="navbar" class="collapse navbar-collapse">
          <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                        <li class="nav-item  active ">
              <a class="nav-link" href="/" >
                                <i class="navbar-icon far fa-plus-circle"></i>
                                New order
              </a>
            </li>
                        <li class="nav-item ">
              <a class="nav-link" href="/services" >
                                <i class="navbar-icon fas fa-list"></i>
                                Services
              </a>
            </li>
                        <li class="nav-item ">
              <a class="nav-link" href="/orders" >
                                <i class="navbar-icon fas fa-history"></i>
                                Orders
              </a>
            </li>
                        <li class="nav-item ">
              <a class="nav-link" href="/addfunds" >
                                <i class="navbar-icon far fa-wallet"></i>
                                Add funds
              </a>
            </li>
                        <li class="nav-item ">
              <a class="nav-link" href="/api" >
                                <i class="navbar-icon far fa-code-branch"></i>
                                API
              </a>
            </li>
                        <li class="nav-item ">
              <a class="nav-link" href="/affiliates" >
                                <i class="navbar-icon far fa-hands-helping"></i>
                                Affiliates
              </a>
            </li>
                        <li class="nav-item ">
              <a class="nav-link" href="/child-panel" >
                                <i class="navbar-icon far fa-child"></i>
                                Child panel
              </a>
            </li>
                        <li class="nav-item ">
              <a class="nav-link" href="/tickets" >
                                <i class="navbar-icon far fa-headset"></i>
                                Tickets
              </a>
            </li>
                        <li class="nav-item ">
              <a class="nav-link" href="/massorder" >
                                <i class="navbar-icon far fa-boxes"></i>
                                Mass order
              </a>
            </li>
                        <li class="nav-item ">
              <a class="nav-link" href="/updates" >
                                <i class="navbar-icon far fa-rss"></i>
                                Updates
              </a>
            </li>
                        <li class="nav-item ">
              <a class="nav-link" href="https://bit.ly/3Bjnjyf"  target="_blank" >
                                <i class="navbar-icon far fa-tablet"></i>
                                Download App
              </a>
            </li>
                      </ul>
          <ul class="navbar-nav ms-auto mb-2 mb-lg-0">
                                                <li class="nav-item dropdown">
              <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                <span class="badge bg-secondary">$0</span>
              </a>
              <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
                                <li>
                  <a class="dropdown-item" href="#" id="currencies-item" data-rate-key="AED" data-rate-symbol="د.إ">AED د.إ</a>
                </li>
                                <li>
                  <a class="dropdown-item" href="#" id="currencies-item" data-rate-key="EUR" data-rate-symbol="€">EUR €</a>
                </li>
                                <li>
                  <a class="dropdown-item" href="#" id="currencies-item" data-rate-key="GBP" data-rate-symbol="£">GBP £</a>
                </li>
                                <li>
                  <a class="dropdown-item" href="#" id="currencies-item" data-rate-key="INR" data-rate-symbol="₹">INR ₹</a>
                </li>
                                <li>
                  <a class="dropdown-item" href="#" id="currencies-item" data-rate-key="PKR" data-rate-symbol="Rs">PKR Rs</a>
                </li>
                                <li>
                  <a class="dropdown-item" href="#" id="currencies-item" data-rate-key="TRY" data-rate-symbol="₺">TRY ₺</a>
                </li>
                              </ul>
            </li>
                                                            <li class="nav-item ">
              <a class="nav-link" href="/account" >Account</a>
            </li>
                                                <li class="nav-item ">
              <a class="nav-link" href="/logout" >Logout</a>
            </li>
                                  </ul>
        </div>-->
        <!--<div class="rightusernav">
                <a class="suprtbtnhdr" href="/tickets">
                  <img src="https://storage.perfectcdn.com/tfoi9m/yidisunqtwmeqw9x.png">
                </a>
                <div class="dropdown">
                  <a class="dropdown-toggle profbtn" href="#" role="button" id="dropdownMenuLink" data-bs-toggle="dropdown" aria-expanded="false">
                    <div class="profbtnwrap">
                      <div class="ppprof">
                        <img src="https://storage.perfectcdn.com/tfoi9m/0a8ifdna8b0m0h26.jpg">
                        <span class="onlinedot"></span>
                      </div>
                      <div class="detailsprof">
                        <span>admin1</span>
                        <small>$0</small>
                      </div>
                    </div>
                  </a>
                  <ul class="dropdown-menu profddul" aria-labelledby="dropdownMenuLink">
                    <li><a class="dropdown-item" href="/account"><i class="far fa-user-cog"></i> Manage Account</a></li>
                    <li><a class="dropdown-item" href="/addfunds"><i class="far fa-wallet"></i> Wallet</a></li>
                    <li><a class="dropdown-item" href="/tickets"><i class="far fa-question-circle"></i> Support</a></li>
                    <li><a class="dropdown-item logmainbtn" href="/logout"><i class="far fa-sign-out"></i> Logout</a></li>
                  </ul>
                </div>
                <button class="hamburger" id="hamburger" type="button" data-bs-toggle="offcanvas" data-bs-target="#sidebar" aria-controls="sidebar">
                  <span></span>
                  <span></span>
                  <span></span>
                </button>
              </div>-->
        <div class="usertopnavflex">
          <a class="navbar-brand" href="/">
                        {% if site["logo"] %}
																				<img style="max-width:200px;" src="{{ site['logo'] }}" alt="" title="">
																			{% else %}
																				<span style="text-transform: ">
																					<span style="font-size: 24px">
																						<span style="letter-spacing: 1.0px">
																							<span>
																								<strong style="font-weight: bold">{{ site["site_name"] }}</strong>
																							</span>
																						</span>
																					</span>
																				</span>
																			{% endif %}
																		</strong>
																	</span>
																</span>
															</span>
														</span>
													</a>
          <div class="fundgroup">
            <span class="walletbalnav">{{ user["balance"] }}</span>
            <a class="btn btn-primary" href="/addfunds?show=true">Wallet</a>
          </div>
          <div class="dropdown">
            <a class="dropdown-toggle profbtn" href="#" role="button" id="dropdownMenuLink" data-bs-toggle="dropdown" aria-expanded="false">
              <i class="fas fa-user-circle"></i>
            </a>
            <ul class="dropdown-menu profddul" aria-labelledby="dropdownMenuLink">
              <li><a class="dropdown-item" href="/account"><i class="far fa-user-cog"></i> Manage Account</a></li>
              <li><a class="dropdown-item" href="/addfunds"><i class="far fa-wallet"></i> Wallet</a></li>
              <li><a class="dropdown-item" href="/tickets"><i class="far fa-question-circle"></i> Support</a></li>
              <li><a class="dropdown-item logmainbtn" href="/logout"><i class="far fa-sign-out"></i> Logout</a></li>
            </ul>
          </div>
        </div>
      </div>
    </nav>

    <div class="sidebardesk">
      <div class="sidebarhead">
        <button class="hambtn">
          <i class="far fa-bars"></i>
        </button>
        <button class="sideheadbtn curren" data-bs-toggle="modal" data-bs-target="#currenModal">
          Currency
        </button>
        <button class="sideheadbtn curren" data-bs-toggle="modal" data-bs-target="#langModal">
          Change Lang.
        </button>
      </div>
      <div class="slimbtnsgrp">
        <button class="slimbtns curren" data-bs-toggle="modal" data-bs-target="#currenModal">
          <i class="fas fa-coins"></i>
        </button>
        <button class="slimbtns curren" data-bs-toggle="modal" data-bs-target="#langModal">
          <i class="fas fa-language"></i>
        </button>
      </div>
      <ul class="sidebar">
                <li class=" active ">
          <a href="/"  data-tippy-content="New order">
                        <i class="navbar-icon far fa-plus-circle"></i>
                        <span>New order</span>
          </a>
        </li>
                <li class="">
          <a href="/services"  data-tippy-content="Services">
                        <i class="navbar-icon fas fa-list"></i>
                        <span>Services</span>
          </a>
        </li>
                <li class="">
          <a href="/orders"  data-tippy-content="Orders">
                        <i class="navbar-icon fas fa-history"></i>
                        <span>Orders</span>
          </a>
        </li>
                <li class="">
          <a href="/addfunds"  data-tippy-content="Add funds">
                        <i class="navbar-icon far fa-wallet"></i>
                        <span>Add funds</span>
          </a>
        </li>
                <li class="">
          <a href="/api"  data-tippy-content="API">
                        <i class="navbar-icon far fa-code-branch"></i>
                        <span>API</span>
          </a>
        </li>
                <li class="">
          <a href="/affiliates"  data-tippy-content="Affiliates">
                        <i class="navbar-icon far fa-hands-helping"></i>
                        <span>Affiliates</span>
          </a>
        </li>
                <li class="">
          <a href="/child-panels"  data-tippy-content="Child panel">
                        <i class="navbar-icon far fa-child"></i>
                        <span>Child panel</span>
          </a>
        </li>
                <li class="">
          <a href="/tickets"  data-tippy-content="Tickets">
                        <i class="navbar-icon far fa-headset"></i>
                        <span>Tickets</span>
          </a>
        </li>
                <li class="">
          <a href="/massorder"  data-tippy-content="Mass order">
                        <i class="navbar-icon far fa-boxes"></i>
                        <span>Mass order</span>
          </a>
        </li>
                <li class="">
          <a href="/updates"  data-tippy-content="Updates">
                        <i class="navbar-icon far fa-rss"></i>
                        <span>Updates</span>
          </a>
        </li>
                <li class="">
          <a href="https://bit.ly/3Bjnjyf"  target="_blank"  data-tippy-content="Download App">
                        <i class="navbar-icon far fa-tablet"></i>
                        <span>Download App</span>
          </a>
        </li>
              </ul>
    </div>

    <div class="mobiletabbtm">
      <div class="lilist">
        <a type="button" data-bs-toggle="offcanvas" data-bs-target="#sidebar" aria-controls="sidebar"><i class="fas fa-bars"></i> Menu</a>
      </div>
      <div class="lilist">
        <a href="/orders"><i class="far fa-bags-shopping"></i> Orders</a>
      </div>
      <div class="lilist">
        <a href="/"><i class="fad fa-plus"></i> New Order</a>
      </div>
      <div class="lilist">
        <a href="/addfunds?show=true"><i class="far fa-wallet"></i> Add Funds</a>
      </div>
      <div class="lilist">
        <a href="/tickets"><i class="far fa-headset"></i> Support</a>
      </div>
    </div>

    <div class="offcanvas offcanvas-bottom offcanvas-slim sidebar sidebarmob" id="sidebar" data-bs-backdrop="static" tabindex="-1" id="sidebar" aria-labelledby="offcanvasExampleLabel" aria-modal="true" role="dialog">
      <div class="offcanvas-header">
        <a class="navbar-brand d-flex align-items-center jutify-content-left p-0" href="/">
                    <img src="https://storage.perfectcdn.com/m5ll5t/qc0win1kwpzx5jfk.png" alt="airsmm.com" title="airsmm.com">
                  </a>
        <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
      </div>
      <div class="offcanvas-body p-0 overflow-hidden">
        <div class="btmbartopbtns">
          <button class="btmbarbtn curren" data-bs-toggle="modal" data-bs-target="#currenModal">
            Currency
          </button>
          <button class="btmbarbtn curren" data-bs-toggle="modal" data-bs-target="#langModal">
            Change Lang.
          </button>
        </div>
        <ul class="sidebar">
                    <li class=" active ">
            <a href="/" >
                            <i class="navbar-icon far fa-plus-circle"></i>
                            New order
            </a>
          </li>
                    <li class="">
            <a href="/services" >
                            <i class="navbar-icon fas fa-list"></i>
                            Services
            </a>
          </li>
                    <li class="">
            <a href="/orders" >
                            <i class="navbar-icon fas fa-history"></i>
                            Orders
            </a>
          </li>
                    <li class="">
            <a href="/addfunds" >
                            <i class="navbar-icon far fa-wallet"></i>
                            Add funds
            </a>
          </li>
                    <li class="">
            <a href="/api" >
                            <i class="navbar-icon far fa-code-branch"></i>
                            API
            </a>
          </li>
                    <li class="">
            <a href="/affiliates" >
                            <i class="navbar-icon far fa-hands-helping"></i>
                            Affiliates
            </a>
          </li>
                    <li class="">
            <a href="/child-panels" >
                            <i class="navbar-icon far fa-child"></i>
                            Child panel
            </a>
          </li>
                    <li class="">
            <a href="/tickets" >
                            <i class="navbar-icon far fa-headset"></i>
                            Tickets
            </a>
          </li>
                    <li class="">
            <a href="/massorder" >
                            <i class="navbar-icon far fa-boxes"></i>
                            Mass order
            </a>
          </li>
                    <li class="">
            <a href="/updates" >
                            <i class="navbar-icon far fa-rss"></i>
                            Updates
            </a>
          </li>
                    <li class="">
            <a href="https://bit.ly/3Bjnjyf"  target="_blank" >
                            <i class="navbar-icon far fa-tablet"></i>
                            Download App
            </a>
          </li>
                  </ul>
      </div>
    </div>
    
    <!-- Language Modal -->
    <div class="modal fade" id="langModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">Select Preferred Language</h5>
            <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
          </div>
          <div class="modal-body">
            <div id="google_translate_element"></div>

            <script type="text/javascript">
              // Initialize the Google Translate Element
              function googleTranslateElementInit() {
                new google.translate.TranslateElement({
                  pageLanguage: 'en', // Default language
                  includedLanguages: 'af,am,ar,az,be,bg,bn,bs,ca,ceb,co,cs,cy,da,de,el,en,eo,es,et,eu,fa,fi,fr,fy,ga,gd,gl,gu,ha,haw,hi,hmn,hr,ht,hu,hy,id,ig,is,it,iw,ja,jw,ka,kk,km,kn,ko,kur,ky,la,lb,lo,lt,lv,mg,mhr,mi,mk,ml,mn,mr,ms,mt,my,ne,nl,no,ny,or,pa,pap,pl,ps,pt,ro,ru,rw,si,sk,sl,sm,sn,so,sq,sr,su,sv,sw,ta,te,tg,th,tl,tr,tt,ty,ug,uk,ur,uz,vi,xh,yi,yo,zh-CN,zh-TW,zu',
                  autoDisplay: false
                }, 'google_translate_element');
              }

              // Function to dynamically set Google Translate language
              function setGoogleTranslateLanguage(langCode) {
                const checkIfWidgetIsReady = setInterval(() => {
                  const selectElem = document.querySelector("select.goog-te-combo");
                  if (selectElem) {
                    clearInterval(checkIfWidgetIsReady); // Stop checking
                    selectElem.value = langCode; // Set the language code dynamically
                    selectElem.dispatchEvent(new Event("change")); // Trigger the language change

                    // Add a timeout to ensure the language persists after setting
                    setTimeout(() => {
                      if (selectElem.value !== langCode) {
                        selectElem.value = langCode; // Forcefully set language if it changed back
                        selectElem.dispatchEvent(new Event("change"));
                      }
                    }, 1000); // Check again after 1 second to enforce language persistence
                  }
                }, 500); // Check every 500ms until the widget is ready
              }

              // Run this after the page and Google Translate widget are loaded
              window.onload = function () {
                // Replace 'en' with the actual variable from your backend or script
                const currentLangCode = "en"; // Ensure this outputs the desired language code like 'ru', 'tr', etc.

                if (currentLangCode) {
                  setGoogleTranslateLanguage(currentLangCode.toLowerCase());
                } else {
                  console.error("Language code is undefined or empty!");
                }
              };
            </script>

            <script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

            <!--<div id="google_translate_element"></div>
            <script type="text/javascript">
              function googleTranslateElementInit() {
                new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: 'af,am,ar,az,be,bg,bn,bs,ca,ceb,co,cs,cy,da,de,el,en,eo,es,et,eu,fa,fi,fr,fy,ga,gd,gl,gu,ha,haw,hi,hmn,hr,ht,hu,hy,id,ig,is,it,iw,ja,jw,ka,kk,km,kn,ko,kur,ky,la,lb,lo,lt,lv,mg,mhr,mi,mk,ml,mn,mr,ms,mt,my,ne,nl,no,ny,or,pa,pap,pl,ps,pt,ro,ru,rw,si,sk,sl,sm,sn,so,sq,sr,su,sv,sw,ta,te,tg,th,tl,tr,tt,ty,ug,uk,ur,uz,vi,xh,yi,yo,zh-CN,zh-TW,zu'}, 'google_translate_element');
              }
            </script>
            <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>-->
          </div>
        </div>
      </div>
    </div>

    <!-- Currency Modal -->
    <div class="modal fade" id="currenModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
      <div class="modal-dialog">
        <!-- Modal content -->
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">Select Preferred Currency</h5>
            <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
          </div>
          <div class="modal-body">
                      	{{ currencies_dropdown }}
                          </ul>
                      </div>
        </div>
      </div>
    </div>

  
{% else %}
  <body>
        <nav class="navbar guestnav navbar-expand-lg navbar-light bg-light ">
      <div class="container">
<a target="_self" href="/">
																		{% if site["logo"] %}
																			<img style="max-width:150px;" src="{{ site['logo'] }}" alt="" title="">
																		{% else %}
																			<span style="text-transform: ">
																				<span style="font-size: 24px">
																					<span style="letter-spacing: 1.0px">
																						<span style="line-height: 0px">
																							<strong style="font-weight: bold">{{ site["site_name"]
                                      }}</strong>
																						</span>
																					</span>
																				</span>
																			</span>
																		{% endif %}
																	</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
          <span class="iconham icon1"></span>
          <span class="iconham icon2"></span>
          <span class="iconham icon3"></span>
        </button>
        <div id="navbar" class="collapse navbar-collapse">
          <!--<ul class="navbar-nav me-auto mb-2 mb-lg-0">
            <li class="nav-item">
              <a class="nav-link currenbtnguest" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#langModal">
                <i class="fas fa-language"></i> Lang.
              </a>
            </li>
          </ul>-->

                    <ul class="navbar-nav me-auto mb-2 mb-lg-0">
            <li class="nav-item dropdown">
                                          <a class="nav-link dropdown-toggle" href="#" id="languageDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                English
              </a>
                                                                                                                                                                                                                                                                                                                                                                                                                                                  <ul class="dropdown-menu" aria-labelledby="languageDropdown">
                                <li  class="active" >
                  <a class="dropdown-item" href="/en">English</a>
                </li>
                                <li >
                  <a class="dropdown-item" href="/ar">Arabic</a>
                </li>
                                <li >
                  <a class="dropdown-item" href="/ru">Russian</a>
                </li>
                                <li >
                  <a class="dropdown-item" href="/tr">Turkish</a>
                </li>
                                <li >
                  <a class="dropdown-item" href="/bp">Portuguese (Brazil)</a>
                </li>
                                <li >
                  <a class="dropdown-item" href="/bn">Bengali</a>
                </li>
                                <li >
                  <a class="dropdown-item" href="/ko">Korean</a>
                </li>
                                <li >
                  <a class="dropdown-item" href="/es">Spanish</a>
                </li>
                                <li >
                  <a class="dropdown-item" href="/fr">French</a>
                </li>
                                <li >
                  <a class="dropdown-item" href="/zh">Chinese</a>
                </li>
                                <li >
                  <a class="dropdown-item" href="/id">Indonesian</a>
                </li>
                                <li >
                  <a class="dropdown-item" href="/it">Italian</a>
                </li>
                                <li >
                  <a class="dropdown-item" href="/pt">Portuguese</a>
                </li>
                                <li >
                  <a class="dropdown-item" href="/hi">Hindi</a>
                </li>
                                <li >
                  <a class="dropdown-item" href="/ur">Urdu</a>
                </li>
                              </ul>
            </li>
          </ul>
          
          <ul class="navbar-nav ms-auto mb-2 mb-lg-0">
                        <li class="nav-item  active ">
              <a class="nav-link" href="/" >
                                Sign in
              </a>
            </li>
                        <li class="nav-item ">
              <a class="nav-link" href="/services" >
                                Services
              </a>
            </li>
                        <li class="nav-item ">
              <a class="nav-link" href="/api" >
                                API
              </a>
            </li>
                        <li class="nav-item ">
              <a class="nav-link" href="/signup" >
                                Sign up
              </a>
            </li>
                        <li class="nav-item ">
              <a class="nav-link" href="https://bit.ly/3Bjnjyf"  target="_blank" >
                                Download App
              </a>
            </li>
                        <li class="nav-item ">
              <a class="nav-link" href="/blog" >
                                Blog
              </a>
            </li>
                        <li class="nav-item ">
              <a class="nav-link" href="/terms" >
                                Terms
              </a>
            </li>
                      </ul>
        </div>
      </div>
    </nav>

    <div class="pageexternalbtnwrap">
      <div class="mobiletabbtm externalpagebtm">
        <div class="lilist">
          <a href="/signup"><i class="fas fa-user-plus"></i> Register</a>
        </div>
        <div class="lilist">
          <a href="/services"><i class="fas fa-list-alt"></i> Services</a>
        </div>
        <div class="lilist">
          <a href="/"><i class="fas fa-user-lock"></i> Login</a>
        </div>
      </div>
    </div>

    
    <!-- Language Modal -->
    <div class="modal fade" id="langModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">Select Preferred Language</h5>
            <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
          </div>
          <div class="modal-body">
            <div id="google_translate_element"></div>

            <script type="text/javascript">
              // Initialize the Google Translate Element
              function googleTranslateElementInit() {
                new google.translate.TranslateElement({
                  pageLanguage: 'en', // Default language
                  includedLanguages: 'af,am,ar,az,be,bg,bn,bs,ca,ceb,co,cs,cy,da,de,el,en,eo,es,et,eu,fa,fi,fr,fy,ga,gd,gl,gu,ha,haw,hi,hmn,hr,ht,hu,hy,id,ig,is,it,iw,ja,jw,ka,kk,km,kn,ko,kur,ky,la,lb,lo,lt,lv,mg,mhr,mi,mk,ml,mn,mr,ms,mt,my,ne,nl,no,ny,or,pa,pap,pl,ps,pt,ro,ru,rw,si,sk,sl,sm,sn,so,sq,sr,su,sv,sw,ta,te,tg,th,tl,tr,tt,ty,ug,uk,ur,uz,vi,xh,yi,yo,zh-CN,zh-TW,zu',
                  autoDisplay: false
                }, 'google_translate_element');
              }

              // Function to dynamically set Google Translate language
              function setGoogleTranslateLanguage(langCode) {
                const checkIfWidgetIsReady = setInterval(() => {
                  const selectElem = document.querySelector("select.goog-te-combo");
                  if (selectElem) {
                    clearInterval(checkIfWidgetIsReady); // Stop checking
                    selectElem.value = langCode; // Set the language code dynamically
                    selectElem.dispatchEvent(new Event("change")); // Trigger the language change

                    // Add a timeout to ensure the language persists after setting
                    setTimeout(() => {
                      if (selectElem.value !== langCode) {
                        selectElem.value = langCode; // Forcefully set language if it changed back
                        selectElem.dispatchEvent(new Event("change"));
                      }
                    }, 1000); // Check again after 1 second to enforce language persistence
                  }
                }, 500); // Check every 500ms until the widget is ready
              }

              // Run this after the page and Google Translate widget are loaded
              window.onload = function () {
                // Replace 'en' with the actual variable from your backend or script
                const currentLangCode = "en"; // Ensure this outputs the desired language code like 'ru', 'tr', etc.

                if (currentLangCode) {
                  setGoogleTranslateLanguage(currentLangCode.toLowerCase());
                } else {
                  console.error("Language code is undefined or empty!");
                }
              };
            </script>

            <script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

            <!--<div id="google_translate_element"></div>
            <script type="text/javascript">
              function googleTranslateElementInit() {
                new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: 'af,am,ar,az,be,bg,bn,bs,ca,ceb,co,cs,cy,da,de,el,en,eo,es,et,eu,fa,fi,fr,fy,ga,gd,gl,gu,ha,haw,hi,hmn,hr,ht,hu,hy,id,ig,is,it,iw,ja,jw,ka,kk,km,kn,ko,kur,ky,la,lb,lo,lt,lv,mg,mhr,mi,mk,ml,mn,mr,ms,mt,my,ne,nl,no,ny,or,pa,pap,pl,ps,pt,ro,ru,rw,si,sk,sl,sm,sn,so,sq,sr,su,sv,sw,ta,te,tg,th,tl,tr,tt,ty,ug,uk,ur,uz,vi,xh,yi,yo,zh-CN,zh-TW,zu'}, 'google_translate_element');
              }
            </script>
            <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>-->
          </div>
        </div>
      </div>
    </div>

    <!-- Currency Modal -->
    <div class="modal fade" id="currenModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
      <div class="modal-dialog">
        <!-- Modal content -->
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">Select Preferred Currency</h5>
            <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
          </div>
          <div class="modal-body">
                        <ul class="currencieslist" id="currencies-list">
                            <li>
                <a href="#" id="currencies-item" data-rate-key="AED" data-rate-symbol="د.إ">AED
                  <span>د.إ</span></a>
              </li>
                            <li>
                <a href="#" id="currencies-item" data-rate-key="EUR" data-rate-symbol="€">EUR
                  <span>€</span></a>
              </li>
                            <li>
                <a href="#" id="currencies-item" data-rate-key="GBP" data-rate-symbol="£">GBP
                  <span>£</span></a>
              </li>
                            <li>
                <a href="#" id="currencies-item" data-rate-key="INR" data-rate-symbol="₹">INR
                  <span>₹</span></a>
              </li>
                            <li>
                <a href="#" id="currencies-item" data-rate-key="PKR" data-rate-symbol="Rs">PKR
                  <span>Rs</span></a>
              </li>
                            <li>
                <a href="#" id="currencies-item" data-rate-key="TRY" data-rate-symbol="₺">TRY
                  <span>₺</span></a>
              </li>
                          </ul>
                      </div>
        </div>
      </div>
    </div>

		{% endif %}
	</body>
</body>
</html>