classes/Layout/Nav.php
protected function makeIcon($label_and_icon)
    {
        $parts = explode(',', $label_and_icon);
        if (count($parts) == 2) {
            return ['label' => $parts[0], 'icon' => $parts[1]];
        }

        return ['label' => $parts[0], 'icon' => 'default'];
    }
protected function makeIcon($label_and_icon)
    {
        $parts = explode(',', $label_and_icon);
        if (count($parts) == 2) {
            return ['label' => $parts[0], 'icon' => $parts[1]];
        }

        return ['label' => $parts[0], 'icon' => 'default'];
    }
protected function makeIcon ( $ label_and_icon ) { $ parts = explode ( ',' , $ label_and_icon ) ; if ( count ( $ parts ) == 2 ) { return [ 'label' => $ parts [ 0 ] , 'icon' => $ parts [ 1 ] ] ; } return [ 'label' => $ parts [ 0 ] , 'icon' => 'default' ] ; }
Break the icon out of the label, returning an arary of label and icon
Break the icon out of the label returning an arary of label and icon