<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: #aa4d0e; color:white">
            <th>C&oacute;digo</th>
            <th>Producto</th>
            <th>Cantidad</th>
            <th>V. Unidad</th>
            <th>V. Total</th>
        </tr>
    </thead>
    <tbody>
        <?php $totales=0; ?>
        <?php foreach($reporte as $repor): ?>
        <tr> 
            <td><?php echo e($repor->codpro); ?></td>
            <td><?php echo e($repor->prod); ?></td>
            <td><?php echo e($repor->cant); ?></td>
            <td><?php echo e($repor->valu); ?></td>
            <td align='right'><?php echo e($repor->total); ?></td>
         <?php $totales=$repor->total+ $totales; ?>
        </tr>
         <?php endforeach; ?>
    </tbody>
    <tfoot>
        <tr><td colspan="5"><br/></td></tr>
         <tr>
             <td colspan="3" align='right'><b>Total:</b></td><td align='right' colspan="2"><b><?php echo e($totales); ?></b></td>
         </tr>
         <tr><td colspan="5"></td></tr>
    </tfoot>
</table>
</div>