<?php $__env->startSection('main-content'); ?>

	<div class="container-fluid spark-screen">
		<div class="row">
			<div class="col-md-12 ">
				<div class="box-body">
					<div class="container-fluid spark-screen">
						<div class="row">
							<div class="col-md-12">
								<div class="box box-admin-border">
									<div class="box-header with-border">
										<i class="fa fa-credit-card"></i><h3 class="box-title"><b>Montos Totales</b></h3>
										
									</div>
									
									<div class="box-body responsive-table">

										<div id="lista_item_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
											<div class="row">
												<div class="col-sm-12">
													<table id="total" class="display" cellspacing="0" width="100%">
							                            <thead>
							                                <tr>								                                
																<th>ID</th>
																<th>Nombre de cuenta</th>
																<th>tipo de cuenta</th>
																<th>Numero</th>
																<th>Saldo</th>
																<th>Movimientos</th>
							                                </tr>
							                            </thead>
							                            <tbody>
															    <?php $__currentLoopData = $summary; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $summarys): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
															    <tr>
															    	<td><?php echo e($summarys->id); ?></td>
															    	<td><?php echo e($summarys->name); ?></td>
															    	<td><?php echo e($summarys->type); ?></td>
															    	<td><?php echo e($summarys->number); ?></td>
															    	<td><n class="n"><?php echo e(number_format($summarys->total, 2, '.', ',')); ?></n> <?php echo e($divisa->value); ?>

															    	 </td>
															    	 <td><center><a class="btn btn-sm btn-default"  href="/account/detalle/<?php echo e($summarys->id); ?>"><i class="fa fa fa-eye"></i></a></center></td>
															    </tr>  
															    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
														</tbody>
		                          					</table>
												</div>
											</div>
										</div>
										<!-- /.box-body -->
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
								<div class="col-md-3 col-sm-6 col-xs-12 "> 

									<div class="small-box box">
							            <div class="inner">
							              <h3><?php echo e(number_format($totalfinal, 2, '.', ',')); ?></h3>
							              <p><?php echo e($divisa->value); ?></p>
							            </div>
							            <div class="icon">
							              <i class="fa fa-money"></i>
							            </div>
							            <label class="small-box-footer">
							              Saldo Total 
							            </label>
							          </div>
							    </div>
							   <?php if($futuro!=null): ?>
							    <div class="col-md-5">
						          <!-- Widget: user widget style 1 -->
						          <div class="box box-widget widget-user-2">
						       
						            <div class="widget-user-header bg-aqua">
						              <p><i class="fa fa-plus"></i> Abonos Futuros: <?php echo e(number_format($futuro->totale, 2, '.', ',')); ?> <?php echo e($divisa->value); ?></p>
						              
						            </div>
						            <div class="widget-user-header bg-red">
						              <p> - Retiros Futuros: <?php echo e(number_format($futuro->totals, 2, '.', ',')); ?> <?php echo e($divisa->value); ?></p>
						              <h5 class="widget-user-desc"></h5>
						            </div>
						            <div class="box-footer no-padding">
						              <ul class="nav nav-stacked">
						                <li><a href="#">Total Movimientos Futuros 
										<?php if($futuro->totalf>0): ?>
											<span class="pull-right badge bg-blue"> <?php echo e(number_format($futuro->totalf, 2, '.', ',')); ?> <?php echo e($divisa->value); ?></span></a></li>
										<?php else: ?>
											<span class="pull-right badge bg-red"><?php echo e(number_format($futuro->totalf, 2, '.', ',')); ?> <?php echo e($divisa->value); ?> </span></a></li>
										<?php endif; ?>
						                
						              </ul>
						            </div>
						          </div>
						          <!-- /.widget-user -->
						        </div>
						       <?php endif; ?>
									
 	<?php if($liquidez!=null): ?>
		 <div class="col-md-4">
			<div class="box-footer no-padding">
			              <ul class="nav nav-stacked">
			              <?php if($liquidez->totalm1>0): ?>
			 <li><a href="#">Liquides 1 Mes <span class="pull-right badge bg-aqua"><?php echo e(number_format($liquidez->totalm1, 2, '.', ',')); ?> <?php echo e($divisa->value); ?></span></a></li>
			              <?php else: ?>
			<li><a href="#">Liquides 1 Mes <span class="pull-right badge bg-red"><?php echo e(number_format($liquidez->totalm1, 2, '.', ',')); ?> <?php echo e($divisa->value); ?></span></a></li>
			              <?php endif; ?>
			              <?php if($liquidez->totalm3>0): ?>
			<li><a href="#">Liquides 3 Meses <span class="pull-right badge bg-aqua"><?php echo e(number_format($liquidez->totalm3, 2, '.', ',')); ?> <?php echo e($divisa->value); ?></span></a></li>
			              <?php else: ?>
			 <li><a href="#">Liquides 3 Meses <span class="pull-right badge bg-red"><?php echo e(number_format($liquidez->totalm3, 2, '.', ',')); ?> <?php echo e($divisa->value); ?></span></a></li>             
			              <?php endif; ?>
			              <?php if($liquidez->totalm6>0): ?>
			 <li><a href="#">Liquides 6 Meses <span class="pull-right badge bg-aqua"><?php echo e(number_format($liquidez->totalm6, 2, '.', ',')); ?> <?php echo e($divisa->value); ?></span></a></li>
			              <?php else: ?>
			  <li><a href="#">Liquides 6 Meses <span class="pull-right badge bg-red"><?php echo e(number_format($liquidez->totalm6, 2, '.', ',')); ?> <?php echo e($divisa->value); ?></span></a></li>             
			              <?php endif; ?>
			               
			              </ul>
			            </div>
			        </div>
	<?php endif; ?>
 
	</div>


<?php $__env->stopSection(); ?>

<?php echo $__env->make('adminlte::layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>