<div class="panel-body">
    <table class="table" id="dynamic-table" >
        <thead>
            <tr>
                <th>
                    Fecha
                </th>
                <th>
                    Nombre
                </th>
                <th>
                    Registros
                </th>
            </tr>
        </thead>
        <tbody>
            <?php foreach($registros as $date => $registro): ?>
                <?php foreach($registro->info as $sucursal => $rows): ?>
                    <tr>
                        <td>
                            <?php echo e($date); ?>

                        </td>
                        <td>
                            <?php echo e($sucursal); ?>

                        </td>
                        <td>
                            <a href="#reporteGralDetalle" data-id="<?php echo e($rows->lists('id')); ?>" data-toggle="modal" class="btn-rows-ids"><?php echo e($rows->count()); ?></a>
                        </td>
                    </tr>
                <?php endforeach; ?>
            <?php endforeach; ?>
        </tbody>
    </table>
</div>
