KOKINIO - MANAGER
Edit File: 3136a39f7d5f0183d39205637e458e6b5a1f21b2.php
<?php $__env->startSection('content'); ?> <section class="content-header"> <h1> Premios <small>Control de Premios</small> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-sitemap"></i> Inicio</a></li> <li class="active">Premios</li> </ol> </section> <section class="content"> <div class="row"> <div class="col-md-12 col-xs-12"> <div class="box box-danger"> <div class="box-header"> <h3 class="box-title">Premios</h3> <!--<div class="box-tools pull-right"> <div class="btn-group"> <button type="button" onclick="Producto.add(this)" class="btn btn-primary">Agregar Producto <i class="fa fa-plus"></i></button> </div> </div>--> </div> <!-- /.box-header --> <div class="box-body table-responsive no-padding"> <table class="table table-hover"> <thead> <tr> <th>Categoria</th> <th>Cajas</th> <th>Meses</th> <th>Total</th> <th>Beneficio</th> </tr> </thead> <tbody> <?php if(isset($premio)): ?> <?php $__currentLoopData = $premio; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($value->categoria); ?></td> <td><?php echo e($value->cajas); ?></td> <td><?php echo e($value->meses); ?></td> <td><?php echo e($value->total); ?></td> <td>$<?php echo e(number_format($value->beneficio)); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </tbody> </table> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> </div> <?php if(App\Helper::getRol() == \Auth::user()->rol_id): ?> <div class="row"> <div class="col-md-12 col-xs-12"> <div class="box box-danger"> <div class="box-header"> <h3 class="box-title">Lista de Ganadores</h3> <!--<div class="box-tools pull-right"> <div class="btn-group"> <button type="button" onclick="Producto.add(this)" class="btn btn-primary">Agregar Producto <i class="fa fa-plus"></i></button> </div> </div>--> </div> <!-- /.box-header --> <div class="box-body table-responsive no-padding"> <table class="table table-hover"> <thead> <tr> <th>Cliente</th> <th>Premio</th> <th>Mes 1</th> <th>Cajas 1</th> <th>Mes 2</th> <th>Cajas 2</th> <th>Mes 3</th> <th>Cajas 3</th> <th>Año</th> <th>Completado</th> </tr> </thead> <tbody> <?php if(isset($premios)): ?> <?php $__currentLoopData = $premios; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($value->nombre); ?></td> <td><?php echo e($value->categoria); ?></td> <td><?php echo e($value->mes_1); ?></td> <td><?php echo e($value->cajas_1); ?></td> <td><?php echo e($value->mes_2); ?></td> <td><?php echo e($value->cajas_2); ?></td> <td><?php echo e($value->mes_3); ?></td> <td><?php echo e($value->cajas_3); ?></td> <td><?php echo e($value->year); ?></td> <td><?php echo e(($value->completado) ? 'Completado' : 'No Completado'); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </tbody> </table> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> </div> <?php endif; ?> </section> <script src="<?php echo e(URL::To('/').'/js/Catalogos/premio.js'); ?>"></script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>