<script   src="js/scroll.js"></script>

<div class="row text-center">
    <b>
        <?php if($titulo!="d"): ?>
            <?php echo e($titulo); ?>

        <?php endif; ?>
    </b>
</div>

<div class="table-responsive"><br/>
<table class="table-bordered table-hover fixed" id="tablaReporte">
    <thead>
        <tr style="background: #bababa; color:#000;">
            <th colspan="3" >Producto</th>
            <th colspan="2" >Actualmente</th>
            <th colspan="2" >Anteriormente</th>            
            <th colspan="2" ></th>
        </tr>
        <tr style="background: #aa4d0e; color:white">
            <th>C&oacute;digo</th>
            <th>Nombre</th>
            <th>Cantidad</th>
            <th>Bodega</th>
            <th>Tienda</th>
            <th>Bodega</th>
            <th>Tienda</th>
            <th>Fecha</th>
            <th>Usuario</th>
        </tr>
    </thead>
    <tbody>
        <?php 
            $totales=0; 
            $totcom=0;
        ?>
        <?php foreach($reporte as $repor): ?>
        <tr> 
            <td title="<?php echo e($repor->obser); ?>"><?php echo e($repor->idprod); ?></td>
            <td><?php echo e($repor->Nombre_Produc); ?></td>
            <td align='right'><?php echo e($repor->cancam); ?></td>
            <td align='right'style="background: #5bc0de;"><?php echo e($repor->canbod); ?></td>
            <td align='right'style="background: #8da356;"><?php echo e($repor->cantie); ?></td>
            <td align='right'style="background: #5bc0de;"><?php echo e($repor->canboda); ?></td>
            <td align='right'style="background: #8da356;"><?php echo e($repor->cantiea); ?></td>
            <td align='right' style="background: #FAF834;"><?php echo e($repor->created_at); ?></td>
            <td><?php echo e($repor->Nombres); ?></td>
         <?php 
            
         ?>
        </tr>
         <?php endforeach; ?>
    </tbody>
    <tfoot>         
         <tr><td colspan="5"></td></tr>
    </tfoot>
</table>
</div>