<div class="col-md-12 col-xs-12">
<div class="box box-danger">
<div class="box-header">
<h3 class="box-title">Comisiones de <span id="date-comisiones"><?php echo e(App\Helper::month(date('m'))." ".date('Y')); ?></span></h3>
</div>
<!-- /.box-header -->
<div class="box-body table-responsive no-padding">
<table class="table table-hover">
<thead>
<tr>
<th class="text-center">Cliente</th>
<th class="text-center">Cosumo de mes</th>
<th class="text-center">Telefono</th>
<th class="text-center">Venta</th>
<th class="text-center">Comisión</th>
<th class="text-center">Imprimir</th>
</tr>
</thead>
<tbody>
<?php if(isset($comisiones)): ?>
<?php $__currentLoopData = $comisiones; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td class="text-center"><?php echo e($value['cliente']); ?></td>
<td class="text-center"><?php echo (!isset($value['compra']))? '<span class="text-danger">No ha consumido este mes!</span>': 'Si ha consumido'; ?></td>
<td class="text-center"><?php echo e($value['tel']); ?></td>
<td class="text-center">$ <?php echo e(number_format($value['total'],2)); ?></td>
<td class="text-center">$ <?php echo e(number_format($value['comision'],2)); ?></td>
<td class="text-center"><button id="printComisiones" data-month="<?php echo e(date('m')); ?>" data-year="<?php echo e(date('Y')); ?>" data-id="<?php echo e($value['id']); ?>" class="btn btn-primary" onclick="Red.printRed(this)"><span class="glyphicon glyphicon-print"></span></button></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</tbody>
</table>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
<script src="<?php echo e(URL::To('/').'/js/Catalogos/red.js'); ?>"></script>