<!DOCTYPE html>
<html lang="tr">
<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]-->
  
        <link rel="stylesheet" type="text/css" href="/public/styles/{{ settings['site_theme_alt'] }}.css">
    {% for style in styleList %}
      <link rel="stylesheet" type="text/css" href="{{ style }}">
    {% endfor %}
    
    {{ headerCode }}

  </head>
<body>
{% if user['auth'] %}
  <nav class="navbar navbar-default navbar-static-top ">
    <div class="container-fluid">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="{{ site['url'] }}">
          {% if site["logo"] %}
            <img src="{{ site['logo'] }}" alt="" title="">
          {% else %}
            {{ site["site_name"] }}
          {% endif %}
        </a>
      </div>
      <div id="navbar" class="collapse navbar-collapse">
        <ul class="nav navbar-nav navbar-left-block">
            
            <li {% if active_menu == "neworder" %} class="active" {% endif %} ><a href="{{ site['url'] }}">{{ lang['neworder.title'] }}</a></li>
            <li {% if active_menu == "services" %} class="active" {% endif %} ><a href="{{ site['url'] }}/services">{{ lang['services.title'] }}</a></li>
            <li {% if active_menu == "orders" %} class="active" {% endif %} ><a href="{{ site['url'] }}/orders">{{ lang['orders.title'] }}</a></li>
           	{% if site["dripfeedcount"] %}
				<li {% if active_menu == "dripfeeds" %} class="active" {% endif %} ><a href="{{ site['url'] }}/dripfeeds">{{ lang['dripfeed.title'] }}</a></li>
			{% else %}
           
			{% endif %}
			
			{% if site["subscriptionscount"] %}
				<li {% if active_menu == "subscriptions" %} class="active" {% endif %} ><a href="{{ site['url'] }}/subscriptions">{{ lang['subscriptions.title'] }}</a></li>
			{% else %}
           
			{% endif %}
            <li {% if active_menu == "addfunds" %} class="active" {% endif %} ><a href="{{ site['url'] }}/addfunds">{{ lang['addfunds.title'] }}</a></li>
             <li {% if active_menu == "child-panels" %} class="active" {% endif %} ><a href="{{ site['url'] }}/child-panels">Child Panels</a></li>
            <li {% if active_menu == "api" %} class="active" {% endif %} ><a href="{{ site['url'] }}/api">{{ lang['api.title'] }}</a></li>
             
            <li {% if active_menu == "tickets" %} class="active" {% endif %} ><a href="{{ site['url'] }}/tickets">{{ lang['tickets.title'] }} {% if ticketCount %} <span class="badge">{{ ticketCount }}</span> {% endif %} </a></li>  
            <li {% if active_menu == "faq" %} class="active" {% endif %} ><a href="{{ site['url'] }}/faq">{{ lang['faq.title'] }}</a></li>
                <li {% if active_menu == "terms" %} class="active" {% endif %} ><a href="{{ site['url'] }}/terms">{{ lang['terms.title'] }}</a></li>
        </ul>   
   
             
        <ul class="nav navbar-nav navbar-right navbar-right-block">
          <li>
            <a><span class="badge">
                
                {% if settings['site_currency'] == "TRY" %} 
                    {{ "&#8378;" }}
                {% elseif settings['site_currency'] == "USD" %}
                    {{ "&#36;" }}
                {% else %}
                    {{ "₹" }}
                {% endif %}
				{{ user['balance'] }}
            </span></a>
          </li>
          <li {% if active_menu == "account" %} class="active" {% endif %} >
            <a href="account">{{ lang['account.title'] }}</a>
          </li>
          <li>
            <a href="logout">{{ lang['logout.title'] }}</a>
          </li>
        </ul>
      </div>

    </div>
  </nav>
{% else %}
  <nav class="navbar navbar-default navbar-static-top ">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="{{ site['url'] }}">
        {% if site["logo"] %}
          <img src="{{ site['logo'] }}" alt="" title="">
        {% else %}
          {{ site["site_name"] }}
        {% endif %}
      </a>
    </div>

    <div id="navbar" class="collapse navbar-collapse">
      {% if site['languages']|length > 1 %}
        <ul class="nav navbar-nav navbar-left-block">
          <li class="dropdown">
            {% for lang in site['languages'] %}
              {% if lang['active'] %}
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> {{ lang['name'] }} <span class="caret"></span></a>
              {% endif %}
            {% endfor %}
            <ul class="dropdown-menu dropdown-max-height">
              {% for lang in site['languages'] %}
                <li {% if lang['active'] %} class="active"{% endif %} ><a href="?lang={{ lang['code'] }}">{{ lang['name'] }}</a></li>
              {% endfor %}
            </ul>
          </li>
        </ul>
      {% endif %}
      <ul class="nav navbar-nav navbar-right navbar-right-block">
        <li>
          <a href="">{{ lang['signin.title'] }}</a>
        </li> 
        {% if servicesPage %}
        <li>
          <a href="services">{{ lang['services.title'] }}</a>
        </li>
        {% endif %}
        <li>
          <a href="signup">{{ lang['signup.title'] }}</a>
        </li>
      
      </ul>
    </div>

  </div>
</nav>
{% endif %}