public function returnView($projects, $map, $cat_name) { $id = Utils::getUserID(); $user = User::getUser($id); $user_number = User::getUserNumber(); $like_number = Projects::countLikes(); $download_number = Projects::countDownloads(); $projects_number = Projects::countProjects(); $cat = Projects::getAllCategory(); $latest_projects = Projects::getLatestProjects(); $map = $this->getMapp($map, $cat_name); $premium = Projects::isPremium($id); $notification = User::getNotification($id); return View::make('home')->with('details_header', $user)->with('total_users', $user_number)->with('projects', $projects)->with("category", $cat)->with("latest_pro", $latest_projects)->with("total_likes", $like_number)->with("total_downloads", $download_number)->with("total_projects", $projects_number)->with("map", $map)->with("premium", $premium)->with("notification", $notification)->with("user_id", $id)->with("success", Input::get('success')); }
public function getView($id, $user, $user_h) { $pro = Projects::getProjectsProfile($id); $down = Projects::countDownloadsUser($id); $like = Projects::countLikesUser($id); $notification = User::getNotification($id); return View::make("profile")->with('details_header', $user_h)->with("notification", $notification)->with("user_id", $id)->with('details', $user)->with('projects', $pro)->with('usr_down', $down)->with('usr_like', $like)->with('n_pro', count($pro)); }