[WIP] Fix cosmetics, prices
This commit is contained in:
@@ -12,15 +12,15 @@ class ArticleAttributeFamiliesDataTable extends DataTable
|
||||
|
||||
public function query(ArticleAttributeFamily $model)
|
||||
{
|
||||
$model = $model::withCount(['values']);
|
||||
$model = $model::withCount(['Attributes']);
|
||||
return self::buildQuery($model);
|
||||
}
|
||||
|
||||
protected function getColumns()
|
||||
{
|
||||
return [
|
||||
Column::make('name'),
|
||||
Column::make('values_count')->title('Nb valeurs')->searchable(false),
|
||||
Column::make('name')->title('Nom'),
|
||||
Column::make('attributes_count')->title('Nb attributs')->searchable(false)->addClass('text-right'),
|
||||
self::makeColumnButtons(),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user