master
parent
c26a77ef5d
commit
7e0c93cda1
|
|
@ -128,9 +128,7 @@ class GoodsController extends AdminController
|
|||
$grid->column('brand.name');
|
||||
$grid->column('type.name')->label();
|
||||
$grid->column('name')->display(function () {
|
||||
return ($this->cover_image ? '<img src="' . $this->cover_image . '" width="60" class="img-thumbnail"/> ' : '') . '<a href="' . admin_url(
|
||||
'goods/' . $this->id
|
||||
) . '">' . $this->name . '</a>';
|
||||
return ($this->cover_image ? '<img src="' . $this->cover_image . '" width="60" class="img-thumbnail"/> ' : '') . '<a href="' . admin_url('goods/' . $this->id) . '">' . $this->name . '</a>';
|
||||
});
|
||||
$grid->column('price');
|
||||
$grid->column('stock')
|
||||
|
|
|
|||
Loading…
Reference in New Issue