Add management of merchandises, enhance imageable trait

This commit is contained in:
Ludovic CANDELLIER
2022-04-16 11:40:19 +02:00
parent 68a13b7a58
commit 2d111605f2
8 changed files with 40 additions and 22 deletions

View File

@@ -67,7 +67,7 @@ class ArticlesDataTable extends DataTable
})
->editColumn('thumb', function (Article $article) {
$image = Articles::getFullImageByArticle($article);
return '<img src="' . Articles::getThumbSrc($image) . '">';
return Articles::getThumb($image, false);
})
->editColumn('article_nature.name', function (Article $article) {
return $article->article_nature ? $article->article_nature->name : '';