<?php include('connection/conn.php');
session_start();
if(!isset($_SESSION['user']))
{
	header("location:index.php");
}
$login_user=$_SESSION['user'];
$pos=$_SESSION['pos'];
date_default_timezone_set('Asia/Baghdad'); 
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>SB</title>
    <meta
      content="width=device-width, initial-scale=1.0, shrink-to-fit=no"
      name="viewport"
    />
    <link
      rel="icon"
      href="assets/img/kaiadmin/favicon.ico"
      type="image/x-icon"
    />

    <!-- Fonts and icons -->
    <script src="assets/js/plugin/webfont/webfont.min.js"></script>
    <script>
      WebFont.load({
        google: { families: ["Public Sans:300,400,500,600,700"] },
        custom: {
          families: [
            "Font Awesome 5 Solid",
            "Font Awesome 5 Regular",
            "Font Awesome 5 Brands",
            "simple-line-icons",
          ],
          urls: ["assets/css/fonts.min.css"],
        },
        active: function () {
          sessionStorage.fonts = true;
        },
      });
    </script>

    <!-- CSS Files -->
    <link rel="stylesheet" href="assets/css/bootstrap.min.css" />
   <!-- <link rel="stylesheet" href="assets/css/plugins.min.css" />-->
    <link rel="stylesheet" href="assets/css/kaiadmin.min.css" />
	<link href="https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;700&display=swap" rel="stylesheet">

    <!-- CSS Just for demo purpose, don't include it in your project -->
    <!--<link rel="stylesheet" href="assets/css/demo.css" />-->
  </head>
 <body >
    <div class="wrapper" dir=rtl>
      <!-- Sidebar -->
      <div class="sidebar" data-background-color="white">
        <div class="sidebar-logo">
          <!-- Logo Header -->
          <div class="logo-header" data-background-color="white">
            <a href="home.php" class="logo">
              <img
                src="icon/logo2.jpg"
                alt="navbar brand"
                class="navbar-brand"
                height="32"
              />
            </a>
            <div class="nav-toggle">
              <button class="btn btn-toggle toggle-sidebar">
                <i class="gg-menu-right"></i>
              </button>
              <button class="btn btn-toggle sidenav-toggler">
                <i class="gg-menu-left"></i>
              </button>
            </div>
            <button class="topbar-toggler more">
              <i class="gg-more-vertical-alt"></i>
            </button>
          </div>
          <!-- End Logo Header -->
        </div>
        <div class="sidebar-wrapper scrollbar scrollbar-inner">
          <div class="sidebar-content">
            <ul class="nav nav-secondary" style=" font-family: 'Noto Naskh Arabic', serif;">
			
			
			<li class="nav-item" style="background-color:#e8f2fc">
                <a href="home.php">
                  <i class="fas fa-home"></i>
                  <p style="font-size:16pt;font-family: 'Noto Naskh Arabic', serif; ">سەرەتا</p>
                  <span class="badge badge-secondary"></span>
                </a>
              </li>
			<?php if($pos==1){ ?>
			<li class="nav-item" style="background-color:#d6ebff">
                <a data-bs-toggle="collapse" href="#base9">
                  <i class="fas fa-tasks"></i>
                  <p style="font-size:16pt;font-family: 'Noto Naskh Arabic', serif; ">حساباتی کاڵا</p>
                  <span class="caret"></span>
                </a>
                <div class="collapse" id="base9">
                  <ul class="nav nav-collapse">
                    <li>
                      <a href="item_jard.php">
                        <span class="sub-item" style="font-size:11pt; ">جەرد</span>
                      </a>
                    </li>
                    
                    <li>
                      <a href="item_less.php">
                        <span class="sub-item" style="font-size:11pt; ">کەم بووەکان</span>
                      </a>
                    </li>
                   
                   
                  </ul>
                </div>
              </li>
			  
			  <li class="nav-item" style="background-color:#b8dbfc">
                <a data-bs-toggle="collapse" href="#base91">
                  <i class="fas fa-pen"></i>
                  <p style="font-size:16pt;font-family: 'Noto Naskh Arabic', serif; ">ڕاپۆرت</p>
                  <span class="caret"></span>
                </a>
                <div class="collapse" id="base91">
                  <ul class="nav nav-collapse">
                    <li>
                      <a href="report2.php">
                        <span class="sub-item" style="font-size:11pt; ">گشتی</span>
                      </a>
                    </li>
					
                    <li>
                      <a href="report4.php">
                        <span class="sub-item" style="font-size:11pt; ">فرۆشیار</span>
                      </a>
                    </li>
                    <li>
                      <a href="report3.php">
                        <span class="sub-item" style="font-size:11pt; ">کۆد</span>
                      </a>
                    </li>
                   
                   
                  </ul>
                </div>
              </li>
              
              <li class="nav-item" style="background-color:#9eccf7">
                <a data-bs-toggle="collapse" href="#base">
                  <i class="fas fa-layer-group"></i>
                  <p style="font-size:16pt;font-family: 'Noto Naskh Arabic', serif; ">کڕین</p>
                  <span class="caret"></span>
                </a>
                <div class="collapse" id="base">
                  <ul class="nav nav-collapse">
                    <li>
                      <a href="store_list.php">
                        <span class="sub-item" style="font-size:11pt; ">فرۆشیارەکان</span>
                      </a>
                    </li>
                    <li>
                      <a href="purchase.php">
                        <span class="sub-item" style="font-size:11pt; ">کڕین</span>
                      </a>
                    </li>
					
                    <li>
                      <a href="pay.php">
                        <span class="sub-item" style="font-size:11pt; ">پارەدان</span>
                      </a>
                    </li>
                   
                   
                  </ul>
                </div>
              </li>
			   <li class="nav-item"   style="background-color:#8cc5fa;">
                <a data-bs-toggle="collapse" href="#base2">
                  <i class="fas fa-user"></i>
                  <p style="font-size:16pt;font-family: 'Noto Naskh Arabic', serif; ">کڕیارەکان</p>
                  <span class="caret"></span>
                </a>
                <div class="collapse" id="base2">
                  <ul class="nav nav-collapse">
                    <li>
                      <a href="customer_list.php">
                        <span class="sub-item" style="font-size:11pt; ">ناوەوە</span>
                      </a>
                    </li>
                    <li>
                      <a href="customer_list2.php">
                        <span class="sub-item" style="font-size:11pt; ">دەرەوە</span>
                      </a>
                    </li>
					<li>
                      <a href="get.php">
                        <span class="sub-item" style="font-size:11pt; ">پارە وەرگرتن</span>
                      </a>
                    </li>
                    
                   
                   
                  </ul>
                </div>
              </li>
			  
			  <li class="nav-item" style="background-color:#bbfac2;">
                <a data-bs-toggle="collapse" href="#base92">
                  <i class="fab fa-mix"></i>
                  <p style="font-size:16pt;font-family: 'Noto Naskh Arabic', serif; ">زیاتر</p>
                  <span class="caret"></span>
                </a>
                <div class="collapse" id="base92">
                  <ul class="nav nav-collapse">
                    <li>
                      <a href="emp_list.php">
                        <span class="sub-item" style="font-size:11pt; ">کارمەندان</span>
                      </a>
                    </li>
                    <li>
                      <a href="gift.php">
                        <span class="sub-item" style="font-size:11pt; ">دیاری</span>
                      </a>
                    </li>
					<li>
                      <a href="destroy.php">
                        <span class="sub-item" style="font-size:11pt; ">عیبدار</span>
                      </a>
                    </li>
					
					 <li>
                      <a href="user_list.php">
                        <span class="sub-item" style="font-size:11pt; ">بەکارهێنەران</span>
                      </a>
                    </li>
                   
                   
				  </ul>
                </div>
              </li>
			  
			  
			   <li class="nav-item" style="background-color:#a8f7b1;">
                <a data-bs-toggle="collapse" href="#base93">
                  <i class="fab fa-mix"></i>
                  <p style="font-size:16pt;font-family: 'Noto Naskh Arabic', serif; ">کۆمپانیا</p>
                  <span class="caret"></span>
                </a>
                <div class="collapse" id="base93">
                  <ul class="nav nav-collapse">
                    <li>
                      <a href="company_list.php">
                        <span class="sub-item" style="font-size:11pt; ">کۆمپانیاکان</span>
                      </a>
                    </li>
                    <li>
                      <a href="company_get.php">
                        <span class="sub-item" style="font-size:11pt; ">ڕاکێشان</span>
                      </a>
                    </li>
					<li>
                      <a href="company_pay.php">
                        <span class="sub-item" style="font-size:11pt; ">صرفکردن</span>
                      </a>
                    </li>
					
					
                   
				  </ul>
                </div>
              </li>
			  
			  <?php } ?>
			  
			  <?php if($pos<3){ ?>
		<li class="nav-item" style="background-color:#92f79d">
                <a href="item_list.php">
                  <i class="fas fa-tasks"></i>
                  <p style="font-size:16pt;font-family: 'Noto Naskh Arabic', serif; ">کاڵاکان</p>
                  <span class="badge badge-secondary"></span>
                </a>
              </li>
			  <li class="nav-item" style="background-color:lightgreen">
                <a href="report1.php">
                  <i class="fas fa-pen"></i>
                  <p style="font-size:16pt;font-family: 'Noto Naskh Arabic', serif; ">ڕاپۆرتی ڕۆژانە</p>
                  <span class="badge badge-secondary"></span>
                </a>
              </li>
			  
			  
			   <li class="nav-item" style="background-color:#77fc85">
                <a data-bs-toggle="collapse" href="#base94">
                  <i class="fas fa-pen"></i>
                  <p style="font-size:16pt;font-family: 'Noto Naskh Arabic', serif; ">قەرز و مصروف</p>
                  <span class="caret"></span>
                </a>
                <div class="collapse" id="base94">
                  <ul class="nav nav-collapse">
                    <li>
                      <a href="qarz_list.php">
                        <span class="sub-item" style="font-size:11pt; ">لیستی قەرز</span>
                      </a>
                    </li>
                    <li>
                      <a href="masruf_list.php">
                        <span class="sub-item" style="font-size:11pt; ">مصروفی ڕۆژانە</span>
                      </a>
                    </li>
					<li>
                      <a href="masruf_list2.php">
                        <span class="sub-item" style="font-size:11pt; ">مصروفی گشتی</span>
                      </a>
                    </li>
					<li>
                      <a href="masruf_list3.php">
                        <span class="sub-item" style="font-size:11pt; ">پارە بردن</span>
                      </a>
                    </li>
                    
                   
                   
                  </ul>
                </div>
              </li>
		
		<?php } ?>
		
			  
			  <li class="nav-item" style="background-color:#ffd478">
                <a href="sell_j.php">
                  <i class="far fa-paper-plane"></i>
                  <p style="font-size:16pt;font-family: 'Noto Naskh Arabic', serif; ">فرۆشتن</p>
                  <span class="badge badge-secondary"></span>
                </a>
              </li>
			  <li class="nav-item" style="background-color:#ffd478">
                <a href="sell_j2.php">
                  <i class="far fa-paper-plane"></i>
                  <p style="font-size:16pt;font-family: 'Noto Naskh Arabic', serif; ">فرۆشتنی نقدی</p>
                  <span class="badge badge-secondary"></span>
                </a>
              </li>
			  
			 <li class="nav-item" style="background-color:#ffd478">
                <a href="old_debt.php">
                  <i class="far fa-paper-plane"></i>
                  <p style="font-size:16pt;font-family: 'Noto Naskh Arabic', serif; ">قەرزی کۆن</p>
                  <span class="badge badge-secondary"></span>
                </a>
              </li>
			  
			   <li class="nav-item" style="background-color:#ffd478">
                <a href="logout.php">
                  <i class="fas fa-backspace"></i>
                  <p style="font-size:16pt;font-family: 'Noto Naskh Arabic', serif; ">دەرچوون</p>
                  <span class="badge badge-secondary"></span>
                </a>
              </li>
			  
			  
			  
			  
			  
			  
			
              
            
            </ul>
          </div>
        </div>
      </div>
      <!-- End Sidebar -->

      <div class="main-panel">
        <div class="main-header">
          <div class="main-header-logo">
            <!-- Logo Header -->
            <div class="logo-header" data-background-color="white">
              <a href="index.html" class="logo">
                <img
                  src="assets/img/kaiadmin/logo2.png"
                  alt="navbar brand"
                  class="navbar-brand"
                  height="60"
                />
              </a>
              <div class="nav-toggle">
                <button class="btn btn-toggle toggle-sidebar">
                  <i class="gg-menu-right"></i>
                </button>
                <button class="btn btn-toggle sidenav-toggler">
                  <i class="gg-menu-left"></i>
                </button>
              </div>
              <button class="topbar-toggler more">
                <i class="gg-more-vertical-alt"></i>
              </button>
            </div>
            <!-- End Logo Header -->
          </div>
         
        </div>