public function getIndexHeaderCells(array $fields = null)
    {
        $stub = $this->getStubContent('index.header.cell.blade', $this->template);
        $fields = $this->getFieldsToDisplay($fields);
        $rows = '';

        foreach ($fields as $field) {
            if ($field->isOnIndexView) {
                $row = $stub;
                $this->replaceFieldTitle($row, $this->getTitle($field->getLabel(), true))
                    ->replaceCommonTemplates($row, $field);
                $rows .= $row . PHP_EOL;
            }
        }

        return $rows;
    }
public function getIndexHeaderCells(array $fields = null)
    {
        $stub = $this->getStubContent('index.header.cell.blade', $this->template);
        $fields = $this->getFieldsToDisplay($fields);
        $rows = '';

        foreach ($fields as $field) {
            if ($field->isOnIndexView) {
                $row = $stub;
                $this->replaceFieldTitle($row, $this->getTitle($field->getLabel(), true))
                    ->replaceCommonTemplates($row, $field);
                $rows .= $row . PHP_EOL;
            }
        }

        return $rows;
    }
public function getIndexHeaderCells ( array $ fields = null ) { $ stub = $ this -> getStubContent ( 'index.header.cell.blade' , $ this -> template ) ; $ fields = $ this -> getFieldsToDisplay ( $ fields ) ; $ rows = '' ; foreach ( $ fields as $ field ) { if ( $ field -> isOnIndexView ) { $ row = $ stub ; $ this -> replaceFieldTitle ( $ row , $ this -> getTitle ( $ field -> getLabel ( ) , true ) ) -> replaceCommonTemplates ( $ row , $ field ) ; $ rows .= $ row . PHP_EOL ; } } return $ rows ; }
Gets header cells' html code for the index view using the current fields colelction.
If an value is passed, it will only generate the raws based on the given fields

@param array $fields

@return string
Gets header cells html code for the index view using the current fields colelction . If an value is passed it will only generate the raws based on the given fields