@@ -26,12 +26,12 @@ discard block |
||
26 | 26 | |
27 | 27 | $paymentMethodsList = Cart::getConditionsByType('sending_method')->first()->getAttributes()['data']['related_payment_methods_list']; |
28 | 28 | |
29 | - if(!Cart::getConditionsByType('sending_method')->count()) { |
|
29 | + if (!Cart::getConditionsByType('sending_method')->count()) { |
|
30 | 30 | Notification::error('Selecteer een verzendwijze'); |
31 | 31 | return redirect()->to('cart'); |
32 | 32 | } |
33 | 33 | |
34 | - if(!Cart::getConditionsByType('payment_method')->count()) { |
|
34 | + if (!Cart::getConditionsByType('payment_method')->count()) { |
|
35 | 35 | Notification::error('Selecteer een betaalwijze'); |
36 | 36 | return redirect()->to('cart'); |
37 | 37 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | 'paymentMethodsList' => $paymentMethodsList)); |
51 | 51 | } |
52 | 52 | |
53 | - return view('frontend.checkout.login')->with(array( 'sendingMethodsList' => $sendingMethodsList, 'paymentMethodsList' => $paymentMethodsList)); |
|
53 | + return view('frontend.checkout.login')->with(array('sendingMethodsList' => $sendingMethodsList, 'paymentMethodsList' => $paymentMethodsList)); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | $user = auth('web')->user(); |
@@ -108,13 +108,13 @@ discard block |
||
108 | 108 | |
109 | 109 | $validateRegister = ClientService::validateRegister($request->all(), $noAccount); |
110 | 110 | |
111 | - if($validateRegister->fails()) { |
|
111 | + if ($validateRegister->fails()) { |
|
112 | 112 | foreach ($validator->errors()->all() as $error) { |
113 | 113 | Notification::error($error); |
114 | 114 | } |
115 | 115 | |
116 | 116 | return redirect()->to('cart/checkout') |
117 | - ->withErrors(true, 'register')->withInput();; |
|
117 | + ->withErrors(true, 'register')->withInput(); ; |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | if ($request->get('password')) { |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | $data = $register; |
138 | 138 | $data['shop'] = app('shop'); |
139 | 139 | |
140 | - Mail::send('frontend.email.register-mail', array('password' => $request->get('password'), 'user' => $data->toArray(), 'billAddress' => $data->clientBillAddress->toArray()), function ($message) use ($data) { |
|
140 | + Mail::send('frontend.email.register-mail', array('password' => $request->get('password'), 'user' => $data->toArray(), 'billAddress' => $data->clientBillAddress->toArray()), function($message) use ($data) { |
|
141 | 141 | |
142 | 142 | $message->to($data['email'])->from($data['shop']->email, $data['shop']->title)->subject('Je bent geregistreerd.'); |
143 | 143 | }); |
@@ -199,19 +199,19 @@ discard block |
||
199 | 199 | $data['user_id'] = auth('web')->user()->id; |
200 | 200 | } |
201 | 201 | |
202 | - if ($noAccountUser){ |
|
202 | + if ($noAccountUser) { |
|
203 | 203 | $data['user_id'] = $noAccountUser['client_id']; |
204 | 204 | } |
205 | 205 | |
206 | - if(Cart::getConditionsByType('sending_method')->count()) { |
|
206 | + if (Cart::getConditionsByType('sending_method')->count()) { |
|
207 | 207 | $data['sending_method'] = Cart::getConditionsByType('sending_method'); |
208 | 208 | } |
209 | 209 | |
210 | - if(Cart::getConditionsByType('sending_method_country_price')->count()) { |
|
210 | + if (Cart::getConditionsByType('sending_method_country_price')->count()) { |
|
211 | 211 | $data['sending_method_country_price'] = Cart::getConditionsByType('sending_method_country_price'); |
212 | 212 | } |
213 | 213 | |
214 | - if(Cart::getConditionsByType('payment_method')->count()) { |
|
214 | + if (Cart::getConditionsByType('payment_method')->count()) { |
|
215 | 215 | $data['payment_method'] = Cart::getConditionsByType('payment_method'); |
216 | 216 | } |
217 | 217 |
@@ -22,8 +22,8 @@ discard block |
||
22 | 22 | $query = OrderStatusEmailTemplateService::getModel()->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id); |
23 | 23 | |
24 | 24 | $datatables = DataTables::of($query) |
25 | - ->addColumn('action', function ($query) { |
|
26 | - $deleteLink = Form::deleteajax('/admin/order-status-email-template/'. $query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
25 | + ->addColumn('action', function($query) { |
|
26 | + $deleteLink = Form::deleteajax('/admin/order-status-email-template/'.$query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
27 | 27 | $links = '<a href="/admin/order-status-email-template/'.$query->id.'/edit" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
28 | 28 | |
29 | 29 | return $links; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | public function store(Request $request) |
44 | 44 | { |
45 | - $result = OrderStatusEmailTemplateService::create($request->all()); |
|
45 | + $result = OrderStatusEmailTemplateService::create($request->all()); |
|
46 | 46 | return OrderStatusEmailTemplateService::notificationRedirect('order-status-email-template.index', $result, 'The template was inserted.'); |
47 | 47 | } |
48 | 48 | |
@@ -58,13 +58,13 @@ discard block |
||
58 | 58 | |
59 | 59 | public function update(Request $request, $templateId) |
60 | 60 | { |
61 | - $result = OrderStatusEmailTemplateService::updateById($request->all(), $templateId); |
|
61 | + $result = OrderStatusEmailTemplateService::updateById($request->all(), $templateId); |
|
62 | 62 | return OrderStatusEmailTemplateService::notificationRedirect('order-status-email-template.index', $result, 'The template was updated.'); |
63 | 63 | } |
64 | 64 | |
65 | 65 | public function destroy($templateId) |
66 | 66 | { |
67 | - $result = OrderStatusEmailTemplateService::destroy($templateId); |
|
67 | + $result = OrderStatusEmailTemplateService::destroy($templateId); |
|
68 | 68 | |
69 | 69 | if ($result) { |
70 | 70 | flash('template was deleted.'); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | $query = OrderStatusService::getModel()->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id); |
24 | 24 | |
25 | 25 | $datatables = \DataTables::of($query) |
26 | - ->addColumn('title', function ($query) { |
|
26 | + ->addColumn('title', function($query) { |
|
27 | 27 | |
28 | 28 | if ($query->color) { |
29 | 29 | return '<span style="background-color:'.$query->color.'; padding: 10px; line-height:30px; text-align:center; color:white;">'.$query->title.'</span>'; |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | |
32 | 32 | return $query->title; |
33 | 33 | }) |
34 | - ->addColumn('action', function ($query) { |
|
35 | - $deleteLink = Form::deleteajax('/admin/order-status/'. $query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
34 | + ->addColumn('action', function($query) { |
|
35 | + $deleteLink = Form::deleteajax('/admin/order-status/'.$query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
36 | 36 | $links = '<a href="/admin/order-status/'.$query->id.'/edit" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
37 | 37 | |
38 | 38 | return $links; |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | public function store(Request $request) |
53 | 53 | { |
54 | - $result = OrderStatusService::create($request->all()); |
|
54 | + $result = OrderStatusService::create($request->all()); |
|
55 | 55 | return OrderStatusService::notificationRedirect('order-status.index', $result, 'The order status was inserted.'); |
56 | 56 | } |
57 | 57 | |
@@ -72,13 +72,13 @@ discard block |
||
72 | 72 | |
73 | 73 | public function update(Request $request, $orderStatusId) |
74 | 74 | { |
75 | - $result = OrderStatusService::updateById($request->all(), $orderStatusId); |
|
75 | + $result = OrderStatusService::updateById($request->all(), $orderStatusId); |
|
76 | 76 | return OrderStatusService::notificationRedirect('order-status.index', $result, 'The order status was updated.'); |
77 | 77 | } |
78 | 78 | |
79 | 79 | public function destroy($orderStatusId) |
80 | 80 | { |
81 | - $result = OrderStatusService::destroy($orderStatusId); |
|
81 | + $result = OrderStatusService::destroy($orderStatusId); |
|
82 | 82 | |
83 | 83 | if ($result) { |
84 | 84 | flash('The order status was deleted.'); |
@@ -32,12 +32,12 @@ discard block |
||
32 | 32 | ->with(array('couponGroup')); |
33 | 33 | |
34 | 34 | $datatables = DataTables::of($query) |
35 | - ->filterColumn('title', function ($query, $keyword) { |
|
35 | + ->filterColumn('title', function($query, $keyword) { |
|
36 | 36 | $query->whereRaw("coupon.title like ?", ["%{$keyword}%"]); |
37 | 37 | }) |
38 | 38 | |
39 | - ->addColumn('action', function ($query) { |
|
40 | - $deleteLink = Form::deleteajax('/admin/coupon/'. $query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
39 | + ->addColumn('action', function($query) { |
|
40 | + $deleteLink = Form::deleteajax('/admin/coupon/'.$query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
41 | 41 | $links = '<a href="/admin/coupon/'.$query->id.'/edit" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
42 | 42 | |
43 | 43 | return $links; |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | public function store(Request $request) |
64 | 64 | { |
65 | - $result = CouponService::create($request->all()); |
|
65 | + $result = CouponService::create($request->all()); |
|
66 | 66 | return CouponService::notificationRedirect('coupon.index', $result, 'The coupon was inserted.'); |
67 | 67 | } |
68 | 68 | |
@@ -82,13 +82,13 @@ discard block |
||
82 | 82 | |
83 | 83 | public function update(Request $request, $couponId) |
84 | 84 | { |
85 | - $result = CouponService::updateById($request->all(), $couponId); |
|
85 | + $result = CouponService::updateById($request->all(), $couponId); |
|
86 | 86 | return CouponService::notificationRedirect('coupon.index', $result, 'The coupon was updated.'); |
87 | 87 | } |
88 | 88 | |
89 | 89 | public function destroy($couponId) |
90 | 90 | { |
91 | - $result = CouponService::destroy($couponId); |
|
91 | + $result = CouponService::destroy($couponId); |
|
92 | 92 | |
93 | 93 | if ($result) { |
94 | 94 | flash('The coupon was deleted.'); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | $query = NewsService::getGroupModel()->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id); |
23 | 23 | |
24 | 24 | $datatables = \DataTables::of($query) |
25 | - ->addColumn('action', function ($query) { |
|
25 | + ->addColumn('action', function($query) { |
|
26 | 26 | $deleteLink = \Form::deleteajax(url()->route('news-group.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
27 | 27 | $links = '<a href="'.url()->route('news-group.edit', $query->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
28 | 28 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | public function store(Request $request) |
44 | 44 | { |
45 | - $result = NewsService::createGroup($request->all()); |
|
45 | + $result = NewsService::createGroup($request->all()); |
|
46 | 46 | return NewsService::notificationRedirect('news-group.index', $result, 'The news group was inserted.'); |
47 | 47 | } |
48 | 48 | |
@@ -53,13 +53,13 @@ discard block |
||
53 | 53 | |
54 | 54 | public function update(Request $request, $newsGroupId) |
55 | 55 | { |
56 | - $result = NewsService::updateGroupById($request->all(), $newsGroupId); |
|
56 | + $result = NewsService::updateGroupById($request->all(), $newsGroupId); |
|
57 | 57 | return NewsService::notificationRedirect('news-group.index', $result, 'The news group was updated.'); |
58 | 58 | } |
59 | 59 | |
60 | 60 | public function destroy($newsGroupId) |
61 | 61 | { |
62 | - $result = NewsService::destroyGroup($newsGroupId); |
|
62 | + $result = NewsService::destroyGroup($newsGroupId); |
|
63 | 63 | |
64 | 64 | if ($result) { |
65 | 65 | flash('The news group was deleted.'); |
@@ -33,10 +33,10 @@ discard block |
||
33 | 33 | ->where('faq_item.shop_id', '=', auth('hideyobackend')->user()->selected_shop_id); |
34 | 34 | |
35 | 35 | $datatables = DataTables::of($query) |
36 | - ->addColumn('faqitemgroup', function ($query) { |
|
36 | + ->addColumn('faqitemgroup', function($query) { |
|
37 | 37 | return $query->grouptitle; |
38 | 38 | }) |
39 | - ->addColumn('action', function ($query) { |
|
39 | + ->addColumn('action', function($query) { |
|
40 | 40 | $deleteLink = Form::deleteajax(url()->route('faq.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
41 | 41 | $links = '<a href="'.url()->route('faq.edit', $query->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
42 | 42 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | public function store(Request $request) |
59 | 59 | { |
60 | - $result = FaqService::create($request->all()); |
|
60 | + $result = FaqService::create($request->all()); |
|
61 | 61 | return FaqService::notificationRedirect('faq.index', $result, 'FaqItem was inserted.'); |
62 | 62 | } |
63 | 63 | |
@@ -69,13 +69,13 @@ discard block |
||
69 | 69 | |
70 | 70 | public function update(Request $request, $faqId) |
71 | 71 | { |
72 | - $result = FaqService::updateById($request->all(), $faqId); |
|
72 | + $result = FaqService::updateById($request->all(), $faqId); |
|
73 | 73 | return FaqService::notificationRedirect('faq.index', $result, 'FaqItem was updated.'); |
74 | 74 | } |
75 | 75 | |
76 | 76 | public function destroy($faqItemId) |
77 | 77 | { |
78 | - $result = FaqService::destroy($faqItemId); |
|
78 | + $result = FaqService::destroy($faqItemId); |
|
79 | 79 | |
80 | 80 | if ($result) { |
81 | 81 | flash('The faq was deleted.'); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | if ($request->wantsJson()) { |
22 | 22 | $query = ProductTagGroupService::getModel()->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id); |
23 | 23 | |
24 | - $datatables = \DataTables::of($query)->addColumn('action', function ($query) { |
|
24 | + $datatables = \DataTables::of($query)->addColumn('action', function($query) { |
|
25 | 25 | $deleteLink = \Form::deleteajax(url()->route('product-tag-group.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
26 | 26 | $links = '<a href="'.url()->route('product-tag-group.edit', $query->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
27 | 27 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | public function store(Request $request) |
45 | 45 | { |
46 | - $result = ProductTagGroupService::create($request->all()); |
|
46 | + $result = ProductTagGroupService::create($request->all()); |
|
47 | 47 | return ProductTagGroupService::notificationRedirect('product-tag-group.index', $result, 'The product group tag was inserted.'); |
48 | 48 | } |
49 | 49 | |
@@ -59,13 +59,13 @@ discard block |
||
59 | 59 | |
60 | 60 | public function update(Request $request, $productTagGroupId) |
61 | 61 | { |
62 | - $result = ProductTagGroupService::updateById($request->all(), $productTagGroupId); |
|
62 | + $result = ProductTagGroupService::updateById($request->all(), $productTagGroupId); |
|
63 | 63 | return ProductTagGroupService::notificationRedirect('product-tag-group.index', $result, 'The product group tag was updated.'); |
64 | 64 | } |
65 | 65 | |
66 | 66 | public function destroy($productTagGroupId) |
67 | 67 | { |
68 | - $result = ProductTagGroupService::destroy($productTagGroupId); |
|
68 | + $result = ProductTagGroupService::destroy($productTagGroupId); |
|
69 | 69 | |
70 | 70 | if ($result) { |
71 | 71 | flash('The product group tag was deleted.'); |
@@ -30,13 +30,13 @@ discard block |
||
30 | 30 | |
31 | 31 | $datatables = DataTables::of($content) |
32 | 32 | |
33 | - ->filterColumn('title', function ($query, $keyword) { |
|
33 | + ->filterColumn('title', function($query, $keyword) { |
|
34 | 34 | $query->whereRaw("content.title like ?", ["%{$keyword}%"]); |
35 | 35 | }) |
36 | - ->addColumn('contentgroup', function ($content) { |
|
36 | + ->addColumn('contentgroup', function($content) { |
|
37 | 37 | return $content->contenttitle; |
38 | 38 | }) |
39 | - ->addColumn('action', function ($content) { |
|
39 | + ->addColumn('action', function($content) { |
|
40 | 40 | $deleteLink = Form::deleteajax(url()->route('content.destroy', $content->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
41 | 41 | $links = '<a href="'.url()->route('content.edit', $content->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
42 | 42 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | public function store(Request $request) |
58 | 58 | { |
59 | - $result = ContentService::create($request->all()); |
|
59 | + $result = ContentService::create($request->all()); |
|
60 | 60 | return ContentService::notificationRedirect('content.index', $result, 'The content was inserted.'); |
61 | 61 | } |
62 | 62 | |
@@ -67,13 +67,13 @@ discard block |
||
67 | 67 | |
68 | 68 | public function update(Request $request, $contentId) |
69 | 69 | { |
70 | - $result = ContentService::updateById($request->all(), $contentId); |
|
70 | + $result = ContentService::updateById($request->all(), $contentId); |
|
71 | 71 | return ContentService::notificationRedirect('content.index', $result, 'The content was updated.'); |
72 | 72 | } |
73 | 73 | |
74 | 74 | public function destroy(Request $request, $contentId) |
75 | 75 | { |
76 | - $result = ContentService::destroy($contentId); |
|
76 | + $result = ContentService::destroy($contentId); |
|
77 | 77 | |
78 | 78 | if ($result) { |
79 | 79 | flash('The content was deleted.'); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | if ($request->wantsJson()) { |
22 | 22 | $brand = BrandService::getModel()->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id); |
23 | 23 | |
24 | - $datatables = DataTables::of($brand)->addColumn('action', function ($query) { |
|
24 | + $datatables = DataTables::of($brand)->addColumn('action', function($query) { |
|
25 | 25 | $deleteLink = Form::deleteajax(url()->route('brand.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'), $query->title); |
26 | 26 | $links = '<a href="'.url()->route('brand.edit', $query->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
27 | 27 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | public function store(Request $request) |
43 | 43 | { |
44 | - $result = BrandService::create($request->all()); |
|
44 | + $result = BrandService::create($request->all()); |
|
45 | 45 | return BrandService::notificationRedirect('brand.index', $result, 'The brand was inserted.'); |
46 | 46 | } |
47 | 47 | |
@@ -52,13 +52,13 @@ discard block |
||
52 | 52 | |
53 | 53 | public function update(Request $request, $brandId) |
54 | 54 | { |
55 | - $result = BrandService::updateById($request->all(), $brandId); |
|
55 | + $result = BrandService::updateById($request->all(), $brandId); |
|
56 | 56 | return BrandService::notificationRedirect('brand.index', $result, 'The brand was updated.'); |
57 | 57 | } |
58 | 58 | |
59 | 59 | public function destroy($brandId) |
60 | 60 | { |
61 | - $result = BrandService::destroy($brandId); |
|
61 | + $result = BrandService::destroy($brandId); |
|
62 | 62 | if ($result) { |
63 | 63 | flash('The brand was deleted.'); |
64 | 64 | return redirect()->route('brand.index'); |