<?php 
  require('connection.inc.php'); 
  require('functions.inc.php');
  if ($_SESSION['ADMIN_LOGIN'] == 'yes' && isset($_SESSION['ADMIN_USERNAME'])) {
  } else {
    header('location:login.php');
  } 
?>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">

  <title>Admin Paneli</title>
  <meta content="" name="description">
  <meta content="" name="keywords">

  <!-- Favicons -->
  <link href="assets/img/favicon.png" rel="icon">
  <link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">

  <!-- Google Fonts -->
  <link href="https://fonts.gstatic.com" rel="preconnect">
  <link
    href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Nunito:300,300i,400,400i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i"
    rel="stylesheet">

  <!-- Vendor CSS Files -->
  <link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  <link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
  <link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
  <link href="assets/vendor/quill/quill.snow.css" rel="stylesheet">
  <link href="assets/vendor/quill/quill.bubble.css" rel="stylesheet">
  <link href="assets/vendor/remixicon/remixicon.css" rel="stylesheet">
  <link href="assets/vendor/simple-datatables/style.css" rel="stylesheet">

  <!-- Template Main CSS File -->
  <link href="assets/css/style.css" rel="stylesheet">

  <!-- =======================================================
  * Template Name: Admin Dashboard
  * Updated: May 30 2023 with Bootstrap v5.3.0
  * Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
  * Author: BootstrapMade.com
  * License: https://bootstrapmade.com/license/
  ======================================================== -->
</head>

<body>

  <!-- ======= Header ======= -->
  <header id="header" class="header fixed-top d-flex align-items-center">

    <div class="d-flex align-items-center justify-content-between">
      <a href="home.php" class="logo d-flex align-items-center">
        <img src="assets/img/logo.png" alt="">
        <span class="d-none d-lg-block">Admin Dolandyryş paneli</span>
      </a>
      <i class="bi bi-list toggle-sidebar-btn"></i>
    </div><!-- End Logo -->

    <div class="search-bar">
      <form class="search-form d-flex align-items-center" method="POST" action="#">
        <input type="text" name="query" placeholder="Search" title="Enter search keyword">
        <button type="submit" title="Search"><i class="bi bi-search"></i></button>
      </form>
    </div>
    <!-- End Search Bar -->

    <nav class="header-nav ms-auto">
            <ul class="d-flex align-items-center">

                <li class="nav-item d-block d-lg-none">
                    <a class="nav-link nav-icon search-bar-toggle " href="#">
                        <i class="bi bi-search"></i>
                    </a>
                </li><!-- End Search Icon-->
                <div>
                    <li class="nav-item dropdown">

                        <a class="nav-link nav-icon" href="#" data-bs-toggle="dropdown">
                            <i class="bi bi-bell"></i>
                            <span class="badge bg-primary badge-number">0</span>
                        </a><!-- End Notification Icon -->

                        <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow notifications">
                            <li class="dropdown-header">
                                Duýduryş ýok
                            </li>
                            <li>
                                <hr class="dropdown-divider">
                            </li>
                        </ul><!-- End Notification Dropdown Items -->
                </div>
                </li><!-- End Notification Nav -->
                <div>

                    <li class="nav-item dropdown">

                        <a class="nav-link nav-icon" href="#" data-bs-toggle="dropdown">
                            <i class="bi bi-chat-left-text"></i>
                            <span class="badge bg-success badge-number">0</span>
                        </a><!-- End Messages Icon -->

                        <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow messages">
                            <li class="dropdown-header">
                                Habarlaryňyz ýok
                            </li>
                            <li>
                                <hr class="dropdown-divider">
                            </li>

                        </ul>
                        <!-- End Messages Dropdown Items -->

                    </li>
                    <!-- End Messages Nav -->
                </div>
                <div>
                    <li class="nav-item dropdown pe-3">

                        <a class="nav-link nav-profile d-flex align-items-center pe-0" href="#" data-bs-toggle="dropdown">
                            <img src="assets/img/profile-img.jpg" alt="Profile" class="rounded-circle">
                            <span
                                class="d-none d-md-block dropdown-toggle ps-2">Admin</span>
                        </a><!-- End Profile Iamge Icon -->

                        <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow profile">
                            <li class="dropdown-header">
                                <h6>Admin</h6>
                                <span>Web dizaýneri</span>
                            </li>
                            <li>
                                <hr class="dropdown-divider">
                            </li>

                            <li>
                                <a class="dropdown-item d-flex align-items-center" href="#">
                                    <i class="bi bi-person"></i>
                                    <span>Meniň profilim</span>
                                </a>
                            </li>
                            <li>
                                <hr class="dropdown-divider">
                            </li>

                            <li>
                                <a class="dropdown-item d-flex align-items-center" href="#">
                                    <i class="bi bi-gear"></i>
                                    <span>Hasap sazlamalary</span>
                                </a>
                            </li>
                            <li>
                                <hr class="dropdown-divider">
                            </li>

                            <li>
                                <a class="dropdown-item d-flex align-items-center" href="#">
                                    <i class="bi bi-question-circle"></i>
                                    <span>Kömek gerek?</span>
                                </a>
                            </li>
                            <li>
                                <hr class="dropdown-divider">
                            </li>

                            <li>
                                <a class="dropdown-item d-flex align-items-center" href="logout.php">
                                    <i class="bi bi-box-arrow-right"></i>
                                    <span>Ulgamdan çykmak</span>
                                </a>
                            </li>

                        </ul><!-- End Profile Dropdown Items -->
                    </li><!-- End Profile Nav -->


        </nav><!-- End Icons Navigation -->
  </header><!-- End Header -->

  <!-- ======= Sidebar ======= -->
  <aside id="sidebar" class="sidebar">

    <ul class="sidebar-nav" id="sidebar-nav">

      <li class="nav-item">
        <a class="nav-link " href="admin_dashboard.php">
          <i class="bi bi-grid"></i>
          <span>Dolandyryş paneli</span>
        </a>
      </li><!-- End Dashboard Nav -->

      <li class="nav-heading">Sazlamalar</li>
      
      <li class="nav-item">
        <a class="nav-link collapsed" href="role_master.php">
          <i class="bi bi-person"></i>
          <span>Ulanyjylar</span>
        </a>
      </li><!-- End Role Page Nav -->

      <li class="nav-item">
        <a class="nav-link collapsed" href="new_agent.php">
          <i class="bi bi-person"></i>
          <span>Täze ulanyjy döretmek </span>
        </a>
      </li><!-- End Role Page Nav -->
      

      <li class="nav-item">
        <a class="nav-link collapsed" href="user_list.php">
          <i class="bi bi-person"></i>
          <span>Ähli ulanyjylary görmek</span>
        </a>
      </li><!-- End Role Page Nav -->

      
      <li class="nav-item">
        <a class="nav-link collapsed" href="city_master.php">
          <i class="bi bi-person"></i>
          <span>Kartlar</span>
        </a>
      </li><!-- End City Page Nav -->
      
      <li class="nav-item">
        <a class="nav-link collapsed" href="courier_master.php">
          <i class="bi bi-person"></i>
          <span>TTelekom kärhanalary</span>
        </a>
      </li><!-- End Courier Companies Page Nav -->

     
   
      <!-- new Courier -->
      <li class="nav-item">
        <a class="nav-link collapsed" href="admin.courier_details.php">
          <i class="bi bi-box-seam-fill"></i>
          
          <span>Ähli geçirim pullary görmek</span>
        </a>
      </li>
      <!-- View all courier details -->
    <!--  <li class="nav-item">
        <a class="nav-link collapsed" href="make_bill.php">
          <i class="bi bi-chat-left-fill"></i>
          <span>Hasap döretmek</span>
        </a>
      </li>-->
      <!-- update Bill -->
      
      <!-- update Bill -->
            <!-- Tracking -->

     
      <!-- Tracking -->
     
     


      

      <li class="nav-item">
        <a class="nav-link collapsed" href="logout.php">
          <i class="bi bi-box-arrow-out-right"></i>
          <span>Ulgamdan çykmak</span>
        </a>
      </li><!-- End Login Page Nav -->

     

    </ul>

  </aside><!-- End Sidebar-->
