KOKINIO - MANAGER
Edit File: f91b72648006701fd474a31daf7665123677b5cc.php
<div class="col-md-12 col-xs-12"> <div class="box box-danger"> <div class="box-header"> <h3 class="box-title">Ventas Activos <span id="date-ventas"><?php echo e(App\Helper::month(date('m'))." ".date('Y')); ?></span></h3> <?php if(App\Helper::getRol() == \Auth::user()->rol_id): ?> <div class="box-tools pull-right"> <div class="box-tools pull-right"> <div class="btn-group"> <a class="btn btn-block btn-social btn-success">Conteo: <i class="fa fa-bookmark-o"></i> <span id="print-more" data-id1="" data-id2=""><?php echo e(count($ventas)); ?></span> </a> </div> <div class="btn-group"> <a class="btn btn-block btn-social btn-primary" onclick="Venta.print2(this)"> <i class="fa fa-print"></i> <span id="print-more" data-id1="" data-id2="">0</span> </a> </div> <div class="btn-group"> <button type="button" onclick="Venta.add(this)" class="btn btn-primary">Agregar Venta <i class="fa fa-plus"></i></button> </div> </div> <?php endif; ?> </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">Registro</th> <th class="text-center">Producto</th> <th class="text-center">Comentario</th> <th class="text-center">Cantidad</th> <th class="text-center">Total</th> <th class="text-center">Fecha Venta</th> <th class="text-center">Pagado Por:</th> <th class="text-center">Creado Por</th> <th class="text-center">Imprimir</th> <th class="text-center">Ver</th> <?php if(App\Helper::getRol() == \Auth::user()->rol_id): ?> <th class="text-center">Editar</th> <th class="text-center">Eliminar</th> <th class="text-center">Aprovar</th> <?php endif; ?> </tr> </thead> <tbody> <?php if(isset($ventas)): ?> <?php $__currentLoopData = $ventas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($value->id != $ventas[(count($ventas) -1) > $key ? $key + 1 : 0]->id): ?> <tr data-id="<?php echo e($value->id); ?>" data-selected="0" onclick="Venta.selected(this)"> <td class="text-center"><?php echo e($value->cliente); ?></td> <td class="text-center"><?php echo e($value->registro); ?></td> <td class="text-center"><?php echo e($value->descripcion); ?></td> <td class="text-center"><?php echo e(substr($value->comentario,0,50)); ?></td> <td class="text-center"><?php echo e(($value->cantidad)); ?></td> <td class="text-center">$<?php echo e(number_format($value->total,2)); ?></td> <td class="text-center"><?php echo e(($value->fecha_venta)); ?></td> <td class="text-center"> <?php if(count($value->pagoComision) > 0): ?> <?php $__currentLoopData = $value->pagoComision; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value1): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <span><?php echo e($value1['nombre'].": ".$value1['pago']); ?></span> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </td> <td class="text-center"><?php echo e(($value->creado)); ?></td> <td class="text-center"><button data-id="<?php echo e($value->id); ?>" onclick="Venta.print(this)" class="btn btn-sm btn-primary"><span class="fa fa-print"></span></button></td> <td class="text-center"><button data-id="<?php echo e($value->id); ?>" onclick="Venta.show(this)" class="btn btn-sm btn-success"><span class="glyphicon glyphicon-eye-open"></span></button></td> <?php if(App\Helper::getRol() == \Auth::user()->rol_id): ?> <td class="text-center"><button data-id="<?php echo e($value->id); ?>" onclick="Venta.update(this)" class="btn btn-sm btn-warning"><span class="glyphicon glyphicon-pencil"></span></button></td> <td class="text-center"><button data-id="<?php echo e($value->id); ?>" onclick="Venta.warning(this)" class="btn btn-sm btn-danger"><span class="glyphicon glyphicon-remove"></span></button></td> <td class="text-center"><?php echo ($value->approved)? 'aprobado' : '<button data-id="'.$value->id.'" onclick="Venta.approve(this)" class="btn btn-sm btn-success"><span class="fa fa-check-circle-o"></span></button>'; ?></td> <?php endif; ?> </tr> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </tbody> </table> </div> <!-- /.box-body --> </div> <!-- /.box --> </div>