public function postFunds() { $form = $this->uploadFundForm; $form->handleRequest(\Request::instance()); if ($form->isValid()) { $country = Utility::getCountryCodeByIP(); $blockedCountries = Setting::get('site.countriesCodesBlockedFromUploadFunds'); $blockedCountries = explode(',', $blockedCountries); if (in_array($country['code'], $blockedCountries)) { \Flash::error("Something went wrong!"); return Redirect::route('lender:funds')->withForm($form); } return $form->makePayment(); } \Flash::error("Entered Amounts are invalid!"); return Redirect::route('lender:funds')->withForm($form); }
public function getJoin() { $country = Utility::getCountryCodeByIP(); return View::make('lender.join', compact('country'), ['form' => $this->joinForm, 'facebookJoinUrl' => $this->facebookService->getLoginUrl('lender:facebook-join')]); }
public function getCountry() { $country = Utility::getCountryCodeByIP(); return View::make('borrower.join.country', compact('country'), ['form' => $this->countryForm]); }