<?php
$path="../../";
include("../../map.php");
					//-- Bakiye Hesapla -->
					$cpb1=0;$cpb2=0;$cpb3=0;$cpb4=0;
					$sch=mysqli_query($conn, "select * from t4 where ne='cari' order by id desc"); while($hcari=mysqli_fetch_assoc($sch)){
						include("../clients/client_current_calc2.php");
						$alacak=($cpb1)-($cpb3);
					}
					$cpb1=0;$cpb2=0;$cpb3=0;$cpb4=0;
					$sch=mysqli_query($conn, "select * from t4 where ne='cari'  and s3='".date('m')."' and s4='".date('Y')."' order by id desc"); while($hcari=mysqli_fetch_assoc($sch)){
						include("../clients/client_current_calc2.php");
						$alinan=$cpb3;
					}
					$cpb1=0;$cpb2=0;$cpb3=0;$cpb4=0;
					$sch=mysqli_query($conn, "select * from t4 where ne='cari' and s3='".date('m')."' and s4='".date('Y')."' and t1='Nakit' order by id desc"); while($hcari=mysqli_fetch_assoc($sch)){
						include("../clients/client_current_calc2.php");
						$nakit=$cpb3;
					}
					$cpb1=0;$cpb2=0;$cpb3=0;$cpb4=0;
					$sch=mysqli_query($conn, "select * from t4 where ne='cari' and s3='".date('m')."' and s4='".date('Y')."' and t1='Pos' order by id desc"); while($hcari=mysqli_fetch_assoc($sch)){
						include("../clients/client_current_calc2.php");
						$pos=$cpb3;
					}
					$cpb1=0;$cpb2=0;$cpb3=0;$cpb4=0;
					$sch=mysqli_query($conn, "select * from t4 where ne='cari' and s3='".date('m')."' and s4='".date('Y')."' and t1='Banka' order by id desc"); while($hcari=mysqli_fetch_assoc($sch)){
						include("../clients/client_current_calc2.php");
						$banka=$cpb3;
					}
					$cpb1=0;$cpb2=0;$cpb3=0;$cpb4=0;
					$sch=mysqli_query($conn, "select * from t4 where ne='cari' and s3='".date('m')."' and s4='".date('Y')."' and t1='Taksit' order by id desc"); while($hcari=mysqli_fetch_assoc($sch)){
						include("../clients/client_current_calc2.php");
						$cek=$cpb3;
					}
					$vadesidolan=0;
					$sqlf = mysqli_query($conn, "select * from t4 where (ne='sfatura' or ne='afatura') order by id desc"); while($rsf=mysqli_fetch_assoc($sqlf)){
						if($rsf["t6"]<>"" and $rsf["t6"]<=date("Y-m-d")){$vadesidolan=$vadesidolan+$rsf["pb2"];}
					}
					$totalstock=0;
					$sqlu = mysqli_query($conn, "select * from ".$_SESSION["lang"]." where ne='kayit' order by id desc"); while($rsu=mysqli_fetch_assoc($sqlu)){
						$totalstock=$totalstock+($rsu["pb1"]*$rsu["s5"]);
					}
					//-- Bakiye Hesapla -->
					?>
						<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 ctranslate("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: #6ebd6e;">
							<div style="position: absolute; top: -20px; text-align: center; right: 0px; width: 75px; height: 20px; background: #6ebd6e; border-radius: 5px 5px 0px 0px; color:white;"><?php echo ctranslate("Banka")?></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 $banka?></span></div>
						</div>
						<div class="v3-col-md-3 v3-col-xs-12" style="font-size: 12px; padding: 12px; background: #98da98;">
							<div style="position: absolute; top: -20px; text-align: center; right: 0px; width: 75px; height: 20px; background: #98da98; border-radius: 5px 5px 0px 0px; color:white;"><?php echo ctranslate("Pos")?></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 $pos?></span></div>
						</div>
						<div class="v3-col-md-3 v3-col-xs-12" style="font-size: 12px; padding: 12px; background: #bfecbf;">
							<div style="position: absolute; top: -20px; text-align: center; right: 0px; width: 75px; height: 20px; background: #bfecbf; border-radius: 5px 5px 0px 0px; color:white;"><?php echo ctranslate("Taksit")?></div>
							<div class="v3-col-md- 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 $cek?></span></div>
						</div>
					</div>
					<div class="" style="height:222px; overflow:auto;">
						<div class="v3-col-md-6">
							<div class="card-body" style="background:#ffffff08;">
								<div class="widget-summary">
									<div class="widget-summary-col widget-summary-col-icon">
										<div class="summary-icon">
											<i class="fa fa-<?php echo StrToLower($module["currency"])?> text-success"></i>
										</div>
									</div>
									<div class="widget-summary-col">
										<div class="summary">
											<h4 class="title"><?php echo ctranslate("Alacak")?></h4>
											<div class="info">
												<strong class="amount digi fs34" style="<?php if(($_SESSION["kim"]=="Admin") or $_SESSION["kim"]=="yonetici" and $_SESSION["y8"]<>0){}else{?>text-shadow: 0 0 14px rgba(0,0,0,0.5); color:transparent;<?php }?>"><?php echo number_format(para($alacak),2, ',', '.');?></strong>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="v3-col-md-6">
							<div class="card-body" style="background:#ffffff08;">
								<div class="widget-summary">
									<div class="widget-summary-col widget-summary-col-icon">
										<div class="summary-icon">
											<i class="fa fa-<?php echo StrToLower($module["currency"])?> text-success"></i>
										</div>
									</div>
									<div class="widget-summary-col">
										<div class="summary">
											<h4 class="title"><?php echo ctranslate("Gelir")?> (<?php echo date('m');?>-<?php echo date('Y');?>)</h4>
											<div class="info">
												<strong class="amount digi fs34"style="<?php if(($_SESSION["kim"]=="Admin") or $_SESSION["kim"]=="yonetici" and $_SESSION["y8"]<>0){}else{?>text-shadow: 0 0 14px rgba(0,0,0,0.5); color:transparent;<?php }?>"><?php echo number_format(para($alinan),2, ',', '.');?></strong>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
<div class="v3-col-md-6">
							<div class="card-body" style="background:#ffffff08;">
								<div class="widget-summary">
									<div class="widget-summary-col widget-summary-col-icon">
										<div class="summary-icon">
											<i class="fa fa-<?php echo StrToLower($module["currency"])?> text-success"></i>
										</div>
									</div>
									<div class="widget-summary-col">
										<div class="summary">
											<h4 class="title"><?php echo ctranslate("Faturalar")?> (<?php echo date('m');?>)</h4>
											<div class="info">
												<strong class="amount digi fs34"style="<?php if(($_SESSION["kim"]=="Admin") or $_SESSION["kim"]=="yonetici" and $_SESSION["y8"]<>0){}else{?>text-shadow: 0 0 14px rgba(0,0,0,0.5); color:transparent;<?php }?>"><?php echo number_format(para($vadesidolan),2, ',', '.');?></strong>
												<p style="font-size:11px; "><?php echo ctranslate("Vadesi Geçen Ödemeler")?></p>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
<div class="v3-col-md-6">
							<div class="card-body" style="background:#ffffff08;">
								<div class="widget-summary">
									<div class="widget-summary-col widget-summary-col-icon">
										<div class="summary-icon">
											<i class="fa fa-<?php echo StrToLower($module["currency"])?> text-success"></i>
										</div>
									</div>
									<div class="widget-summary-col">
										<div class="summary">
											<h4 class="title"><?php echo ctranslate($t24);?></h4>
											<div class="info">
												<strong class="amount digi fs34"style="<?php if(($_SESSION["kim"]=="Admin") or $_SESSION["kim"]=="yonetici" and $_SESSION["y8"]<>0){}else{?>text-shadow: 0 0 14px rgba(0,0,0,0.5); color:transparent;<?php }?>"><?php echo number_format(para($totalstock),2, ',', '.');?></strong>
												<p style="font-size:11px; "><?php echo ctranslate("Ürün Toplamı")?></p>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>