Mellivora/View/Concerns/ManagesLoops.php
public function incrementLoopIndices()
    {
        $loop = $this->loopsStack[$index = count($this->loopsStack) - 1];

        $this->loopsStack[$index] = array_merge($this->loopsStack[$index], [
            'iteration' => $loop['iteration'] + 1,
            'index'     => $loop['iteration'],
            'first'     => $loop['iteration'] === 0,
            'remaining' => isset($loop['count']) ? $loop['remaining'] - 1 : null,
            'last'      => isset($loop['count']) ? $loop['iteration'] === $loop['count'] - 1 : null,
        ]);
    }
public function incrementLoopIndices()
    {
        $loop = $this->loopsStack[$index = count($this->loopsStack) - 1];

        $this->loopsStack[$index] = array_merge($this->loopsStack[$index], [
            'iteration' => $loop['iteration'] + 1,
            'index'     => $loop['iteration'],
            'first'     => $loop['iteration'] === 0,
            'remaining' => isset($loop['count']) ? $loop['remaining'] - 1 : null,
            'last'      => isset($loop['count']) ? $loop['iteration'] === $loop['count'] - 1 : null,
        ]);
    }
public function incrementLoopIndices ( ) { $ loop = $ this -> loopsStack [ $ index = count ( $ this -> loopsStack ) - 1 ] ; $ this -> loopsStack [ $ index ] = array_merge ( $ this -> loopsStack [ $ index ] , [ 'iteration' => $ loop [ 'iteration' ] + 1 , 'index' => $ loop [ 'iteration' ] , 'first' => $ loop [ 'iteration' ] === 0 , 'remaining' => isset ( $ loop [ 'count' ] ) ? $ loop [ 'remaining' ] - 1 : null , 'last' => isset ( $ loop [ 'count' ] ) ? $ loop [ 'iteration' ] === $ loop [ 'count' ] - 1 : null , ] ) ; }
Increment the top loop's indices.

@return void
Increment the top loop s indices .