<?php for($i = 0; $i < count($matches); $i++): ?>
    
    <?php if($currentDepth != (int) $matches[$i][2]): ?>
        <?php for($currentDepth; $currentDepth < (int) $matches[$i][2]; $currentDepth++): ?>
            <?php $numberedItems[$currentDepth + 1] = 0; ?>
            <ul>
                <li>
        <?php endfor; ?>
    <?php else: ?>
        <li>
    <?php endif; ?>
    
    <?php if(in_array($matches[$i][2], $options['heading_levels'])): ?>
        <a href="#<?php echo e($matches[$i][3]); ?>">
            <?php if($options['ordered_list']): ?>
                
                <span class="toc_number toc_depth_<?php echo e($currentDepth - $numberedItemsMin + 1); ?>">
                <?php for($j = $numberedItemsMin; $j < $currentDepth; $j++): ?>
                    <?php echo e(($numberedItems[$j] ?: 0) . '.'); ?>

                <?php endfor; ?>
                <?php echo e($numberedItems[$currentDepth] + 1); ?> </span>
                <?php
                    $numberedItems[$currentDepth]++;
                ?>
            <?php endif; ?>
            <?php echo clean(strip_tags($matches[$i][0])); ?>

        </a>
    <?php endif; ?>
    
    <?php if($i != count($matches) - 1): ?>
        <?php if($currentDepth > (int) $matches[$i + 1][2]): ?>
            <?php for($currentDepth; $currentDepth > (int) $matches[$i + 1][2]; $currentDepth--): ?>
                </li>
                    </ul>
                <?php
                    $numberedItems[$currentDepth] = 0;
                ?>
            <?php endfor; ?>
        <?php endif; ?>
        <?php if($currentDepth == (int) @$matches[$i + 1][2]): ?>
            </li>
        <?php endif; ?>
    <?php else: ?>
        
        <?php for($currentDepth; $currentDepth >= $numberedItemsMin; $currentDepth--): ?>
            </li>
            <?php if($currentDepth != $numberedItemsMin): ?> {
                </ul>
            <?php endif; ?>
        <?php endfor; ?>
    <?php endif; ?>
<?php endfor; ?>
<?php /**PATH C:\Users\Admin\Documents\UltraNews v4.0.0 Nulled\UltraNews v4.0.0 Nulled\ultra-news\platform/plugins/toc/resources/views/toc.blade.php ENDPATH**/ ?>