|
@@ -16,7 +16,7 @@ class SiseController extends Controller
|
|
|
$this->callApiService = $callApiService;
|
|
|
}
|
|
|
|
|
|
- public function index($siseType, $area=null)
|
|
|
+ public function index($siseType, $area=null, $memberbershipname=null)
|
|
|
{
|
|
|
|
|
|
// siseType별로 title 변수 생성
|
|
@@ -40,6 +40,9 @@ class SiseController extends Controller
|
|
|
$query .= " and pc2='$area'";
|
|
|
}
|
|
|
}
|
|
|
+ if($memberbershipname){
|
|
|
+ $query .= " and postTitle like '%$memberbershipname%'";
|
|
|
+ }
|
|
|
// dd($query);
|
|
|
$limit = (int)request('limit', 12);
|
|
|
$page = (int)request('page', 1);
|
|
@@ -85,7 +88,7 @@ class SiseController extends Controller
|
|
|
['path' => request()->url()]
|
|
|
);
|
|
|
|
|
|
- return view('views.page.sise', compact('siseList', 'siseItems', 'title', "title_dir", "siseType"));
|
|
|
+ return view('views.page.sise', compact('siseList', 'siseItems', 'title', "title_dir", "siseType", "area"));
|
|
|
}
|
|
|
|
|
|
}
|