<?php



$usuario = "";/////$_GET["usuario"];



if($_COOKIE['nivel']!="Master"){
	/////$usuario = $_COOKIE['usuario'];
}



 require_once("datos_resultados.php");

 $sql_usuarios = mysql_query("select * from login order by nombre asc") or die(mysql_error());
 
?>


<style type="text/css" media="print">
.btn, #ttl, .form-control{
	display:none;
	
}

div {
	font-size:14px;
		
	
}
</style>

<style type="text/css">
	.panel{
		min-height: 250px;
	}
</style>

 <div class="container-fluid" style="background:white; padding:15px">
	   <ol class="breadcrumb">
	    <li><a href="#">Balance del dia</a></li>
	   
	   
    </ol>



  
  <span class="h4" id="fecha_apertura"></span>
<script type="text/javascript">
	//$("#lb-caja3").html(estadoCaja);
</script>
    <div class="row">


    	<div class="col-md-2">
    		
		  <div class="panel1 panel-default">
			<div class="panel-heading">

			</div>

			<div class="panel-body">
		
		
			
			<script>
			function balance_manual(){
				window.open('balance_chips.php', '_blank', 'toolbar=no,scrollbars=no,resizable=no,top=500,left=500,width=450,height=700');
			}
			
			function balance_manual2(){
				window.open('balance_chips2.php', '_blank', 'toolbar=no,scrollbars=no,resizable=no,top=500,left=500,width=450,height=700');
			}
			</script>




			
			</div>

			</div>
    	</div>
		
		
		
    	<div class="col-md-3">
		   <div class="panel1 panel-default">
			<div class="panel-heading">
				<h3 align="center" class="text-rojo">REMESAS</h3>
			</div>

			<div class="panel-body">
		
			
			<center><h3 align="center" class="text-success">INGRESOS POR REMESAS</h3></center>
				<b class="text-primary  mt-2">NATCASH</b><br>
		  <span class="text-dark" id='lb-balance' style="float:left">En GOURDE: </span><span class="text-dark" id='lb-balance' style="float:right"><?php echo decimal($engourde1)?></span><br>

		  <span class="text-primary" id='lb-balance' style="float:left">SALIDA CHIP: </span><span class="text-primary" id='lb-balance' style="float:right"><?php echo "GHT ".decimal($recibe1)?></span><br>

				<hr>
			
				<b class="text-primary  mt-2">MONCASH</b><br>
			  <span class="text-dark" id='lb-balance' style="float:left">En GOURDE: </span><span class="text-dark" id='lb-balance' style="float:right"><?php echo decimal($engourde2)?></span><br>

		  <span class="text-primary" id='lb-balance' style="float:left">SALIDA CHIP: </span><span class="text-primary" id='lb-balance' style="float:right"><?php echo "GHT ".decimal($recibe2)?></span><br>
		  <span class="text-dark" id='lb-balance' style="float:left">TOTAL SALIDA: </span><span class="text-rojo" id='lb-balance' style="float:right"><?php echo "GHT ".decimal($recibe1 + $recibe2)?></span><br><hr>
		<b>
		
		
		    <span class="text-dark" id='lb-balance' style="float:left">TOTAL INGRESO  GOURDE:<br> </span><span class="text-primary" id='lb-balance'><?php echo "GHT ".decimal($engourde1 + $engourde2)?></span><br>
			
</b>


			<center><h5 align="center" class="text-dark">BALANCE EN CHIPS</h5></center>
				<b class="text-primary  mt-2">NATCASH</b>
			<span class="text-primary" id='lb-balance' style="float:right"><?php echo @decimal(mysql_result($balance_natcash, 0, "total"));?></span><br>
				<b class="text-primary  mt-2">MONCASH</b>
			<span class="text-primary" id='lb-balance' style="float:right"><?php echo @decimal(mysql_result($balance_moncash, 0, "total"));?></span><br>
			<hr>
			
<hr>
<center>
			<b class="text-rojo  mt-2">BALANCE GENERAL EN CHIP</b><br>
			<b><span class="text-dark" id='lb-balance'><?php echo decimal(mysql_result($balance_gourde, 0, "total"))?></span></b><br>
			</center>		
<center>
			<h4>GANANCIAS</h4>
			<hr>
			</center>
			
			<b class="text-dark  mt-2">Comision RD$: </b>
			<b><span class="text-dark" id='lb-balance' style="float:right"><?php echo decimal(mysql_result($comision, 0, "total"))?></span></b><br>
			
			<b class="text-dark  mt-2">Beneficio por tasa RD$</b>
			<b><span class="text-dark" id='lb-balance' style="float:right"> <b style='color:blue'>RD$: <?php echo decimal($beneficio)?></b></span></b><br>
		
			
			
			<b class="text-dark  mt-2">TOTAL GANANCIA PESOS: </b>
			<b><span class="text-dark" id='lb-balance' style="float:right"><?php echo decimal(mysql_result($comision, 0, "total") +  $beneficio);?></span></b><br>
		
			<hr>
			
			<b class="text-ubuntu  mt-2">Comision GOURDE: </b>
			<b><span class="text-ubuntu" id='lb-balance' style="float:right"><?php echo decimal(mysql_result($comision2, 0, "total"))?></span></b><br>
			
	
		

			</div>
    	</div>

    	

    </div>
</div>


<script>
print();

</script>

