@@ -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'); |
@@ -25,18 +25,18 @@ discard block |
||
25 | 25 | |
26 | 26 | $datatables = DataTables::of($query) |
27 | 27 | |
28 | - ->addColumn('active', function ($query) { |
|
28 | + ->addColumn('active', function($query) { |
|
29 | 29 | if ($query->active) { |
30 | 30 | return '<a href="#" class="change-active" data-url="/admin/html-block/change-active/'.$query->id.'"><span class="glyphicon glyphicon-ok icon-green"></span></a>'; |
31 | 31 | } |
32 | 32 | return '<a href="#" class="change-active" data-url="/admin/html-block/change-active/'.$query->id.'"><span class="glyphicon glyphicon-remove icon-red"></span></a>'; |
33 | 33 | }) |
34 | - ->addColumn('image', function ($query) { |
|
34 | + ->addColumn('image', function($query) { |
|
35 | 35 | if ($query->image_file_name) { |
36 | 36 | return '<img src="'.config('hideyo.public_path').'/html_block/'.$query->id.'/'.$query->image_file_name.'" width="200px" />'; |
37 | 37 | } |
38 | 38 | }) |
39 | - ->addColumn('action', function ($query) { |
|
39 | + ->addColumn('action', function($query) { |
|
40 | 40 | $deleteLink = Form::deleteajax(url()->route('html-block.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
41 | 41 | $copy = '<a href="/admin/html-block/'.$query->id.'/copy" class="btn btn-default btn-sm btn-info"><i class="entypo-pencil"></i>Copy</a>'; |
42 | 42 | $links = '<a href="'.url()->route('html-block.edit', $query->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$copy.' '.$deleteLink; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | public function store(Request $request) |
58 | 58 | { |
59 | - $result = HtmlBlockService::create($request->all()); |
|
59 | + $result = HtmlBlockService::create($request->all()); |
|
60 | 60 | return HtmlBlockService::notificationRedirect('html-block.index', $result, 'The html block was inserted.'); |
61 | 61 | } |
62 | 62 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | public function update(Request $request, $htmlBlockId) |
75 | 75 | { |
76 | - $result = HtmlBlockService::updateById($request->all(), $htmlBlockId); |
|
76 | + $result = HtmlBlockService::updateById($request->all(), $htmlBlockId); |
|
77 | 77 | return HtmlBlockService::notificationRedirect('html-block.index', $result, 'The html block was updated.'); |
78 | 78 | } |
79 | 79 | |
@@ -92,8 +92,8 @@ discard block |
||
92 | 92 | { |
93 | 93 | $htmlBlock = HtmlBlockService::find($htmlBlockId); |
94 | 94 | |
95 | - if($htmlBlock) { |
|
96 | - $result = HtmlBlockService::createCopy($request->all(), $htmlBlockId); |
|
95 | + if ($htmlBlock) { |
|
96 | + $result = HtmlBlockService::createCopy($request->all(), $htmlBlockId); |
|
97 | 97 | return HtmlBlockService::notificationRedirect('html-block.index', $result, 'The html block was inserted.'); |
98 | 98 | } |
99 | 99 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | |
103 | 103 | public function destroy($htmlBlockId) |
104 | 104 | { |
105 | - $result = HtmlBlockService::destroy($htmlBlockId); |
|
105 | + $result = HtmlBlockService::destroy($htmlBlockId); |
|
106 | 106 | |
107 | 107 | if ($result) { |
108 | 108 | flash('The html block was deleted.'); |
@@ -24,23 +24,23 @@ discard block |
||
24 | 24 | { |
25 | 25 | $product = ProductService::find($productId); |
26 | 26 | |
27 | - if($product) { |
|
27 | + if ($product) { |
|
28 | 28 | if ($request->wantsJson()) { |
29 | 29 | |
30 | 30 | $query = ProductCombinationService::getModel()->where('product_id', '=', $productId); |
31 | 31 | |
32 | - $datatables = \DataTables::of($query)->addColumn('action', function ($query) use ($productId) { |
|
32 | + $datatables = \DataTables::of($query)->addColumn('action', function($query) use ($productId) { |
|
33 | 33 | $deleteLink = \Form::deleteajax(url()->route('product-combination.destroy', array('productId' => $productId, 'id' => $query->id)), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
34 | 34 | $links = '<a href="'.url()->route('product-combination.edit', array('productId' => $productId, 'id' => $query->id)).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
35 | 35 | |
36 | 36 | return $links; |
37 | 37 | }) |
38 | 38 | |
39 | - ->addColumn('amount', function ($query) { |
|
39 | + ->addColumn('amount', function($query) { |
|
40 | 40 | return '<input type="text" class="change-amount-product-attribute" value="'.$query->amount.'" data-url="/admin/product/'.$query->product_id.'/product-combination/change-amount-attribute/'.$query->id.'">'; |
41 | 41 | }) |
42 | 42 | |
43 | - ->addColumn('price', function ($query) { |
|
43 | + ->addColumn('price', function($query) { |
|
44 | 44 | $result = 0; |
45 | 45 | if ($query->price) { |
46 | 46 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | 'amount' => $query->amount |
90 | 90 | ); |
91 | 91 | |
92 | - $result = '€ '.$output['orginal_price_ex_tax_number_format'].' / € '.$output['orginal_price_inc_tax_number_format']; |
|
92 | + $result = '€ '.$output['orginal_price_ex_tax_number_format'].' / € '.$output['orginal_price_inc_tax_number_format']; |
|
93 | 93 | |
94 | 94 | |
95 | 95 | if ($query->discount_value) { |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | return $result; |
101 | 101 | }) |
102 | 102 | |
103 | - ->addColumn('combinations', function ($query) use ($productId) { |
|
103 | + ->addColumn('combinations', function($query) use ($productId) { |
|
104 | 104 | $items = array(); |
105 | 105 | foreach ($query->combinations as $row) { |
106 | 106 | $items[] = $row->attribute->attributeGroup->title.': '.$row->attribute->value; |
@@ -145,8 +145,8 @@ discard block |
||
145 | 145 | |
146 | 146 | public function store(Request $request, $productId) |
147 | 147 | { |
148 | - $result = ProductCombinationService::create($request->all(), $productId); |
|
149 | - if($result) { |
|
148 | + $result = ProductCombinationService::create($request->all(), $productId); |
|
149 | + if ($result) { |
|
150 | 150 | return ProductCombinationService::notificationRedirect(array('product-combination.index', $productId), $result, 'The product extra fields are updated.'); |
151 | 151 | } |
152 | 152 | |
@@ -181,13 +181,13 @@ discard block |
||
181 | 181 | |
182 | 182 | public function update(Request $request, $productId, $id) |
183 | 183 | { |
184 | - $result = ProductCombinationService::updateById($request->all(), $productId, $id); |
|
184 | + $result = ProductCombinationService::updateById($request->all(), $productId, $id); |
|
185 | 185 | return ProductCombinationService::notificationRedirect(array('product-combination.index', $productId), $result, 'The product combinations are updated.'); |
186 | 186 | } |
187 | 187 | |
188 | 188 | public function destroy($productId, $id) |
189 | 189 | { |
190 | - $result = ProductCombinationService::destroy($id); |
|
190 | + $result = ProductCombinationService::destroy($id); |
|
191 | 191 | |
192 | 192 | if ($result) { |
193 | 193 | flash('The product combination is deleted.'); |
@@ -30,11 +30,11 @@ discard block |
||
30 | 30 | |
31 | 31 | $datatables = DataTables::of($image) |
32 | 32 | |
33 | - ->addColumn('thumb', function ($image) { |
|
33 | + ->addColumn('thumb', function($image) { |
|
34 | 34 | return '<img src="/files/content/100x100/'.$image->content_id.'/'.$image->file.'" />'; |
35 | 35 | }) |
36 | - ->addColumn('action', function ($image) use ($contentId) { |
|
37 | - $deleteLink = Form::deleteajax('/admin/content/'.$contentId.'/images/'. $image->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
36 | + ->addColumn('action', function($image) use ($contentId) { |
|
37 | + $deleteLink = Form::deleteajax('/admin/content/'.$contentId.'/images/'.$image->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
38 | 38 | $links = '<a href="/admin/content/'.$contentId.'/images/'.$image->id.'/edit" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
39 | 39 | |
40 | 40 | return $links; |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | public function store(Request $request, $contentId) |
56 | 56 | { |
57 | - $result = ContentService::createImage($request->all(), $contentId); |
|
57 | + $result = ContentService::createImage($request->all(), $contentId); |
|
58 | 58 | return ContentService::notificationRedirect(array('content.{contentId}.images.index', $contentId), $result, 'The content image was inserted.'); |
59 | 59 | } |
60 | 60 | |
@@ -66,13 +66,13 @@ discard block |
||
66 | 66 | |
67 | 67 | public function update(Request $request, $contentId, $contentImageId) |
68 | 68 | { |
69 | - $result = ContentService::updateImageById($request->all(), $contentId, $contentImageId); |
|
69 | + $result = ContentService::updateImageById($request->all(), $contentId, $contentImageId); |
|
70 | 70 | return ContentService::notificationRedirect(array('content.{contentId}.images.index', $contentId), $result, 'The content image was updated.'); |
71 | 71 | } |
72 | 72 | |
73 | 73 | public function destroy($contentId, $contentImageId) |
74 | 74 | { |
75 | - $result = ContentService::destroyImage($contentImageId); |
|
75 | + $result = ContentService::destroyImage($contentImageId); |
|
76 | 76 | |
77 | 77 | if ($result) { |
78 | 78 | flash('The file was deleted.'); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | $query = CouponService::getGroupModel()->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id); |
24 | 24 | |
25 | 25 | $datatables = \DataTables::of($query) |
26 | - ->addColumn('action', function ($query) { |
|
26 | + ->addColumn('action', function($query) { |
|
27 | 27 | $deleteLink = Form::deleteajax(url()->route('coupon-group.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-sm btn-danger')); |
28 | 28 | $links = '<a href="'.url()->route('coupon-group.edit', $query->id).'" class="btn btn-sm btn-success"><i class="fi-pencil"></i>Edit</a> '.$deleteLink; |
29 | 29 | return $links; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | public function store(Request $request) |
44 | 44 | { |
45 | - $result = CouponService::createGroup($request->all()); |
|
45 | + $result = CouponService::createGroup($request->all()); |
|
46 | 46 | return CouponService::notificationRedirect('coupon-group.index', $result, 'The coupon group was inserted.'); |
47 | 47 | } |
48 | 48 | |
@@ -53,13 +53,13 @@ discard block |
||
53 | 53 | |
54 | 54 | public function update(Request $request, $couponGroupId) |
55 | 55 | { |
56 | - $result = CouponService::updateGroupById($request->all(), $couponGroupId); |
|
56 | + $result = CouponService::updateGroupById($request->all(), $couponGroupId); |
|
57 | 57 | return CouponService::notificationRedirect('coupon-group.index', $result, 'The coupon group was updated.'); |
58 | 58 | } |
59 | 59 | |
60 | 60 | public function destroy($couponGroupId) |
61 | 61 | { |
62 | - $result = CouponService::destroyGroup($couponGroupId); |
|
62 | + $result = CouponService::destroyGroup($couponGroupId); |
|
63 | 63 | |
64 | 64 | if ($result) { |
65 | 65 | flash('The coupon was deleted.'); |
@@ -25,10 +25,10 @@ discard block |
||
25 | 25 | |
26 | 26 | $datatables = DataTables::of($image) |
27 | 27 | |
28 | - ->addColumn('thumb', function ($image) { |
|
28 | + ->addColumn('thumb', function($image) { |
|
29 | 29 | return '<img src="/files/news/100x100/'.$image->news_id.'/'.$image->file.'" />'; |
30 | 30 | }) |
31 | - ->addColumn('action', function ($image) use ($newsId) { |
|
31 | + ->addColumn('action', function($image) use ($newsId) { |
|
32 | 32 | $deleteLink = Form::deleteajax(url()->route('news-images.destroy', array('newsId' => $newsId, 'id' => $image->id)), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
33 | 33 | $links = '<a href="'.url()->route('news-images.edit', array('newsId' => $newsId, 'id' => $image->id)).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
34 | 34 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | public function store(Request $request, $newsId) |
51 | 51 | { |
52 | - $result = NewsService::createImage($request->all(), $newsId); |
|
52 | + $result = NewsService::createImage($request->all(), $newsId); |
|
53 | 53 | return NewsService::notificationRedirect(array('news-images.index', $newsId), $result, 'The news image was inserted.'); |
54 | 54 | } |
55 | 55 | |
@@ -61,13 +61,13 @@ discard block |
||
61 | 61 | |
62 | 62 | public function update(Request $request, $newsId, $newsImageId) |
63 | 63 | { |
64 | - $result = NewsService::updateImageById($request->all(), $newsId, $newsImageId); |
|
64 | + $result = NewsService::updateImageById($request->all(), $newsId, $newsImageId); |
|
65 | 65 | return NewsService::notificationRedirect(array('news-images.index', $newsId), $result, 'The news image was updated.'); |
66 | 66 | } |
67 | 67 | |
68 | 68 | public function destroy($newsId, $newsImageId) |
69 | 69 | { |
70 | - $result = NewsService::destroyImage($newsImageId); |
|
70 | + $result = NewsService::destroyImage($newsImageId); |
|
71 | 71 | |
72 | 72 | if ($result) { |
73 | 73 | flash('The file was deleted.'); |
@@ -28,10 +28,10 @@ discard block |
||
28 | 28 | $clients = ClientService::getModel()->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id); |
29 | 29 | |
30 | 30 | $datatables = DataTables::of($clients) |
31 | - ->addColumn('last_login', function ($clients) { |
|
31 | + ->addColumn('last_login', function($clients) { |
|
32 | 32 | return date('d F H:i', strtotime($clients->last_login)); |
33 | 33 | }) |
34 | - ->addColumn('action', function ($clients) { |
|
34 | + ->addColumn('action', function($clients) { |
|
35 | 35 | $deleteLink = Form::deleteajax(url()->route('client.destroy', $clients->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
36 | 36 | $links = '<a href="'.url()->route('client.edit', $clients->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Show</a> '.$deleteLink; |
37 | 37 | |
@@ -68,10 +68,10 @@ discard block |
||
68 | 68 | public function postActivate(Request $request, $clientId) |
69 | 69 | { |
70 | 70 | $input = $request->all(); |
71 | - $result = ClientService::activate($clientId); |
|
71 | + $result = ClientService::activate($clientId); |
|
72 | 72 | |
73 | 73 | if ($input['send_mail']) { |
74 | - Mail::send('frontend.email.activate-mail', array('user' => $result->toArray(), 'billAddress' => $result->clientBillAddress->toArray()), function ($message) use ($result) { |
|
74 | + Mail::send('frontend.email.activate-mail', array('user' => $result->toArray(), 'billAddress' => $result->clientBillAddress->toArray()), function($message) use ($result) { |
|
75 | 75 | $message->to($result['email'])->from('[email protected]', 'Hideyo')->subject('Toegang tot account.'); |
76 | 76 | }); |
77 | 77 | |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | |
92 | 92 | public function store(Request $request) |
93 | 93 | { |
94 | - $result = ClientService::create($request->all()); |
|
94 | + $result = ClientService::create($request->all()); |
|
95 | 95 | return ClientService::notificationRedirect('client.index', $result, 'The client was inserted.'); |
96 | 96 | } |
97 | 97 | |
@@ -122,24 +122,24 @@ discard block |
||
122 | 122 | |
123 | 123 | public function postExport() |
124 | 124 | { |
125 | - $result = ClientService::selectAllExport(); |
|
126 | - Excel::create('export', function ($excel) use ($result) { |
|
125 | + $result = ClientService::selectAllExport(); |
|
126 | + Excel::create('export', function($excel) use ($result) { |
|
127 | 127 | |
128 | - $excel->sheet('Clients', function ($sheet) use ($result) { |
|
128 | + $excel->sheet('Clients', function($sheet) use ($result) { |
|
129 | 129 | $newArray = array(); |
130 | 130 | foreach ($result as $row) { |
131 | 131 | $firstname = null; |
132 | - if($row->clientBillAddress) { |
|
132 | + if ($row->clientBillAddress) { |
|
133 | 133 | $firstname = $row->clientBillAddress->firstname; |
134 | 134 | } |
135 | 135 | |
136 | 136 | $lastname = null; |
137 | - if($row->clientBillAddress) { |
|
137 | + if ($row->clientBillAddress) { |
|
138 | 138 | $lastname = $row->clientBillAddress->lastname; |
139 | 139 | } |
140 | 140 | |
141 | 141 | $gender = null; |
142 | - if($row->clientBillAddress) { |
|
142 | + if ($row->clientBillAddress) { |
|
143 | 143 | $gender = $row->clientBillAddress->gender; |
144 | 144 | } |
145 | 145 | |
@@ -163,12 +163,12 @@ discard block |
||
163 | 163 | |
164 | 164 | public function update(Request $request, $clientId) |
165 | 165 | { |
166 | - $result = ClientService::updateById($request->all(), $clientId); |
|
166 | + $result = ClientService::updateById($request->all(), $clientId); |
|
167 | 167 | $input = $request->all(); |
168 | 168 | if (isset($result->id)) { |
169 | 169 | if ($result->active) { |
170 | 170 | if ($input['send_mail']) { |
171 | - Mail::send('frontend.email.activate-mail', array('user' => $result->toArray(), 'billAddress' => $result->clientBillAddress->toArray()), function ($message) use ($result) { |
|
171 | + Mail::send('frontend.email.activate-mail', array('user' => $result->toArray(), 'billAddress' => $result->clientBillAddress->toArray()), function($message) use ($result) { |
|
172 | 172 | $message->to($result['email'])->from('[email protected]', 'Hideyo')->subject('Toegang tot account.'); |
173 | 173 | }); |
174 | 174 | |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | |
190 | 190 | public function destroy($clientId) |
191 | 191 | { |
192 | - $result = ClientService::destroy($clientId); |
|
192 | + $result = ClientService::destroy($clientId); |
|
193 | 193 | |
194 | 194 | if ($result) { |
195 | 195 | flash('The client was deleted.'); |