<!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]-->
  
      <link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800,900|Material+Icons" rel="stylesheet">
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.css" />
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick-theme.css" />
      <link rel="stylesheet" type="text/css" href="{{ site['url'] }}/public/modern/css/main.css">
      <link rel="stylesheet" type="text/css" href="{{ site['url'] }}/public/modern/css/style.css">
      <link rel="stylesheet" type="text/css" href="{{ site['url'] }}/public/modern/css/datepicker.css">
      <link rel="stylesheet" type="text/css" href="{{ site['url'] }}/public/modern/css/all.min.css">
      <script src="https://kit.fontawesome.com/cdf6ec0a5a.js" crossorigin="anonymous"></script>

    <style>
        .form-control[disabled], .inner-dashboard .form-control[readonly] {
        background: #f3f0f0;
        }
    </style>
    
    {{ headerCode }}

  </head>
{% if user['auth'] %}
 
<body class="dashboard bodyBg">
  <nav id="dashNav" class="navbar navbar-default ">
    <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="/">
                      <img src="{{ site['logo'] }}" alt="{{ site['url'] }}" title="{{ site['url'] }}">
                  </a>
        <ul class="nav navbar-nav navbar-right">
          <li class="hideMobile"><a href="/addfunds"><span class="badge" style="background:#fff;display:flex;color: #949597;"><i class="material-icons">attach_money</i> Deposit</span></a></li>
        <li class="hideMobile"><a href="#"><span class="badge">{% if settings['site_currency'] == "TRY" %} 
                    {{ "₺" }}
                {% elseif settings['site_currency'] == "USD" %}
                    {{ "$" }}
          {% elseif settings['site_currency'] == "INR" %}
                    {{ "₹" }}
                {% else %}
                    {{ "€" }}
                {% endif %} {{ user['balance'] }}</span></a></li>
        <li><a href="#"><span class="hello">Hello</span>  @{{ user['username'] }}</a></li>
        <li class="dropdown hideMobile">
          
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="material-icons">account_circle</i> <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="/account"><i class="material-icons">settings</i> Account Settings</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="/logout"><i class="material-icons">power_settings_new</i> Logout</a></li>
          </ul>
        </li>
              </ul> 
      </div>
      <!--  //navbar-header -->
      <div id="navbar" class="navbar-collapse collapse">
        <ul class="nav page-navigation showMobile">
        
          <li class="showMobile"><a href="#"><span class="badge">{% if settings['site_currency'] == "TRY" %} 
                    {{ "₺" }}
                {% elseif settings['site_currency'] == "USD" %}
                    {{ "$" }}
          {% elseif settings['site_currency'] == "INR" %}
                    {{ "₹" }}
                {% else %}
                    {{ "€" }}
                {% endif %} {{ user['balance'] }}</span></a></li>
                               <li ><a href="/faq"><i class="material-icons">help </i>FAQ</a></li>
                    
                              <li {% if active_menu == "neworder" %} class="active" {% endif %} ><a href="/"><i class="material-icons">add_circle_outline</i> New order</a></li> 
                    
                                        
                               <li {% if active_menu == "services" %} class="active" {% endif %} ><a href="/services"><i class="material-icons">storage</i> Services</a></li>
                    
                             <li {% if active_menu == "orders" %} class="active" {% endif %} ><a href="/orders"><i class="material-icons">history</i> Orders History</a></li>
                    
                              <li {% if active_menu == "child-panels" %} class="active" {% endif %}><a href="/child-panels"><i class="material-icons">add_circle_outline</i>Child Panel</a></li>
                     <li {% if active_menu == "addfunds" %} class="active" {% endif %} ><a href="/addfunds"><i class="material-icons">attach_money</i> Deposit</a></li>
                                <li {% if active_menu == "api" %} class="active" {% endif %} ><a href="/api"><i class="material-icons">layers</i> API</a></li>
                    
                              <li {% if active_menu == "tickets" %} class="active" {% endif %} ><a href="/tickets"><i class="material-icons">brightness_low </i>Tickets</a></li>
                    
                              <li {% if active_menu == "terms" %} class="active" {% endif %} ><a href="/terms"><i class="material-icons">brightness_low </i>Terms</a></li>
                    

        
          <li><a href="/account"><i class="material-icons">settings</i> Account Settings</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="/logout"><i class="material-icons">power_settings_new</i> Logout</a></li>
          
        </ul>
      
      </div>
    </div>
  </nav>
  <div class="nav-bottom">
    <div class="container">
    	<ul class="nav page-navigation">
         
                                                            <li {% if active_menu == "neworder" %} class="active" {% endif %} ><a href="/"><i class="material-icons">add_circle_outline</i> New order</a></li> 
                                                                       <li {% if active_menu == "services" %} class="active" {% endif %} ><a href="/services"><i class="material-icons">storage</i> Services</a></li>
                                       	<li {% if active_menu == "orders" %} class="active" {% endif %} class="dropdown">
           		<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="material-icons">history</i> Orders History</a>
              	<ul class="dropdown-menu">
                                                                                                                  
                                                                                                                                                                                                    <li><a href="/orders"><i class="material-icons">history </i> Orders</a>
                                                                                                                                                                                                                                                                                                                                                          </li>
                </ul>
          	</li>
                                        <li {% if active_menu == "addfunds" %} class="active" {% endif %} ><a href="/addfunds"><i class="material-icons">attach_money</i> Deposit</a></li>
                                         <li {% if active_menu == "child-panels" %} class="active" {% endif %} ><a href="/child-panels"><i class="material-icons">add_circle_outline</i> Child Panel</a></li>
                                          <li {% if active_menu == "api" %} class="active" {% endif %} ><a href="/api"><i class="material-icons">layers</i> API</a></li>
                                                                                                                        <li {% if active_menu == "faq" %} class="active" {% endif %} {% if active_menu == "terms" %} class="active" {% endif %} {% if active_menu == "tickets" %} class="active" {% endif %} class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="material-icons">brightness_low</i>FAQ and Support</a>
            <ul class="dropdown-menu">
                                          <li ><a href="/faq"><i class="material-icons">help </i> FAQ</a>
                                                                                    <li ><a href="/tickets"><i class="material-icons">brightness_low </i> Tickets</a>
                                                          <li ><a href="/terms"><i class="material-icons">brightness_low </i> Terms</a>
                                            </li>
            </ul>
          </li>
    	</ul>
    </div>
  </div>



{% else %}

<body class="notAuth {% if active_menu == "services" %} bodyBg {% endif %} {% if active_menu == "terms" %} bodyBg {% endif %} {% if active_menu == "resetpassword" %} bodyBg {% endif %}">
  <nav class="navbar navbar-default navbar-inverse 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="/">
                      <img src="{{ site['logo'] }}" alt="{{ site["site_name"] }}" title="{{ site["site_name"] }}">
                  </a>
      </div>
      <div id="navbar" class="collapse navbar-collapse">
                <ul class="nav navbar-nav navbar-right">
                      <li class="active" ><a href="/">Sign in</a></li>
                      <li><a href="/services">Services</a></li>
                      <li><a href="/terms">Terms</a></li>
                      <li><a href="/signup">Sign up</a></li>
                  </ul>
      </div>
    </div>
  </nav>
{% endif %}