<div class="v3-col-xl-6 v3-col-md-6 v3-col-sm-12 v3-col-xs-12 mdn">
	<section class="card card-featured-left card-featured-success mb-3 bgt" style="">
		<header class="card-header">
			<div class="card-actions">
				<a href="?ne=anasayfa&islem=rfinans" class="card-action"> <?php echo ctranslate("Tümü")?></a>
			</div>
			<h2 class="card-title"><i class="fas fa-shopping-cart"></i> <?php echo ctranslate("Eticaret")?></h2>
			<p class="card-subtitle">...</p>
		</header>
		<div class="card-body dbcb" style="<?php if($mobile==""){echo "height:275px;";}else{echo "height:175px;";};?> overflow:auto;background:#ffffff08;padding:0px;">
			<div class="row">
				<div class="col-md-8">
					<div class="chart-data-selector" id="salesSelectorWrapper">
						<h2>
							<?php echo ctranslate("Satış")?>:
							<strong>
								<select class="form-control" id="salesSelector">
									<option value="<?php echo date("Y")?>" selected=""><?php echo date("Y")?></option>
								</select>
							</strong>
						</h2>
						<div id="salesSelectorItems" class="chart-data-selector-items mt-3">
							<!-- Flot: Sales Porto Admin -->
							<div class="chart chart-sm" data-sales-rel="<?php echo date("Y")?>" id="flotDashSales1" class="chart-active" style="max-height: 250px;"></div>
							<script>
								var flotDashSales1Data = [{
									data: [
									<?php
									$tas=0;
									$sqls = mysqli_query($conn, "select * FROM eticaret where ne='siparis'"); while($corder=mysqli_fetch_assoc($sqls)){
										$dates = explode('-',$corder["ts1"]);
										if(($dates[1]==date('m') and $dates[0]==date('Y'))){$tas++;}
										if(($dates[0]==date('Y'))){$tys++;}
										if(($corder["s4"]==1 or $corder["s4"]==3 or $corder["s4"]==4) and ($dates[1]==date('m') and $dates[0]==date('Y'))){$sas++;}
										if(($corder["s4"]==1 or $corder["s4"]==3 or $corder["s4"]==4) and ($dates[0]==date('Y'))){$sys++;}
									}
									for($a=0; $a<=11; $a++){
										$morder=0;
										$sqlsm = mysqli_query($conn, "select * FROM eticaret where ne='siparis'"); while($corderm=mysqli_fetch_assoc($sqlsm)){
											$datesm = explode('-',$corderm["ts1"]);
											if(($corderm["s4"]<>0) and ($datesm[1]==$a and $datesm[0]==date('Y'))){$morder++;}
										}											
										?>
										["<?php echo $kaylar[$a-1]?>", <?php echo $morder?>],
									<?php }?>
									],
									color: "#CCCCCC"
								}];
							</script>
						</div>
					</div>
				</div>
				<div class="col-md-4 text-center">
					<h2 class="card-title mt-3"><?php echo ctranslate("Onaylanan Satış")?></h2>
					<div class="liquid-meter-wrapper liquid-meter-sm mt-3">
						<?php if($sys[0]<>0 or $tas<>0 or $sys<>0 or $tys<>0){?>
							<div class="liquid-meter">
								<meter min="0" max="100" value="<?php echo $sys*100/$tys;?>" id="meterSales"></meter>
							</div>
						<?php }?>
						<div class="liquid-meter-selector mt-4 pt-1" id="meterSalesSel">
							<a href="#" data-val="<?php echo $sas*100/$tas;?>"><?php echo ctranslate("Bu Ay")?></a>
							<a href="#" data-val="<?php echo $sys*100/$tys;?>" class="active"><?php echo ctranslate("Bu Yıl")?></a>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
</div>