public function solution(Request $request){
$data =$request->param();
Session::set('solutionId',$data);
$res_data= Db::name('column')->where('isDisable','<>', 1)->where('pId',2)->order('intOrder asc,id asc')->select();
$res_list= Db::name('solution')->where('isDisable','<>', 1)->order('intOrder asc,id asc')->select();
return $this->fetch('solution/solution',['res_data'=>$res_data,'res_list'=>$res_list]);
}
public function solutions(){
$data= Session::get('solutionId');
$far_data= Db::name('column')->where('isDisable','<>', 1)->where('id',$data['ids'])->order('intOrder asc,id asc')->find();
$res_data= Db::name('solution')->where('isDisable','<>', 1)->where('pId',$data['ids'])->order('intOrder asc,id asc')->select();
$first_data=$res_data[0];
return $this->fetch('solution/solutions',['res_data'=>$res_data,'far_data'=>$far_data,'first_data'=>$first_data]);
}
public function solutionview()
{
$viewid =isset($this->viewId)?$this->viewId:'';
$res_view = Db::name('solution')->where('id', $viewid)->where('isDisable',0)->find();