feat: Implement nested product category display in admin datatable with expandable rows.
This commit is contained in:
@@ -44,9 +44,9 @@ class ProductCategoryRepository extends BaseRepository implements ProductCategor
|
||||
$query->onlyTrashed();
|
||||
}
|
||||
|
||||
// if (!empty($data['vcenter_id'])) {
|
||||
// $query->where('vcenter_id', $data['vcenter_id']);
|
||||
// }
|
||||
if (array_key_exists('parent_id', $data)) {
|
||||
$query->where('parent_id', $data['parent_id']);
|
||||
}
|
||||
|
||||
if (!empty($withCount)) {
|
||||
$query->withCount($withCount);
|
||||
|
||||
Reference in New Issue
Block a user