KOKINIO - MANAGER
Edit File: 993584c570e9e723d346a24ebc1fc6133824b4b2.php
<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">Pagar</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 style="background-color:<?php echo e(($value['pagado']!= null)? '#c7f5c7': 'white'); ?>"> <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'; ?><br><span class="text-danger"><?php echo e($value['message']); ?></span></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> <?php if($value['pagado']!= null): ?> <td class="text-center"><button id="payComisiones" data-pay="0" data-venta="<?php echo e($value['total']); ?>" data-comision="<?php echo e($value['comision']); ?>" data-month="<?php echo e(date('m')); ?>" data-year="<?php echo e(date('Y')); ?>" data-id="<?php echo e($value['id']); ?>" class="btn btn-danger" data-toggle="tooltip" title="Eliminar Pago" onclick="Comisiones.payComision(this)"><span class="glyphicon glyphicon-minus"></span></button></td> <?php else: ?> <td class="text-center"><button id="payComisiones" data-pay="1" data-venta="<?php echo e($value['total']); ?>" data-comision="<?php echo e($value['comision']); ?>" data-month="<?php echo e(date('m')); ?>" data-year="<?php echo e(date('Y')); ?>" data-id="<?php echo e($value['id']); ?>" class="btn btn-success" data-toggle="tooltip" title="Pagado" onclick="Comisiones.payComision(this)"><span class="glyphicon glyphicon-plus"></span></button></td> <?php endif; ?> <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(); ?> <tr> <td colspan="3" class="text-center">Total Pagado:</td> <td colspan="4" class="text-left" >$<span id="total-pagado"><?php echo e(number_format($totalPagado,2)); ?></span></td> </tr> <?php endif; ?> </tbody> </table> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> <script src="<?php echo e(URL::To('/').'/js/Catalogos/red.js'); ?>"></script> <script src="<?php echo e(URL::To('/').'/js/Catalogos/comisiones.js'); ?>"></script>