debug excel blades

This commit is contained in:
2025-04-20 15:54:34 +03:30
parent 88bcf8e49e
commit b677624d5d
4 changed files with 4 additions and 6 deletions

View File

@@ -53,7 +53,7 @@ class RoadItemTableService
$allowedSortings = ['*'];
$query = RoadItemsProject::query()
->select(['id', 'supervisor_description', 'item', 'item_fa', 'sub_item', 'sub_item_fa', 'sub_item_data', 'unit_fa', 'start_lat', 'start_lng',
->select(['id', 'province_fa', 'edarat_name', 'supervisor_description', 'item', 'item_fa', 'sub_item', 'sub_item_fa', 'sub_item_data', 'unit_fa', 'start_lat', 'start_lng',
'end_lat', 'end_lng', 'activity_date_time', 'created_at', 'status_fa', 'status'])
->where('is_new', 1)
->where('user_id', auth()->user()->id)

View File

@@ -80,6 +80,7 @@ class DataTableService
$query = $this->applySelect($query, $this->allowedSelects);
$query = $this->includeRelationsInQuery($query, $this->allowedRelations);
$query = $this->applyGroupBy($query, $this->allowedGroupBy);
$this->totalRowCount = $query->count();
@@ -96,8 +97,6 @@ class DataTableService
$query = (new ApplySort($query, $sort))->apply();
}
$query = $this->applyGroupBy($query, $this->allowedGroupBy);
return $query;
}