/home/dvjjulio/test.istyle.mx/resources/views/Catalogos/Premio.blade.php
<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>
   @if(isset($premio))
  @foreach($premio as $key => $value)
        <tr>
            <td>{{ $value->categoria }}</td>
            <td>{{ $value->cajas }}</td>
            <td>{{ $value->meses }}</td>
            <td>{{ $value->total }}</td>
            <td>${{ number_format($value->beneficio) }}</td>
        </tr>
    @endforeach
   @endif
</tbody>
          </table>


        </div>
        <!-- /.box-body -->
      </div>
      <!-- /.box -->
    </div>
  </div>
  @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>
       @if(isset($premios))
    	@foreach($premios as $key => $value)
            <tr>
                <td>{{ $value->nombre }}</td>
                <td>{{ $value->categoria }}</td>
                <td>{{ $value->mes_1 }}</td>
                <td>{{ $value->cajas_1 }}</td>
                <td>{{ $value->mes_2 }}</td>
                <td>{{ $value->cajas_2 }}</td>
                <td>{{ $value->mes_3 }}</td>
                <td>{{ $value->cajas_3 }}</td>
                <td>{{ $value->year }}</td>
                <td>{{ ($value->completado) ? 'Completado' : 'No Completado'  }}</td>
            </tr>
        @endforeach
       @endif
		</tbody>
          	  </table>


            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
      </div>
@endif
</section>

<script src="{{ URL::To('/').'/js/Catalogos/premio.js' }}"></script>