public function allMessages() { $cgs = new \Cashout\Helpers\CGS(); $this->data['users'] = $cgs->getAllContacts(Auth::user()->id); if (sizeof($this->data['users']) > 0) { $this->data['thread'] = $this->repo->getAllThreads($this->data['users'][0]->id, true); } return View::make('backend.messages', $this->data); }
public function showCGS() { $cgs = new \Cashout\Helpers\CGS(); $response = $cgs->getCGS(Auth::user()->id); return View::make('backend.referral_tree', ['tree' => $response['cgs_string']]); }
public function setRewards($user_id, $reward_coins) { $cgs = new \Cashout\Helpers\CGS(); $cgs->sendReferralCoins($user_id, $reward_coins, 0); }