| xqd
@@ -43,9 +43,9 @@ class ProjectController extends BaseController
|
|
|
|
|
|
public function applyIndex()
|
|
|
{
|
|
|
- $project_id = Project::getOptions();
|
|
|
+
|
|
|
list($model, $model_name, $pre_uri) = array($this->model, $this->model_name, $this->pre_uri);
|
|
|
- return view($this->view_path . 'apply-index', compact('model', 'model_name','pre_uri','project_id'));
|
|
|
+ return view($this->view_path . 'apply-index', compact('model', 'model_name','pre_uri'));
|
|
|
}
|
|
|
|
|
|
public function get(Request $request)
|
| xqd
@@ -85,6 +85,10 @@ class ProjectController extends BaseController
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
+ if ($request->input('project_name'))
|
|
|
+ {
|
|
|
+ $items->where('name','like','%'.request('project_name').'%');
|
|
|
+ }
|
|
|
$items = $items->paginate();
|
|
|
|
|
|
foreach($items as $item) {
|