@@ -120,10 +120,10 @@ |
||
| 120 | 120 | ->addColumn('name', function ($model) { |
| 121 | 121 | return ucfirst($model->name); |
| 122 | 122 | }) |
| 123 | - ->addColumn('image', function ($model) { |
|
| 124 | - // return $model->image; |
|
| 125 | - return "<img src= '$model->image' + height=\"80\"/>"; |
|
| 126 | - }) |
|
| 123 | + ->addColumn('image', function ($model) { |
|
| 124 | + // return $model->image; |
|
| 125 | + return "<img src= '$model->image' + height=\"80\"/>"; |
|
| 126 | + }) |
|
| 127 | 127 | ->addColumn('type', function ($model) { |
| 128 | 128 | if ($this->type->where('id', $model->type)->first()) { |
| 129 | 129 | return $this->type->where('id', $model->type)->first()->name; |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | try { |
| 59 | 59 | $merge_fields = $this->field($email); |
| 60 | 60 | $interestGroupIdForNo = $this->relation->is_paid_no; //Interest GroupId for IsPaid Is No |
| 61 | - $interestGroupIdForYes = $this->relation->is_paid_yes; //Interest GroupId for IsPaid Is Yes |
|
| 61 | + $interestGroupIdForYes = $this->relation->is_paid_yes; //Interest GroupId for IsPaid Is Yes |
|
| 62 | 62 | $result = $this->mailchimp->post("lists/$this->list_id/members", [ |
| 63 | 63 | 'status' => $this->mailchimp_set->subscribe_status, |
| 64 | 64 | 'email_address' => $email, |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | $country = Country::where('country_code_char2', $user->country)->pluck('nicename')->first(); |
| 115 | 115 | if ($user) { |
| 116 | 116 | $fields = ['first_name', 'last_name', 'company', 'mobile', |
| 117 | - 'address', 'town', 'country', 'state', 'zip', 'active', 'role', 'source', ]; |
|
| 117 | + 'address', 'town', 'country', 'state', 'zip', 'active', 'role', 'source', ]; |
|
| 118 | 118 | $relation = $this->relation; |
| 119 | 119 | $merge_fields = []; |
| 120 | 120 | foreach ($fields as $field) { |
@@ -241,11 +241,11 @@ discard block |
||
| 241 | 241 | |
| 242 | 242 | $this->addProductInterestFieldsToAgora(); //add all the fields in Product Section of Groups to the db |
| 243 | 243 | $group_fields = $this->groups->where('list_id', $this->list_id) |
| 244 | - ->select('category_name', 'category_option_id', 'category_id')->get()->toArray(); |
|
| 244 | + ->select('category_name', 'category_option_id', 'category_id')->get()->toArray(); |
|
| 245 | 245 | // dd($group_fields[0]); |
| 246 | 246 | $relations = MailchimpGroupAgoraRelation::where('id', '!=', 0) |
| 247 | - ->select('agora_product_id', 'mailchimp_group_cat_id') |
|
| 248 | - ->orderBy('id', 'asc')->get()->toArray(); |
|
| 247 | + ->select('agora_product_id', 'mailchimp_group_cat_id') |
|
| 248 | + ->orderBy('id', 'asc')->get()->toArray(); |
|
| 249 | 249 | $productList = []; |
| 250 | 250 | $categoryList = []; |
| 251 | 251 | if (count($relations) != 0) { |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | MailchimpGroupAgoraRelation::where('id', '!=', 0)->delete(); |
| 325 | 325 | foreach ($request->row as $key => $value) { |
| 326 | 326 | MailchimpGroupAgoraRelation::create(['agora_product_id'=> $value[0], |
| 327 | - 'mailchimp_group_cat_id' => $value[1], ]); |
|
| 327 | + 'mailchimp_group_cat_id' => $value[1], ]); |
|
| 328 | 328 | } |
| 329 | 329 | |
| 330 | 330 | return redirect()->back()->with('success', \Lang::get('message.updated-successfully')); |