KOKINIO - MANAGER
Edit File: e70abcc6fbb053013fa2c080eaa9bcbb
<style> .hiddenRow { padding: 0 !important; } </style> <div class="block"> <div class="block-title"> <h2><strong>Vertedero Mensual (<?php echo e((isset($month))? Helper::month($month) : Helper::month(date('m'))); ?> - <?php echo e((isset($year))? $year : date('Y')); ?>)</strong> </h2> <div class="block-options pull-right"> <a onclick="MetricaVertedero.selectType(2)" class="btn btn-alt btn-sm btn-default toggle-bordered enable-tooltip" data-toggle="button" title="" data-original-title="">Vertedero</a> <a onclick="MetricaVertedero.selectType(1)" class="btn btn-alt btn-sm btn-default toggle-bordered enable-tooltip" data-toggle="button" title="" data-original-title="">Chofer</a> </div> </div> <div class="row"> <div class="col-md-12"> <table class="table table-condensed table-striped"> <thead> <tr> <th>Semana</th> <th></th> <th></th> <th></th> <th>Peso Neto</th> <th>Total</th> </tr> </thead> <tbody> <?php if(isset($vertederoObject )): ?> <?php $typeView = "nombre"; if ($type == 2) { $typeView = "nombre_comercial"; } ?> <?php foreach($vertederoObject as $key => $value2): ?> <tr> <td colspan="12" class="hiddenRow"> <div class="accordian-body collapse" id="<?php echo e($value2['semana']); ?>"> <table class="table table-striped"> <thead> <tr> <th>Orden</th> <th>Nota</th> <th>Fecha</th> <th>Chofer</th> <th>Vertedero</th> <th>Precio</th> <th>Peso Neto</th> <th>Total</th> </tr> </thead> <tbody> <?php $total = 0; $peso = 0; ?> <?php foreach($value2['notas'] as $key => $value): ?> <?php $total += $value->total; $peso += $value->peso_neto; ?> <tr> <td><?php echo e($value->orden_id); ?></td> <td><?php echo e($value->nota); ?></td> <td><?php echo e($value->fecha_inicio); ?></td> <td><?php echo e($value->nombre); ?></td> <td><?php echo e($value->nombre_comercial); ?></td> <td>$<?php echo e(number_format($value->precio)); ?></td> <td><?php echo e($value->peso_neto); ?></td> <td>$<?php echo e(number_format($value->total, 2)); ?></td> </tr> <?php if(isset($value2['notas'][$key + 1]) && $value->$typeView != $value2['notas'][$key + 1]->$typeView): ?> <tr> <td><?php echo e($value->$typeView); ?></td> <td colspan="5"></td> <td>Peso Neto: <?php echo e($peso); ?> kg.</td> <td>Total: $<?php echo e(number_format($total, 2)); ?></td> </tr> <?php $total = 0; $peso = 0; ?> <?php elseif(!isset($value2['notas'][$key + 1])): ?> <tr> <td><?php echo e($value->$typeView); ?></td> <td colspan="5"></td> <td>Peso Neto: <?php echo e($peso); ?> kg.</td> <td>Total: $<?php echo e(number_format($total, 2)); ?></td> </tr> <?php endif; ?> <?php endforeach; ?> </tbody> </table> </div> </td> </tr> <tr data-toggle="collapse" data-target="#<?php echo e($value2['semana']); ?>" class="accordion-toggle success" > <td>Semana <?php echo e($value2["semana"]." (".\Helper::getStartAndEndDate($value2["semana"], $value2["year"]).")"); ?></td> <td></td> <td></td> <td></td> <td><?php echo e($value2['peso_neto']); ?></td> <td>$<?php echo e(number_format($value2['total'], 2)); ?></td> </tr> <?php endforeach; ?> <?php else: ?> <tr> <td colspan="6">No hay registros</td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> <div class="block"> <div class="block-title"> <h2><strong>Vertedero Anual (<?php echo e((isset($year))? $year : date('Y')); ?>)</strong> </h2> </div> <div class="row"> <div class="col-md-12"> <div> <table class="table table-striped"> <thead> <tr> <th>Mes</th> <th>No. Notas</th> <th>Peso Neto</th> <th>Total</th> </tr> </thead> <tbody> <?php if(isset($vertederoOrdenYear )): ?> <?php foreach($vertederoOrdenYear as $key => $value): ?> <tr> <td><?php echo e($value->mes); ?></td> <td><?php echo e($value->notas); ?></td> <td><?php echo e($value->peso_neto); ?></td> <td>$<?php echo e(number_format($value->total, 2)); ?></td> </tr> <?php endforeach; ?> <?php else: ?> <tr> <td colspan="6">No hay registros</td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> </div> <script src="<?php echo e(URL::To('/js/catalogo_js/metricaVertedero.js')); ?>"></script>