<?php
if(!isset($_SESSION)) 
{ 
session_start(); 
} 
if(!isset($_SESSION['is_login']) ){
	header("location: login.php");
?>
<script>
window.location="login.php";
</script>
<?php
}
include('models/translation.class.php');

?>
<!DOCTYPE html>
<html lang="en">
<head>
	<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>

	<!-- Global stylesheets -->
	<link href="https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900" rel="stylesheet" type="text/css">
	<link href="assets_starter/css/icons/icomoon/styles.css" rel="stylesheet" type="text/css">
	<link href="assets_starter/css/bootstrap.css" rel="stylesheet" type="text/css">
	<link href="assets_starter/css/core.css" rel="stylesheet" type="text/css">
	<link href="assets_starter/css/components.css" rel="stylesheet" type="text/css">
	<link href="assets_starter/css/colors.css" rel="stylesheet" type="text/css">
	<!-- /global stylesheets -->

	<!-- Core JS files -->
	<script type="text/javascript" src="assets_starter/js/plugins/loaders/pace.min.js"></script>
	<script type="text/javascript" src="assets_starter/js/core/libraries/jquery.min.js"></script>
	<script type="text/javascript" src="assets_starter/js/core/libraries/bootstrap.min.js"></script>
	<script type="text/javascript" src="assets_starter/js/plugins/loaders/blockui.min.js"></script>
	<!-- /core JS files -->

	<!-- Theme JS files -->
	<script type="text/javascript" src="assets_starter/js/plugins/velocity/velocity.min.js"></script>
	<script type="text/javascript" src="assets_starter/js/plugins/velocity/velocity.ui.min.js"></script>
	<script type="text/javascript" src="assets_starter/js/plugins/ui/prism.min.js"></script>

	<script type="text/javascript" src="assets_starter/js/core/app.js"></script>
	<script type="text/javascript" src="assets_starter/js/pages/animations_velocity_examples.js"></script>

	<script type="text/javascript" src="assets_starter/js/plugins/ui/ripple.min.js"></script>

	<link rel="stylesheet" href="flip_clock/flipclock.css">


	<script src="flip_clock/flipclock.js"></script>	


	<link rel="stylesheet" href="calc/prism.css">
   	<script src="calc/prism.js"></script>

   	<link rel="stylesheet" href="calc/SimpleCalculadorajQuery.css">
   	<script src="calc/SimpleCalculadorajQuery.js"></script>

	<!-- /theme JS files -->

	<style>
		@font-face {
      		font-family: "Noto Kufi Arabic";
      		src: url(assets/custom_font/NotoKufiArabic-Bold.ttf) format("truetype");
    	}

    	.bg { 
		    /*background:  url("image/sys/bg_img.jpg") no-repeat center center fixed; */

		    background: linear-gradient(45deg, #956ef5    0, #f3a229a6  100%) no-repeat center center fixed;;
		    -webkit-background-size: cover;
		    -moz-background-size: cover;
		    -o-background-size: cover;
		    background-size: cover;

		  }

		  .navbar-default {
			    background-color: #0000005c;
			    border-color: #fff700;
			}

			.sidebar {
   				 background-color: #0005087d;
   			}

   			.sidebar-user-material .category-content {
    		 background: url(../images/backgrounds/user_bg4.jpg) center center no-repeat; 
		     background-color: #00ffff00;

    		}

    		.navbar-brand > img {
			    margin-top: -10px;
			    height: 40px;
			}

			.panel {
			   
			    background-color: #00000040;

			}

			.txtr {
    
			    color: greenyellow;
			}



			.sidebar-xs .header-highlight .navbar-header .navbar-brand {
			    
			    background-size: auto 35px;
			}

			.btn-lg, .btn-group-lg > .btn {
			    
			    font-size: 20px;
			    font-family: sans-serif;
			    line-height: 0.9;

			}
	</style>

</head>

<body class="bg" style=" font-family: 'Noto Kufi Arabic', Times, serif;">

	<!-- Main navbar -->
	<div class="navbar navbar-default header-highlight">
		<div class="navbar-header">
			<a class="navbar-brand" href="starter.php"><img src="assets_starter/images/logo_light.png" alt=""></a>

			<ul class="nav navbar-nav visible-xs-block">
				<li><a data-toggle="collapse" data-target="#navbar-mobile"><i class="icon-tree5"></i></a></li>
				<li><a class="sidebar-mobile-main-toggle"><i class="icon-paragraph-justify3"></i></a></li>
			</ul>
		</div>

		<div class="navbar-collapse collapse" id="navbar-mobile">
			<ul class="nav navbar-nav">
				<li><a class="sidebar-control text-white sidebar-main-toggle hidden-xs"><i class="icon-paragraph-justify3"></i></a></li>

				<li class="dropdown">
					
				</li>
			</ul>

			<div class="navbar-right">
				<p class="navbar-text text-white"><span class=" multi_lang">مرحبا</span> <?php echo $_SESSION['username']; ?></p>
				<p class="navbar-text"><span class="label bg-success">Online</span></p>
				
				
			</div>
		</div>
	</div>
	<!-- /main navbar -->


	<!-- Page container -->
	<div class="page-container">

		<!-- Page content -->
		<div class="page-content">

			<!-- Main sidebar -->
			<div class="sidebar sidebar-main">
				<div class="sidebar-content">

					<!-- User menu -->
					<div class="sidebar-user-material">
						<div class="category-content">
							<div class="sidebar-user-material-content">
								<a href="#">

									<?php if($_SESSION['profile_image']==null){  ?>
									<img src="image/sys/11882-anya_home.png" class="img-circle img-responsive" alt="">
									
									<?php }else{ ?>
									<img src="image/sys/11882-anya_home.png" class="img-circle img-responsive" alt="">

									<?php } ?>

								</a>
								<h6><?php echo $_SESSION['username']; ?></h6>
								<span dir="rtl" class="text-size-small">موظف منذ : <?php echo $_SESSION['created_at']; ?></span>
							</div>
														
							<div class="sidebar-user-material-menu">
								<a href="#user-nav" data-toggle="collapse"><span class="multi_lang">معلوماتي</span> <i class="caret"></i></a>
							</div>
						</div>
						
						<div class="navigation-wrapper collapse" id="user-nav">
							<ul class="navigation">
								<li><a href="index.php?p=profile"><i class="icon-user-plus"></i> <span class="multi_lang">صفحتي الشخصية</span></a></li>
								
								<li class="divider"></li>
								
								<li><a href="models/logout.php"><i class="icon-switch2"></i> <span class="multi_lang">تسجيل الخروج</span></a></li>
							</ul>
						</div>
					</div>
					<!-- /user menu -->

					<?php

							 $permission  = explode(',',$_SESSION['permission_id']);
               
               				asort($permission);
              
					?>

					<!-- Main navigation -->
					<div class="sidebar-category sidebar-category-visible">
						<div class="category-content no-padding">
							<ul class="navigation navigation-main navigation-accordion">

								<!-- Main -->
								<li class="navigation-header"><span><span class="multi_lang">الرئيسية</span></span> <i class="icon-menu" title="Main pages"></i></li>

								<?php if(in_array(1,$permission) || in_array(26,$permission)){ ?>
								<li><a href="index.php?p=dashboard"><i class="icon-home4"></i> <span class="no-margin multi_lang">لوحة المراقبة</span></a></li>
								<?php } ?>


								<?php if(in_array(1,$permission) || in_array(2,$permission) || in_array(25,$permission) || in_array(32,$permission) ){ ?>
								<li>
									<a href="#"><i class="icon-stack2"></i> <span class="multi_lang">التقارير</span></a>
									<ul>

										<?php if(in_array(1,$permission) || in_array(2,$permission)){ ?>
										<li><a href="index.php?p=report"><span class=" multi_lang">التقارير</span></a></li>
										<?php }   ?>

                    					<?php if(in_array(1,$permission) || in_array(25,$permission)){ ?>
										<li><a href="index.php?p=capital"><span class="no-margin multi_lang">رأس المال</span></a></li>
										<?php }   ?>
                    					
                    					<?php if(in_array(1,$permission) || in_array(32,$permission)){ ?>

										<li><a href="index.php?p=payment_notify"><span class="no-margin multi_lang">تنبيهات الدفوعات</span></a></li>
										<?php }   ?>
										
									</ul>
								</li>
								<?php } ?>


          						<?php if(in_array(1,$permission) || in_array(3,$permission) || in_array(4,$permission) || in_array(15,$permission) || in_array(18,$permission) ){ ?>


								<li>
									<a href="#"><i class="icon-copy"></i> <span class="multi_lang">المكونات</span></a>
									<ul>
                    					
                    					<?php if(in_array(1,$permission) || in_array(3,$permission)){ ?>

										<li><a href="index.php?p=product" id="layout1"><i class="icon-dropbox  opacity-75"></i><span class=" multi_lang">المواد</span></a></li>
										<?php } ?>
										
										<?php if(in_array(1,$permission) || in_array(4,$permission)){ ?>

										<li><a href="index.php?p=category" id="layout1"><i class="icon-tree7  opacity-75"></i><span class=" multi_lang">الفئات</span></a></li>
										<?php } ?>

										<?php if(in_array(1,$permission) || in_array(15,$permission)){ ?>

										<li><a href="index.php?p=items" id="layout1"><i class="icon-basket  opacity-75"></i><span class=" multi_lang">الاصناف</span></a></li>
										<?php } ?>

										<?php if(in_array(1,$permission) || in_array(18,$permission)){ ?>

										<li><a href="index.php?p=others" id="layout1"><i class="icon-dice  opacity-75"></i><span class=" multi_lang">مواد اخرى</span></a></li>
										<?php } ?>
									</ul>
								</li>

								<?php } ?>

								<?php if(in_array(1,$permission) || in_array(5,$permission) || in_array(13,$permission) || in_array(14,$permission) || in_array(6,$permission) || in_array(22,$permission) || in_array(24,$permission) || in_array(33,$permission)){ ?>


								<li>
									<a href="#"><i class="icon-droplet2"></i> <span class="multi_lang">المشتريات والمصاريف</span></a>
									<ul>
										
										<?php if(in_array(1,$permission) || in_array(5,$permission)){ ?>

										<li><a href="index.php?p=purchase" id="layout1"><i class="icon-cart-add2  opacity-75"></i><span class=" multi_lang">المشتريات</span></a></li>
										<?php } ?>

										<?php if(in_array(1,$permission) || in_array(13,$permission)){ ?>

										<li><a href="index.php?p=stock" id="layout1"><i class="icon-store  opacity-75"></i><span class=" multi_lang">المخازن</span></a></li>
										<?php } ?>

										<?php if(in_array(1,$permission) || in_array(14,$permission)){ ?>

										<li><a href="index.php?p=stock_report" id="layout1"><i class="icon-store  opacity-75"></i><span class=" multi_lang">الجرد المخزني</span></a></li>
										<?php } ?>

										<?php if(in_array(1,$permission) || in_array(33,$permission)){ ?>

										<li><a href="index.php?p=stock_return" id="layout1"><i class="icon-reset  opacity-75"></i><span class=" multi_lang">المواد المسترجعة</span></a></li>
										<?php } ?>


										<?php if(in_array(1,$permission) || in_array(22,$permission)){ ?>

										<li><a href="index.php?p=supplier" id="layout1"><i class="icon-truck  opacity-75"></i><span class=" multi_lang">الموردين</span></a></li>
										<?php } ?>

										<?php if(in_array(1,$permission) || in_array(24,$permission)){ ?>

										<li><a href="index.php?p=supplier_payment" id="layout1"><i class="icon-cart5  opacity-75"></i><span class="multi_lang">تسديد الموردين</span></a></li>
										<?php } ?>


										<?php if(in_array(1,$permission) || in_array(6,$permission)){ ?>

										<li><a href="index.php?p=expenses" id="layout1"><i class="icon-cash3  opacity-75"></i><span class=" multi_lang">المصاريف</span></a></li>

										<li><a href="index.php?p=expenses_group" id="layout1"><i class="icon-wallet  opacity-75"></i><span class=" multi_lang">فئات المصاريف</span></a></li>

										<?php } ?>



									</ul>
								</li>
								<?php } ?>



								<?php if(in_array(1,$permission) || in_array(7,$permission)  || in_array(9,$permission) || in_array(12,$permission)  || in_array(19,$permission)  || in_array(16,$permission) || in_array(17,$permission) || in_array(29,$permission)  || in_array(31,$permission)){ ?>


								<li>
									<a href="#"><i class="icon-stack"></i> <span class="multi_lang">مبيعات الجملة</span></a>
									<ul>
										
										<?php if(in_array(1,$permission) || in_array(7,$permission)){ ?>

										<li><a href="index.php?p=invoice" id="layout1"><i class="icon-calculator  opacity-75"></i><span class=" multi_lang">بيع مواد جملة</span></a></li>
										<?php } ?>

                    <?php if(in_array(1,$permission) || in_array(7,$permission)){ ?>

                    <li><a href="index.php?p=invoice_deleted" ><i class="icon-trash  opacity-75"></i><span class=" multi_lang">وصولات جملة - محذوفة</span></a></li>
                    <?php } ?>


										<?php if(in_array(1,$permission) || in_array(9,$permission)){ ?>

										<li><a href="index.php?p=invoice_curt&typ=0" id="layout1"><i class="icon-bookmarks  opacity-75"></i><span class=" multi_lang">بيع ستائر بالجملة</span></a></li>
										<?php } ?>


                    <?php if(in_array(1,$permission) || in_array(9,$permission)){ ?>

                    <li><a href="index.php?p=invoice_curt_deleted&typ=0"><i class="icon-trash  opacity-75"></i><span class=" multi_lang">ستائر الجملة المحذوفة</span></a></li>
                    <?php } ?>

										<?php if(in_array(1,$permission) || in_array(9,$permission)){ ?>

										<li><a href="index.php?p=offer_curt&typ=0" id="layout1"><i class="icon-file-check2  opacity-75"></i><span class=" multi_lang">عروض ستائر الجملة</span></a></li>
										<?php } ?>

										<?php if(in_array(1,$permission) || in_array(19,$permission)){ ?>

										<li><a href="index.php?p=account_statement&typ=0" id="layout1"><i class="icon-file-stats2  opacity-75"></i><span class=" multi_lang">كشف حساب الجملة</span></a></li>
										<?php } ?>

										<?php if(in_array(1,$permission) || in_array(12,$permission)){ ?>

										<li><a href="index.php?p=customer&typ=0" id="layout1"><i class="icon-users4  opacity-75"></i><span class=" multi_lang">زبائن الجملة</span></a></li>
										<?php } ?>


										<?php if(in_array(1,$permission) || in_array(16,$permission)){ ?>

										<li><a href="index.php?p=profile_price" ><i class="icon-coins  opacity-75"></i><span class=" multi_lang">ملفات الاسعار</span></a></li>
										<?php } ?>

										<?php if(in_array(1,$permission) || in_array(17,$permission)){ ?>

										<li><a href="index.php?p=product_price" ><i class="icon-price-tag  opacity-75"></i><span class=" multi_lang">تعريف اسعار المواد</span></a></li>
										<?php } ?>

										<?php if(in_array(1,$permission) || in_array(29,$permission)){ ?>

										<li><a href="index.php?p=capital_withdraw" ><i class="icon-drawer-out  opacity-75"></i><span class=" multi_lang">القروض والديون</span></a></li>
										<?php } ?>

										<?php if(in_array(1,$permission) || in_array(31,$permission)){ ?>

										<li><a href="index.php?p=payment" ><i class="icon-cash  opacity-75"></i><span class=" multi_lang">دفوعات عامة</span></a></li>
										<?php } ?>

										<?php if(in_array(1,$permission) || in_array(9,$permission)){ ?>

										<li><a href="index.php?p=notes" ><i class="icon-notebook  opacity-75"></i><span class=" multi_lang">ادارة الملاحظات</span></a></li>
										<?php } ?>
									</ul>
								</li>

								<?php } ?>




								<?php if(in_array(1,$permission) || in_array(8,$permission)  || in_array(28,$permission)  || in_array(30,$permission) || in_array(27,$permission)){ ?>


								<li>
									<a href="#"><i class="icon-file-empty"></i> <span class="multi_lang">مبيعات المفرد</span></a>
									<ul>
										
										


										<?php if(in_array(1,$permission) || in_array(8,$permission)){ ?>

										<li><a href="index.php?p=invoice_curt&typ=1" ><i class="icon-bookmark2  opacity-75"></i><span class=" multi_lang">بيع ستائر بالمفرد</span></a></li>
										<?php } ?>


                    <?php if(in_array(1,$permission) || in_array(8,$permission)){ ?>

                    <li><a href="index.php?p=invoice_curt_deleted&typ=1" ><i class="icon-trash  opacity-75"></i><span class=" multi_lang">ستائر الجملة المحذوفة</span></a></li>
                    <?php } ?>

										<?php if(in_array(1,$permission) || in_array(8,$permission)){ ?>

										<li><a href="index.php?p=offer_curt&typ=1" ><i class="icon-file-check2  opacity-75"></i><span class=" multi_lang">عروض ستائر المفرد</span></a></li>
										<?php } ?>

										<?php if(in_array(1,$permission) || in_array(28,$permission)){ ?>

										<li><a href="index.php?p=account_statement&typ=1"><i class="icon-profile  opacity-75"></i><span class=" multi_lang">كشف حساب المفرد</span></a></li>
										<?php } ?>


										<?php if(in_array(1,$permission) || in_array(27,$permission)){ ?>

										<li><a href="index.php?p=customer&typ=1" ><i class="icon-users2  opacity-75"></i><span class=" multi_lang">زبائن المفرد</span></a></li>
										<?php } ?>

										

										<?php if(in_array(1,$permission) || in_array(30,$permission)){ ?>

										<li><a href="index.php?p=payment_single" ><i class="icon-cash  opacity-75"></i><span class=" multi_lang">دفوعات المفرد</span></a></li>
										<?php } ?>

										
									</ul>
								</li>

								<?php } ?>


								<?php if(in_array(1,$permission) || in_array(4,$permission) || in_array(10,$permission)  || in_array(11,$permission) || in_array(20,$permission) || in_array(21,$permission) ){ ?>


								<li>
									<a href="#"><i class="icon-cog"></i> <span class="multi_lang">الاعدادات</span></a>
									<ul>
										
										


										<?php if(in_array(1,$permission) || in_array(10,$permission)){ ?>

										<li><a href="index.php?p=users" ><i class="icon-user-tie  opacity-75"></i><span class=" multi_lang">الموظفين</span></a></li>
										<?php } ?>

										<?php if(in_array(1,$permission) || in_array(11,$permission)){ ?>

										<li><a href="index.php?p=setting" ><i class="icon-cog6  opacity-75"></i><span class=" multi_lang">اعدادات النظام</span></a></li>
										<?php } ?>

										<?php if(in_array(1,$permission) || in_array(4,$permission)){ ?>

										<li><a href="index.php?p=backup"><i class="icon-database-export  opacity-75"></i><span class=" multi_lang">النسخ الاحتياطي</span></a></li>
										<?php } ?>

										<?php if(in_array(1,$permission) || in_array(68,$permission)){ ?>

										<li><a href="index.php?p=archive"><i class="icon-archive  opacity-75"></i><span class=" multi_lang">الارشفة والترحيل</span></a></li>
										<?php } ?>


										<?php if(in_array(1,$permission) || in_array(20,$permission)){ ?>

										<li><a href="index.php?p=languages" ><i class="icon-earth  opacity-75"></i><span class=" multi_lang">اللغات</span></a></li>
										<?php } ?>

										

										<?php if(in_array(1,$permission) || in_array(21,$permission)){ ?>

										<li><a href="index.php?p=translation" ><i class="icon-ampersand2  opacity-75"></i><span class=" multi_lang">الترجمة</span></a></li>
										<?php } ?>

										
									</ul>
								</li>
							
								<?php } ?>



							</ul>
						</div>
					</div>
					<!-- /main navigation -->

				</div>
			</div>
			<!-- /main sidebar -->


			<!-- Main content -->
			<div class="content-wrapper">

				<!-- Page header -->
				<div class="page-header">
					<div class="page-header-content">
						<div class="page-title">
							<!-- <h4><i class="icon-arrow-left52 position-left"></i> <span class="text-semibold">Velocity</span> - Examples</h4> -->
          					<h4 class="text-center multi_lang" style="font-size: 30px; ">
                            ANYA HOME SYSTEM
          					    </h4>

						</div>

						
					</div>

					
				</div>
				<!-- /page header -->


				<!-- Content area -->
				<div class="content" >

					<div class="row">
								

						<div class="col-md-12">
							<div class="panel panel-callout">
								

								<div class="panel-body">
									<a class="weatherwidget-io" href="https://forecast7.com/ar/36d2144d01/erbil/" data-label_1="ERBIL" data-label_2="WEATHER" data-icons="Climacons Animated" data-theme="kiwi" >ERBIL WEATHER</a>
			                    </div>
				            </div>
			            </div>
			        </div>
					

					<div class="row">


			            <div class="col-md-12">

			            	
			            	<div class="row">
				            	<div class="col-md-8">

										<div class="panel">
										

											<div class="panel-body">
												<div class="clock" style="margin:2em;"></div>
					                		</div>
						            	</div>
						        </div>



			                      <div class="col-sm-6 col-md-4">
			                        <a href="index.php?p=color" >
			                          <div class="panel panel-body bg-purple-600 has-bg-image">
			                            <div class="media no-margin">
			                              <div class="media-right media-middle">
			                                <i class="icon-paint-format icon-3x opacity-75"></i>
			                              </div>

			                              <div class="media-body text-right">
			                                <h3 class="no-margin multi_lang">تعريف الحالات</h3>
			                                <span class="text-uppercase text-size-mini multi_lang">Status Color</span>
			                              </div>
			                            </div>
			                          </div>
			                        </a>
			                      </div>
			                      
			                      

			                   
			                      <div class="col-sm-6 col-md-4">
			                        <a href="index.php?p=status" >
			                          <div class="panel panel-body bg-purple-600 has-bg-image">
			                            <div class="media no-margin">
			                              <div class="media-right media-middle">
			                                <i class="icon-paint-format icon-3x opacity-75"></i>
			                              </div>

			                              <div class="media-body text-right">
			                                <h3 class="no-margin multi_lang">حالات المواد</h3>
			                                <span class="text-uppercase text-size-mini multi_lang">Product Status Color</span>
			                              </div>
			                            </div>
			                          </div>
			                        </a>
			                      </div>
			                      
			                      

			                   


					            <?php if(in_array(1,$permission) || in_array(7,$permission)){ ?>

			                      <div class="col-sm-6 col-md-4">
			                        <a href="index.php?p=invoice" >
			                          <div class="panel panel-body bg-purple-600 has-bg-image">
			                            <div class="media no-margin">
			                              <div class="media-right media-middle">
			                                <i class="icon-calculator icon-3x opacity-75"></i>
			                              </div>

			                              <div class="media-body text-right">
			                                <h3 class="no-margin multi_lang">بيع مواد جملة</h3>
			                                <span class="text-uppercase text-size-mini multi_lang">Raw Material Sell</span>
			                              </div>
			                            </div>
			                          </div>
			                        </a>
			                      </div>
			                      
			                      

			                    <?php } ?>


			                    <?php if(in_array(1,$permission) || in_array(9,$permission)){ ?>
                     
			                      <div class="col-sm-6 col-md-4">
			                        <a href="index.php?p=invoice_curt&typ=0" >
			                          <div class="panel panel-body bg-purple-600 has-bg-image">
			                            <div class="media no-margin">
			                              <div class="media-right media-middle">
			                                <i class="icon-bookmarks icon-3x opacity-75"></i>
			                              </div>

			                              <div class="media-body text-right">
			                                <h3 class="no-margin multi_lang">بيع ستائر بالجملة</h3>
			                                <span class="text-uppercase text-size-mini multi_lang">Plural Curtain Sell</span>
			                              </div>
			                            </div>
			                          </div>
			                        </a>
			                      </div>
	                     

			                    <?php } ?>


			                    <?php if(in_array(1,$permission) || in_array(8,$permission)){ ?>
                     
			                      <div class="col-sm-6 col-md-4">
			                        <a href="index.php?p=invoice_curt&typ=1" >
			                          <div class="panel panel-body bg-purple-600 has-bg-image">
			                            <div class="media no-margin">
			                              <div class="media-right media-middle">
			                                <i class="icon-bookmark2 icon-3x opacity-75"></i>
			                              </div>

			                              <div class="media-body text-right">
			                                <h3 class="no-margin multi_lang">بيع ستائر بالمفرد</h3>
			                                <span class="text-uppercase text-size-mini multi_lang">Single Curtain Sell</span>
			                              </div>
			                            </div>
			                          </div>
			                        </a>
			                      </div>

			                    <?php } ?>

			                    <?php if(in_array(1,$permission) || in_array(31,$permission)){ ?>

			                      <div class="col-sm-6 col-md-4">
			                        <a href="index.php?p=payment" >
			                          <div class="panel panel-body bg-purple-600 has-bg-image">
			                            <div class="media no-margin">
			                              <div class="media-right media-middle">
			                                <i class="icon-cash icon-3x opacity-75"></i>
			                              </div>

			                              <div class="media-body text-right">
			                                <h3 class="no-margin multi_lang">دفوعات عامة</h3>
			                                <span class="text-uppercase text-size-mini multi_lang">General Payments</span>
			                              </div>
			                            </div>
			                          </div>
			                        </a>
			                      </div>
			                    <?php } ?>


			                    <?php if(in_array(1,$permission) || in_array(30,$permission)){ ?>

			                      <div class="col-sm-6 col-md-4">
			                        <a href="index.php?p=payment_single" >
			                          <div class="panel panel-body bg-purple-600 has-bg-image">
			                            <div class="media no-margin">
			                              <div class="media-right media-middle">
			                                <i class="icon-cash icon-3x opacity-75"></i>
			                              </div>

			                              <div class="media-body text-right">
			                                <h3 class="no-margin multi_lang">دفوعات المفرد</h3>
			                                <span class="text-uppercase text-size-mini multi_lang">Payments Singular</span>
			                              </div>
			                            </div>
			                          </div>
			                        </a>
			                      </div>
			                    <?php } ?>

			                    <?php if(in_array(1,$permission) || in_array(13,$permission)){ ?>

			                      <div class="col-sm-6 col-md-4">
			                        <a href="index.php?p=stock" >
			                          <div class="panel panel-body bg-purple-600 has-bg-image">
			                            <div class="media no-margin">
			                              <div class="media-right media-middle">
			                                <i class="icon-store icon-3x opacity-75"></i>
			                              </div>

			                              <div class="media-body text-right">
			                                <h3 class="no-margin multi_lang">المخازن</h3>
			                                <span class="text-uppercase text-size-mini multi_lang">Store</span>
			                              </div>
			                            </div>
			                          </div>
			                        </a>
			                      </div>
			                    <?php } ?>

			                    <?php if(in_array(1,$permission) || in_array(14,$permission)){ ?>

			                      <div class="col-sm-6 col-md-4">
			                        <a href="index.php?p=stock_report" >
			                          <div class="panel panel-body bg-purple-600 has-bg-image">
			                            <div class="media no-margin">
			                              <div class="media-right media-middle">
			                                <i class="icon-store icon-3x opacity-75"></i>
			                              </div>

			                              <div class="media-body text-right">
			                                <h3 class="no-margin multi_lang">الجرد المخزني</h3>
			                                <span class="text-uppercase text-size-mini multi_lang">Stock Report</span>
			                              </div>
			                            </div>
			                          </div>
			                        </a>
			                      </div>
			                    <?php } ?>

			                    <?php if(in_array(1,$permission) || in_array(19,$permission)){ ?>

			                      <div class="col-sm-6 col-md-4">
			                        <a href="index.php?p=account_statement&typ=0" >
			                          <div class="panel panel-body bg-purple-600 has-bg-image">
			                            <div class="media no-margin">
			                              <div class="media-right media-middle">
			                                <i class="icon-file-stats2 icon-3x opacity-75"></i>
			                              </div>

			                              <div class="media-body text-right">
			                                <h3 class="no-margin multi_lang">كشف حساب الجملة</h3>
			                                <span class="text-uppercase text-size-mini multi_lang">Account Statement Plural</span>
			                              </div>
			                            </div>
			                          </div>
			                        </a>
			                      </div>
			                    <?php } ?>

			                    <?php if(in_array(1,$permission) || in_array(28,$permission)){ ?>

			                      <div class="col-sm-6 col-md-4">
			                        <a href="index.php?p=account_statement&typ=1" >
			                          <div class="panel panel-body bg-purple-600 has-bg-image">
			                            <div class="media no-margin">
			                              <div class="media-right media-middle">
			                                <i class="icon-file-stats2 icon-3x opacity-75"></i>
			                              </div>

			                              <div class="media-body text-right">
			                                <h3 class="no-margin multi_lang">كشف حساب المفرد</h3>
			                                <span class="text-uppercase text-size-mini multi_lang">Account Statement Singal</span>
			                              </div>
			                            </div>
			                          </div>
			                        </a>
			                      </div>
			                    <?php } ?>

			                   

			                    


					        </div>

			            </div>

			            <div class="col-md-5">
							
										<!-- <div id="idCalculadora"></div> -->
			                   
			            </div>


			           
						
		            </div>

					


				




				


					<!-- Footer -->
					
					<center>
							
						<div class="footer text-muted text-center">
							<div class="text-center  clearfix">
					            <p> <small><a href="http://www.keentech.co" target="_blank" >KeenTech</a> <span class="text-white"> for IT Services and Solutions
					            <br>&copy; <?php echo date("Y"); ?> </span> </small> </p>
					         </div>
						</div>

				    </center>
					<!-- /footer -->

				</div>
				<!-- /content area -->

			</div>
			<!-- /main content -->

		</div>
		<!-- /page content -->

	</div>
	<!-- /page container -->


	<script type="text/javascript">
			var clock;
			
			$(document).ready(function() {
				clock = $('.clock').FlipClock({
					clockFace: 'TwelveHourClock'
				});
			});


			// for weather

			!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src='https://weatherwidget.io/js/widget.min.js';fjs.parentNode.insertBefore(js,fjs);}}(document,'script','weatherwidget-io-js');


			// end weather


			// for calc
			$("#idCalculadora").Calculadora({'EtiquetaBorrar':'Clear',TituloHTML:'<a class="btn-block btn3d btn btn-success" href="#">حاسبة</a>'});
			//end calc


    Auto_Translate();

	</script>

</body>
</html>
