/home/dvjjulio/test.istyle.mx/storage/framework/views/043fbbc5c040df22967ee9d0876ddc7f0c04d6fa.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="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">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>
<?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(); ?>
<tr>
  <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"><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>
  <?php endif; ?>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</tbody>
      </table>


    </div>
    <!-- /.box-body -->
  </div>
  <!-- /.box -->
</div>