public function append($title, \Closure $content, $active = false)
    {
        $fields = $this->collectFields($content);

        $id = 'form-'.($this->tabs->count() + 1);

        $this->tabs->push(compact('id', 'title', 'fields', 'active'));

        return $this;
    }
public function append($title, \Closure $content, $active = false)
    {
        $fields = $this->collectFields($content);

        $id = 'form-'.($this->tabs->count() + 1);

        $this->tabs->push(compact('id', 'title', 'fields', 'active'));

        return $this;
    }
public function append ( $ title , \ Closure $ content , $ active = false ) { $ fields = $ this -> collectFields ( $ content ) ; $ id = 'form-' . ( $ this -> tabs -> count ( ) + 1 ) ; $ this -> tabs -> push ( compact ( 'id' , 'title' , 'fields' , 'active' ) ) ; return $ this ; }
Append a tab section.

@param string   $title
@param \Closure $content
@param bool     $active

@return $this
Append a tab section .