<ul class="list-group">
    <li class="list-group-item">
		<?php
			$data['a'] = 'u';
			$data['ua'] = 'b';
			$this->load->view('ventas/navigation', $data);
		?>
	</li>
    <?php
    if (!empty($totales)) {
        foreach($totales as $idTipoDocumento => $tipoDocumento) {
            ?>
            <li class="list-group-item">
                <h4 class="mes clickable" data-toggle="collapse" href="#collapse<?php echo $idTipoDocumento; ?>">
                    <?php echo $tipos_documentos[$idTipoDocumento]; ?>
                    <span class="badge badge-pill badge-primary"><?php echo clp($tipoDocumento['total']['cantidad']); ?></span> 
                    <span class="badge badge-pill badge-success"><?php echo clp($tipoDocumento['total']['monto']); ?></span>
                </h4>
                <div class="collapse" id="collapse<?php echo $idTipoDocumento; ?>">
                    <table class="table table-striped">
                        <thead>
                            <tr>
                                <th>Fecha</th>
                                <th class="text-center">Cantidad</th>
                                <th class="text-center">Total</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
                            foreach($tipoDocumento['dias'] as $fecha => $datos) {
                                echo '<tr>';
                                echo '<td>'.$fecha.'</td>';
                                echo '<td class="text-center">'.$datos['cantidad'].'</td>';
                                echo '<td class="text-center">'.clp($datos['total']).'</td>';
                                echo '</tr>';
                            }
                            ?>
                        </tbody>
                    </table>
                </div>
            </li>

            <?php
        }
    }
    ?>
</ul>