|
@@ -19,13 +19,14 @@ class CmsContentTemplateRepository {
|
|
|
|
|
|
if (isset($request['is_open'])){
|
|
|
$where[] = ['is_open','=',$request['is_open']];
|
|
|
+ }else{
|
|
|
+ $where[] = ['is_open', '=',1];
|
|
|
+
|
|
|
}
|
|
|
if (isset($request['city_id'])){
|
|
|
$where[] = [
|
|
|
'city_id','=',$request['city_id'],
|
|
|
];
|
|
|
- $where[] = ['is_open', '=',1];
|
|
|
-
|
|
|
}
|
|
|
return $this->cmsContentTemplate->where($where)->orderBy('id', 'asc')->paginate($perPage);
|
|
|
|