<div class="inner-wrapper">
	<section role="main" class="content-body card-margin">
		<header class="page-header">
			<h2><?php echo translate("Adisyon")?> <?php echo $sdil[38]; //rapor?></h2>
			<div class="right-wrapper text-right">
				<ol class="breadcrumbs">
					<li>
						<a href=".">
							<i class="fa fa-home"></i>
						</a>
					</li>
					<li><span><?php echo translate("Adisyon")?> <?php echo $sdil[38]; //rapor?></span></li>
				</ol>
				<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
			</div>
		</header>
		<!-- start: page -->
		<div class="row">
			<div class="col">
				<section class="card form">
					<header class="card-header" style="text-align: start">
						<div class="card-actions" id="v-<?php echo $_GET['islem'];?>">
							<?php include("modules/public/filter.php")?>
							<!--
								<a href="#" class="card-action card-action-toggle" data-card-toggle=""></a>
								<a href="#" class="card-action card-action-dismiss" data-card-dismiss=""></a>
							-->
						</div>
						<h2 class="card-title mdn"><?php echo translate("Adisyon")?> <?php echo $sdil[38]; //rapor?></h2>
						<p class="card-subtitle">...</p>
					</header>
					<div class="card-body">
						<fieldset style="position:relative; min-height:100px; overflow:hidden;">
							<legend><?php echo translate("Adisyonlar")?></legend>
							<?php
							$paket=0;$self=0;$masa=0;$pos=0;$nakit=0;$yk=0; $cari=0;
							$sqlf = mysqli_query($conn, "select * from eticaret where ne='adisyon' and s4=4 ".$sorgu." ".$luye." order by id desc"); while($siparis=mysqli_fetch_assoc($sqlf)){
								$total=0;
								if(($_GET["ts1"]=="" and $_GET["ts2"]=="" and ($siparis["t9"] >= date('Y-m-d', strtotime(date("Y-m-d"). ' -30 days')) or $siparis["t9"]=="")) or ($_GET["ts1"]<>"" and $_GET["ts2"]<>"") and ($siparis["t9"]>=$_GET["ts1"] and $siparis["t9"]<=$_GET["ts2"])){
									$sqlm = mysqli_query($conn, "select * from t5 where id=".$siparis["s1"]." order by id desc"); $rsm=mysqli_fetch_assoc($sqlm);	
									include("modules/ecommerce/posnet_calc.php");
									$jsoi = json_decode($siparis["n12"], true);
									if($siparis["t3"]=="1"){
										$paket=$paket+$total;
									}elseif($siparis["t3"]=="0"){
										$self=$self+$total;
									}elseif($siparis["t3"]>1){
										$masa=$masa+$total;
									}
									if($jsoi["Cash"]<>""){
										$nakit=$nakit+$total;
									}elseif($jsoi["CreditCard"]<>""){
										$pos=$pos+$total;
									}elseif($jsoi["Ticket"]<>""){
										$yk=$yk+$total;
									}elseif($jsoi["Account"]<>""){
										$cari=$cari+$total;
									}
								}
							}
							?>
							<section class="v3-col-md-4">
								<div class="bg-secondary" style="padding: 10px;">
									<div class="widget-summary">
										<div class="widget-summary-col widget-summary-col-icon">
											<div class="summary-icon">
												<i class="fa fa-<?php echo strtolower($kpb)?>"></i>
											</div>
										</div>
										<div class="widget-summary-col">
											<div class="summary">
												<h4 class="title"><?php echo translate("Paket")?></h4>
												<div class="info">
													<strong class="amount"><?php echo number_format($paket,2, ',', '.')?></strong>
												</div>
											</div>
										</div>
									</div>
								</div>
							</section>
							<section class="v3-col-md-4 mmt10">
								<div class="bg-secondary" style="padding: 10px;">
									<div class="widget-summary">
										<div class="widget-summary-col widget-summary-col-icon">
											<div class="summary-icon">
												<i class="fa fa-<?php echo strtolower($kpb)?>"></i>
											</div>
										</div>
										<div class="widget-summary-col">
											<div class="summary">
												<h4 class="title"><?php echo translate("Self Servis")?></h4>
												<div class="info">
													<strong class="amount"><?php echo number_format($self,2, ',', '.')?></strong>
												</div>
											</div>
										</div>
									</div>
								</div>
							</section>
							<section class="v3-col-md-4 mmt10">
								<div class="bg-secondary" style="padding: 10px;">
									<div class="widget-summary">
										<div class="widget-summary-col widget-summary-col-icon">
											<div class="summary-icon">
												<i class="fa fa-<?php echo strtolower($kpb)?>"></i>
											</div>
										</div>
										<div class="widget-summary-col">
											<div class="summary">
												<h4 class="title"><?php echo translate("Masa")?></h4>
												<div class="info">
													<strong class="amount"><?php echo number_format($masa,2, ',', '.')?></strong>
												</div>
											</div>
										</div>
									</div>
								</div>
							</section>
						</fieldset>
						<fieldset style="position:relative; min-height:100px;">
							<legend><?php echo $sdil[23]; //muahsebe?> <?php echo $sdil[38]; //rapor?></legend>
							<div class="card-body" style="padding:0px;">
								<div class="v3-col-md-3 v3-col-xs-12" style="font-size: 12px; padding: 12px; background: #47a447;">
									<div style="position: absolute; top: -20px; text-align: center; right: 0px; width: 75px; height: 20px; background: #47a447; border-radius: 5px 5px 0px 0px; color:white;"><?php echo $sdil[160]; //Nakit?></div>
									<div class="v3-col-md-2 v3-col-xs-1"><i class="fa fa-<?php echo StrToLower($module["currency"])?> cw" style="font-size: 24px;"></i></div>
									<div class="v3-col-md-9 v3-col-xs-10"><span class="count digi fs30 cw"><?php echo $nakit?></span></div>
								</div>
								<div class="v3-col-md-3 v3-col-xs-12" style="font-size: 12px; padding: 12px; background: #62e262;">
									<div style="p