src/Blade/Coder.php
private function renderArrIndexed($name, $val)
    {
        if ($this->codeif) {
            // Echo if
            echo "{$this->indentation}@if (\${$this->code}$name)<br>";

            // Increase indentation
            $this->increaseIndentation();
        }

        // Start foreach
        echo "{$this->indentation}@foreach (\${$this->code}$name as \$item)<br>";

        // Clear $this->code
        $this->code = '';

        // Increase indentation
        $this->increaseIndentation();

        // Route next value
        foreach ($val as $key_index => $key_val) {
            if (count($val) > 1) {
                echo "{$this->indentation}<strong>[{$key_index}]</strong><br>";
            }
            $this->router('item', $key_val);
        }

        // Decrease indentation
        $this->decreaseIndentation();
    
        // End foreach
        echo "{$this->indentation}@endforeach<br>";

        if ($this->codeif) {
            // Decrease indentation
            $this->decreaseIndentation();

            // Echo endif
            echo "{$this->indentation}@endif<br>";
        }
    }
private function renderArrIndexed($name, $val)
    {
        if ($this->codeif) {
            // Echo if
            echo "{$this->indentation}@if (\${$this->code}$name)<br>";

            // Increase indentation
            $this->increaseIndentation();
        }

        // Start foreach
        echo "{$this->indentation}@foreach (\${$this->code}$name as \$item)<br>";

        // Clear $this->code
        $this->code = '';

        // Increase indentation
        $this->increaseIndentation();

        // Route next value
        foreach ($val as $key_index => $key_val) {
            if (count($val) > 1) {
                echo "{$this->indentation}<strong>[{$key_index}]</strong><br>";
            }
            $this->router('item', $key_val);
        }

        // Decrease indentation
        $this->decreaseIndentation();
    
        // End foreach
        echo "{$this->indentation}@endforeach<br>";

        if ($this->codeif) {
            // Decrease indentation
            $this->decreaseIndentation();

            // Echo endif
            echo "{$this->indentation}@endif<br>";
        }
    }
private function renderArrIndexed ( $ name , $ val ) { if ( $ this -> codeif ) { // Echo if echo "{$this->indentation}@if (\${$this->code}$name)<br>" ; // Increase indentation $ this -> increaseIndentation ( ) ; } // Start foreach echo "{$this->indentation}@foreach (\${$this->code}$name as \$item)<br>" ; // Clear $this->code $ this -> code = '' ; // Increase indentation $ this -> increaseIndentation ( ) ; // Route next value foreach ( $ val as $ key_index => $ key_val ) { if ( count ( $ val ) > 1 ) { echo "{$this->indentation}<strong>[{$key_index}]</strong><br>" ; } $ this -> router ( 'item' , $ key_val ) ; } // Decrease indentation $ this -> decreaseIndentation ( ) ; // End foreach echo "{$this->indentation}@endforeach<br>" ; if ( $ this -> codeif ) { // Decrease indentation $ this -> decreaseIndentation ( ) ; // Echo endif echo "{$this->indentation}@endif<br>" ; } }
Render Indexed Array

Render an indexed array
Render Indexed Array