This commit is contained in:
Ludovic CANDELLIER
2021-04-05 23:58:37 +02:00
parent 92a8a0ed69
commit bba5f6d984
3 changed files with 38 additions and 10 deletions

View File

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