|
...
|
...
|
@@ -168,7 +168,7 @@ class ProductController extends BaseController |
|
|
|
$query->where('created_at', '>=' ,$this->param['start_at'].' 00:00:00')->where('created_at', '<=' ,$this->param['end_at'].' 59:59:59');
|
|
|
|
}
|
|
|
|
$this->param['featured_status'] = $this->param['featured_status'] ?? 0;
|
|
|
|
if(($this->param['featured_status'] != Category::STATUS_ACTIVE)) {
|
|
|
|
if($this->param['featured_status'] != Category::STATUS_ACTIVE) {
|
|
|
|
$query = $query->where('title','not like','Featured%');
|
|
|
|
}
|
|
|
|
return $query;
|
...
|
...
|
|