<div class="col-xl-6 col-md-12 col-xs-12 mdn">
	<section class="card card-featured-left card-featured-warning mb-3 bgt" style="">
		<header class="card-header">
			<div class="card-actions">
				<a href="?ne=eticaret&islem=ekstre" class="card-action"> <?php echo ctranslate("Tümü")?></a>
			</div>
			<h2 class="card-title"><i class="fa fa-credit-card"></i> <?php echo ctranslate("Banka Hesapları")?></h2>
			<p class="card-subtitle">...</p>
		</header>
		<div class="card-body" style="background:#ffffff08; padding:0px; overflow:auto;">
			<?php
			$balances = file_get_contents(__DIR__.'/../../modules/extres/banks/datas/balances.json');
			$balance = json_decode($balances, true);
			$transactions = file_get_contents(__DIR__.'/../../modules/extres/banks/datas/transactions.json');
			$transaction = json_decode($transactions, true);
			$total_try=0; $total_usd=0; $total_eur=0;
			foreach($balance as $key=>$value){
				if ($value["currency"]=="TRY"){ $total_try = $total_try + $value["balance"]; }
				if ($value["currency"]=="USD"){ $total_usd = $total_usd + $value["balance"]; }
				if ($value["currency"]=="EUR"){ $total_eur = $total_eur + $value["balance"]; }
			}
			?>
			<div class="v3-col-md-4 v3-col-xs-4" style="font-size: 12px; padding: 12px;  background: <?php echo $module["bcinfo"]?>50; color: <?php echo $module["clrcinfo"];?>;">
				<div style="position: absolute; top: -20px; text-align: center; right: 0px; width: 75px; height: 20px; background: <?php echo $module["bcinfo"]?>50; color: <?php echo $module["clrcinfo"];?>; border-radius: 5px 5px 0px 0px;"><i class="fa fa-try"></i> <?php echo ctranslate("Varlıklarım"); ?></div>
				<div class="tar" style="padding-top:5px;"><span class="digi" style="font-size: 30px !important;"><?php echo wprice($total_try)?></span></div>
			</div>
			<div class="v3-col-md-4 v3-col-xs-4" style="font-size: 12px; padding: 12px; background: <?php echo $module["bcinfo"]?>70; color: <?php echo $module["clrcinfo"];?>;">
				<div style="position: absolute; top: -20px; text-align: center; right: 0px; width: 75px; height: 20px; background: <?php echo $module["bcinfo"]?>70; color: <?php echo $module["clrcinfo"];?>; border-radius: 5px 5px 0px 0px;"><i class="fa fa-eur"></i> <?php echo ctranslate("Varlıklarım"); ?></div>
				<div class="tar" style="padding-top:5px;"><span class="digi " style="font-size: 30px !important;"><?php echo wprice($total_eur)?></span></div>
			</div>
			<div class="v3-col-md-4 v3-col-xs-4" style="font-size: 12px; padding: 12px; background: <?php echo $module["bcinfo"]?>99; color: <?php echo $module["clrcinfo"];?>;">
				<div style="position: absolute; top: -20px; text-align: center; right: 0px; width: 75px; height: 20px; background: <?php echo $module["bcinfo"]?>99; color: <?php echo $module["clrcinfo"];?>; border-radius: 5px 5px 0px 0px;"><i class="fa fa-usd"></i> <?php echo ctranslate("Varlıklarım"); ?></div>
				<div class="tar" style="padding-top:5px;"><span class="digi " style="font-size: 30px !important;"><?php echo wprice($total_usd)?></span></div>
			</div>
			<div class="card-body dbcb" style="clear:both; height:220px; background:#ffffff08; padding:0px;" id="db_extres">
				<table class="table" style="width:99%; margin-left:1px;">
					<tbody>
						<?php foreach($transaction as $key=>$value){?>
							<tr data-id="<?php echo $i;?>" class="bank_rcolumn">
								<td class="w15 mw15" style="text-align:center; <?php if($value["amount"]<0){echo 'border-left:5px solid '.$module["clrcdanger"].'';}else{echo 'border-left:5px solid '.$module["clrcsuccess"].'';} ?>">
									<span class="daytd" style="margin-top: 0px !important;"><?php echo dtarih($value["activityDate"],"gg");?></span> <span class="datetd"><?php echo dtarih($value["activityDate"],"ua yyyy");?></span>
								</td>
								<td class="w10 mw10" style="text-align:center; vertical-align: middle;"><img src="//cdn.<?php echo $cdnurl?>/images/banks/ib<?php echo $value["bankID"]?>.png" title="<?php echo ihb($lbank["n4"])?>"></td>
								<td class="" style="vertical-align: middle; font-weight: 700 !important;"><?php echo $value["explanation"]?> </td>
								<td class="w20 mw20 digi" style="text-align:right;  vertical-align: middle;<?php if($value["amount"]<0){echo 'color:'.$module["clrcdanger"].'';}else{echo 'color:'.$module["clrcsuccess"].'';} ?>"><b><?php echo number_format($value["amount"], 2);?></b> <i class="fa fa-try"></i>
								</td>
							</tr>
						<?php }?>
					</tbody>	
				</table>
			</div>
		</div>
	</section>
</div>