add offers count, & minor fixes code standards

This commit is contained in:
Ludovic CANDELLIER
2021-11-01 16:26:31 +01:00
parent 8aaab4345f
commit ae20643879
66 changed files with 526 additions and 574 deletions

View File

@@ -13,7 +13,7 @@ class PriceGenericCategoriesDataTable extends DataTable
public function query(PriceGenericCategory $model)
{
$model = $model->withCount('price_generics');
return self::buildQuery($model);
return $this->buildQuery($model);
}
protected function getColumns()
@@ -21,7 +21,7 @@ class PriceGenericCategoriesDataTable extends DataTable
return [
Column::make('name')->title('Nom'),
Column::make('price_generics_count')->title('Nb Tarifs')->class('text-right'),
self::makeColumnButtons(),
$this->makeColumnButtons(),
];
}
}