@@ -24,12 +24,12 @@ discard block |
||
| 24 | 24 | |
| 25 | 25 | $paymentMethodsList = Cart::getConditionsByType('sending_method')->first()->getAttributes()['data']['related_payment_methods_list']; |
| 26 | 26 | |
| 27 | - if(!Cart::getConditionsByType('sending_method')->count()) { |
|
| 27 | + if (!Cart::getConditionsByType('sending_method')->count()) { |
|
| 28 | 28 | Notification::error('Selecteer een verzendwijze'); |
| 29 | 29 | return redirect()->to('cart'); |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - if(!Cart::getConditionsByType('payment_method')->count()) { |
|
| 32 | + if (!Cart::getConditionsByType('payment_method')->count()) { |
|
| 33 | 33 | Notification::error('Selecteer een betaalwijze'); |
| 34 | 34 | return redirect()->to('cart'); |
| 35 | 35 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | 'paymentMethodsList' => $paymentMethodsList)); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - return view('frontend.checkout.login')->with(array( 'sendingMethodsList' => $sendingMethodsList, 'paymentMethodsList' => $paymentMethodsList)); |
|
| 55 | + return view('frontend.checkout.login')->with(array('sendingMethodsList' => $sendingMethodsList, 'paymentMethodsList' => $paymentMethodsList)); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | $user = auth('web')->user(); |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | { |
| 74 | 74 | // create the validation rules ------------------------ |
| 75 | 75 | $rules = array( |
| 76 | - 'email' => 'required|email', // required and must be unique in the ducks table |
|
| 76 | + 'email' => 'required|email', // required and must be unique in the ducks table |
|
| 77 | 77 | 'password' => 'required' |
| 78 | 78 | ); |
| 79 | 79 | |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | $userdata = $request->all(); |
| 117 | 117 | |
| 118 | 118 | $rules = array( |
| 119 | - 'email' => 'required|email', // required and must be unique in the ducks table |
|
| 119 | + 'email' => 'required|email', // required and must be unique in the ducks table |
|
| 120 | 120 | 'password' => 'required', |
| 121 | 121 | 'firstname' => 'required', |
| 122 | 122 | 'lastname' => 'required', |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | $data = $register; |
| 164 | 164 | $data['shop'] = app('shop'); |
| 165 | 165 | |
| 166 | - Mail::send('frontend.email.register-mail', array('password' => $userdata['password'], 'user' => $data->toArray(), 'billAddress' => $data->clientBillAddress->toArray()), function ($message) use ($data) { |
|
| 166 | + Mail::send('frontend.email.register-mail', array('password' => $userdata['password'], 'user' => $data->toArray(), 'billAddress' => $data->clientBillAddress->toArray()), function($message) use ($data) { |
|
| 167 | 167 | |
| 168 | 168 | $message->to($data['email'])->from($data['shop']->email, $data['shop']->title)->subject('Je bent geregistreerd.'); |
| 169 | 169 | }); |
@@ -229,15 +229,15 @@ discard block |
||
| 229 | 229 | $data['user_id'] = $noAccountUser['client_id']; |
| 230 | 230 | } |
| 231 | 231 | |
| 232 | - if(Cart::getConditionsByType('sending_method')->count()) { |
|
| 232 | + if (Cart::getConditionsByType('sending_method')->count()) { |
|
| 233 | 233 | $data['sending_method'] = Cart::getConditionsByType('sending_method'); |
| 234 | 234 | } |
| 235 | 235 | |
| 236 | - if(Cart::getConditionsByType('sending_method_country_price')->count()) { |
|
| 236 | + if (Cart::getConditionsByType('sending_method_country_price')->count()) { |
|
| 237 | 237 | $data['sending_method_country_price'] = Cart::getConditionsByType('sending_method_country_price'); |
| 238 | 238 | } |
| 239 | 239 | |
| 240 | - if(Cart::getConditionsByType('payment_method')->count()) { |
|
| 240 | + if (Cart::getConditionsByType('payment_method')->count()) { |
|
| 241 | 241 | $data['payment_method'] = Cart::getConditionsByType('payment_method'); |
| 242 | 242 | } |
| 243 | 243 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | Notification::error($validator->errors()->all()); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | - Mail::send('frontend.email.contact', ['data' => $input], function ($m) use ($input) { |
|
| 38 | + Mail::send('frontend.email.contact', ['data' => $input], function($m) use ($input) { |
|
| 39 | 39 | $m->from('[email protected]', 'Dutchbridge'); |
| 40 | 40 | $m->replyTo($input['email'], $input['name']); |
| 41 | 41 | $m->to('[email protected]')->subject(': thnx for your contact!'); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | public function getItem(Request $request, $newsGroupSlug, $slug) |
| 11 | 11 | { |
| 12 | 12 | $news = NewsService::selectOneBySlug(config()->get('app.shop_id'), $slug); |
| 13 | - $newsGroups = NewsService::selectAllActiveGroupsByShopId(config()->get('app.shop_id')); |
|
| 13 | + $newsGroups = NewsService::selectAllActiveGroupsByShopId(config()->get('app.shop_id')); |
|
| 14 | 14 | |
| 15 | 15 | if ($news) { |
| 16 | 16 | if ($news->slug != $slug or $news->newsGroup->slug != $newsGroupSlug) { |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | $page = $request->get('page', 1); |
| 29 | 29 | $news = NewsService::selectByGroupAndByShopIdAndPaginate(config()->get('app.shop_id'), $newsGroupSlug, 25); |
| 30 | 30 | $newsGroup = NewsService::selectOneGroupByShopIdAndSlug(config()->get('app.shop_id'), $newsGroupSlug); |
| 31 | - $newsGroups = NewsService::selectAllActiveGroupsByShopId(config()->get('app.shop_id')); |
|
| 31 | + $newsGroups = NewsService::selectAllActiveGroupsByShopId(config()->get('app.shop_id')); |
|
| 32 | 32 | |
| 33 | 33 | if ($newsGroup) { |
| 34 | 34 | return view('frontend.news.group')->with(array('selectedPage' => $page, 'news' => $news, 'newsGroups' => $newsGroups, 'newsGroup' => $newsGroup)); |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | { |
| 42 | 42 | $page = $request->get('page', 1); |
| 43 | 43 | $news = NewsService::selectAllByShopIdAndPaginate(config()->get('app.shop_id'), 25); |
| 44 | - $newsGroups = NewsService::selectAllActiveGroupsByShopId(config()->get('app.shop_id')); |
|
| 44 | + $newsGroups = NewsService::selectAllActiveGroupsByShopId(config()->get('app.shop_id')); |
|
| 45 | 45 | if ($news) { |
| 46 | 46 | return view('frontend.news.index')->with(array('selectedPage' => $page, 'news' => $news, 'newsGroups' => $newsGroups)); |
| 47 | 47 | } |