public function getAssignPlan($user_id) { $profile = Subscriber::findOrFail($user_id); $plans = Plan::lists('name', 'id')->orderby('name'); return View::make("admin.accounts.assign-plan")->with('profile', $profile)->with('plans', $plans); }
public function getRecharge() { $accounts = Subscriber::where('is_admin', 0)->where('plan_type', PREPAID_PLAN)->lists('uname', 'id'); return View::make('admin.vouchers.recharge')->with('plans', Plan::lists('name', 'id'))->with('accounts', $accounts); }