Fix some enhancements & new features
This commit is contained in:
@@ -12,7 +12,7 @@ class ArticleAttributeFamiliesDataTable extends DataTable
|
||||
|
||||
public function query(ArticleAttributeFamily $model)
|
||||
{
|
||||
$model = $model::withCount(['Attributes']);
|
||||
$model = $model::withCount(['values','articles']);
|
||||
return self::buildQuery($model);
|
||||
}
|
||||
|
||||
@@ -20,7 +20,8 @@ class ArticleAttributeFamiliesDataTable extends DataTable
|
||||
{
|
||||
return [
|
||||
Column::make('name')->title('Nom'),
|
||||
Column::make('attributes_count')->title('Nb attributs')->searchable(false)->addClass('text-right'),
|
||||
Column::make('values_count')->title('Nb attributs')->searchable(false)->addClass('text-right'),
|
||||
Column::make('articles_count')->title('Nb d\'articles')->searchable(false)->addClass('text-right'),
|
||||
self::makeColumnButtons(),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ class ArticleAttributeValuesDataTable extends DataTable
|
||||
|
||||
public function query(ArticleAttributeValue $model)
|
||||
{
|
||||
$model = $model::with(['ArticleAttributeFamily']);
|
||||
$model = $model::with(['article_attribute_family']);
|
||||
return self::buildQuery($model);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user