row->get($this->parent->getKeyName()); } /** * Set row model. * * @param mixed $key * * @return \Illuminate\Database\Eloquent\Model|mixed */ public function row($key = null) { if (func_num_args() == 0) { return $this->row; } return $this->row->{$key}; } /** * Set row model. * * @param Fluent $row * * @return $this */ public function setRow($row) { $this->row = $row; return $this; } public function getRow() { return $this->row; } /** * @param Column $column * * @return $this */ public function setColumn(Column $column) { $this->column = $column; return $this; } /** * @return string */ public function href() { } /** * Render row action. * * @return string */ public function render() { $this->addScript(); if (!$href = $this->href()) { $href = 'javascript:void(0);'; } $attributes = $this->formatHtmlAttributes(); return sprintf( "%s", $this->getKey(), $href, $this->getElementClass(), $this->name() ); } }