public function socialite_login($outh_type) { // $user_data = [ // "site_type"=>$outh_type, // "site_id"=>112617558420458089489, // "email"=>"*****@*****.**", // "name"=>"ahmed badawy", // "avatar"=>get_it('site/logo.jpg') // ]; // $data = [ // 'route_info'=>\sr::common("projects_index"), // 'theme'=>$this->themes[0], // 'user_data'=>$user_data // ]; // return $this->get_view("spidro.user_area.show_data",$data,'spidro'); die; $user = \Socialize::with($outh_type)->user(); $user_data = ["site_type" => $outh_type, "site_id" => $user->id, "email" => $user->email, "name" => $user->name, "avatar" => $user->avatar]; if (isset($user->user['url'])) { $data["url"] = $user->user['url']; } if (isset($user->user['gender'])) { $data["gender"] = $user->user['gender']; } if (isset($user->user['relationshipStatus'])) { $data["relationshipStatus"] = $user->user['relationshipStatus']; } $db_user = \spidro_users_model::create($user_data); \Session::put("user_data", $db_user); // dd($user_data); $data = ['route_info' => \sr::common("projects_index"), 'theme' => $this->themes[0], 'user_data' => $user_data]; return $this->get_view("spidro.user_area.show_data", $data, 'spidro'); }
public function one_page() { $data = ['route_info' => \sr::common("projects_index"), 'theme' => $this->themes[0]]; return $this->get_view("spidro.ad_area.index", $data, 'unify'); }
public function index() { $data = ["route_info" => \sr::common("regist"), "ng_app" => "regist", "ng_body_controller" => "app", 'theme' => $this->themes[4]]; return $this->get_view('Projects.registration.index', $data); // return VM('projects.registration.index',$data,'bootstrap-watch'); }
public function api_tests() { $data = ['route_info' => \sr::common("siteTests_index"), 'theme' => $this->themes[4]]; return $this->get_view('SiteTests.index', $data); }
public function index() { $data = ["route_info" => \sr::common("apis_index"), 'theme' => $this->themes[0]]; return $this->get_view("Apis.index", $data); }
public function getUpdateInvoice($invoice_id) { $data = ['route_info' => \sr::common("projects_index"), 'theme' => $this->themes[0], 'inner_layout' => "update-invoice"]; \Session::flash("updated_invoice", $invoice_id); return $this->get_view("Selling-Manager._layout", $data); }
public function index() { $data = ["route_info" => \sr::common("hidden_index"), 'theme' => $this->themes[4]]; return $this->get_view("Hidden.index", $data); }
public function exam_generator_create_view() { $data = ['route_info' => \sr::common("blank"), "ng_app" => "myApp", 'theme' => $this->themes[0]]; // dd($data); return $this->get_view("Projects/exam_generator/create", $data); }
public function maze1() { $data = ["route_info" => \sr::common("projects_index"), 'theme' => $this->themes[0]]; return $this->get_view("Games.maze1", $data); }