[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(),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -12,15 +12,15 @@ class ArticleAttributeValuesDataTable extends DataTable
|
||||
|
||||
public function query(ArticleAttributeValue $model)
|
||||
{
|
||||
$model = $model::with(['attribute_family']);
|
||||
$model = $model::with(['ArticleAttributeFamily']);
|
||||
return self::buildQuery($model);
|
||||
}
|
||||
|
||||
protected function getColumns()
|
||||
{
|
||||
return [
|
||||
Column::make('attribute_family.name')->title('Famille d\'attributs') ,
|
||||
Column::make('value'),
|
||||
Column::make('value')->title('Attributs'),
|
||||
Column::make('article_attribute_family.name')->title('Famille d\'attributs')->sortable(false),
|
||||
self::makeColumnButtons(),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -12,13 +12,15 @@ class ArticleFamiliesDataTable extends DataTable
|
||||
|
||||
public function query(ArticleFamily $model)
|
||||
{
|
||||
$model = $model::withCount('Articles');
|
||||
return self::buildQuery($model);
|
||||
}
|
||||
|
||||
protected function getColumns()
|
||||
{
|
||||
return [
|
||||
Column::make('name'),
|
||||
Column::make('name')->title('Nom'),
|
||||
Column::make('articles_count')->title('Nb articles')->addClass('text-right'),
|
||||
self::makeColumnButtons(),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ class CategoriesDataTable extends DataTable
|
||||
protected function getColumns()
|
||||
{
|
||||
return [
|
||||
Column::make('name'),
|
||||
Column::make('name')->title('Nom'),
|
||||
self::makeColumnButtons(),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user