minor fixes
This commit is contained in:
@@ -12,7 +12,7 @@ class SaleChannelsDataTable extends DataTable
|
||||
|
||||
public function query(SaleChannel $model)
|
||||
{
|
||||
$model = $model->withCount(['deliveries', 'tariffs']);
|
||||
$model = $model->withCount(['customers', 'deliveries', 'tariffs']);
|
||||
|
||||
return $this->buildQuery($model);
|
||||
}
|
||||
@@ -22,6 +22,7 @@ class SaleChannelsDataTable extends DataTable
|
||||
return [
|
||||
Column::make('code')->title('Code abrégé')->width(100),
|
||||
Column::make('name')->title('Nom'),
|
||||
Column::make('customers_count')->title('#Clients')->searchable(false)->class('text-right'),
|
||||
Column::make('deliveries_count')->title('#Distrib')->searchable(false)->class('text-right'),
|
||||
Column::make('tariffs_count')->title('#Tarifs')->searchable(false)->class('text-right'),
|
||||
$this->makeColumnButtons(),
|
||||
|
||||
Reference in New Issue
Block a user