/**
  * @param array $options
  * @param bool  $showColumn
  * @return string
  */
 public function render(array $options = [], $showColumn = true)
 {
     if ($showColumn) {
         $this->rendered = true;
     }
     $options = $this->prepareOptions($options);
     return $this->datagridHelper->getView()->make('datagrid-builder::column', ['name' => $this->name, 'options' => $options, 'colAttrs' => $options['colAttrs'], 'showColumn' => $showColumn])->render();
 }
 /**
  * Render the datagrid.
  *
  * @param $options
  * @param $columns
  * @param bool $showStart
  * @param bool $showColumns
  * @param bool $showEnd
  * @return string
  */
 protected function render($options, $columns, $showStart, $showColumns, $showEnd)
 {
     $datagridOptions = $this->datagridHelper->mergeOptions($this->datagridOptions, $options);
     if (isset($datagridOptions['view']) && view()->exists($datagridOptions['view'])) {
         $datagridView = $datagridOptions['view'];
     } else {
         $datagridView = $this->datagridHelper->getConfig('datagrid_defaults.view');
     }
     return $this->datagridHelper->getView()->make($datagridView)->with(compact('showStart', 'showColumns', 'showEnd'))->with('datagridOptions', $datagridOptions)->with('tableAttrs', $this->datagridHelper->prepareAttributes($this->getHtmlAttributes()))->with('columns', $columns)->with('exclude', $this->exclude)->with('data', $this->data)->render();
 }