@@ -31,11 +31,11 @@ discard block |
||
31 | 31 | |
32 | 32 | $datatables = DataTables::of($image) |
33 | 33 | |
34 | - ->addColumn('thumb', function ($image) { |
|
34 | + ->addColumn('thumb', function($image) { |
|
35 | 35 | return '<img src="/files/content/100x100/'.$image->content_id.'/'.$image->file.'" />'; |
36 | 36 | }) |
37 | - ->addColumn('action', function ($image) use ($contentId) { |
|
38 | - $deleteLink = Form::deleteajax('/admin/content/'.$contentId.'/images/'. $image->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
37 | + ->addColumn('action', function($image) use ($contentId) { |
|
38 | + $deleteLink = Form::deleteajax('/admin/content/'.$contentId.'/images/'.$image->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
39 | 39 | $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; |
40 | 40 | |
41 | 41 | return $links; |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | public function store(Request $request, $contentId) |
57 | 57 | { |
58 | - $result = ContentService::createImage($request->all(), $contentId); |
|
58 | + $result = ContentService::createImage($request->all(), $contentId); |
|
59 | 59 | return ContentService::notificationRedirect(array('content.{contentId}.images.index', $contentId), $result, 'The content image was inserted.'); |
60 | 60 | } |
61 | 61 | |
@@ -67,13 +67,13 @@ discard block |
||
67 | 67 | |
68 | 68 | public function update(Request $request, $contentId, $contentImageId) |
69 | 69 | { |
70 | - $result = ContentService::updateImageById($request->all(), $contentId, $contentImageId); |
|
70 | + $result = ContentService::updateImageById($request->all(), $contentId, $contentImageId); |
|
71 | 71 | return ContentService::notificationRedirect(array('content.{contentId}.images.index', $contentId), $result, 'The content image was updated.'); |
72 | 72 | } |
73 | 73 | |
74 | 74 | public function destroy($contentId, $contentImageId) |
75 | 75 | { |
76 | - $result = ContentService::destroyImage($contentImageId); |
|
76 | + $result = ContentService::destroyImage($contentImageId); |
|
77 | 77 | |
78 | 78 | if ($result) { |
79 | 79 | Notification::success('The file was deleted.'); |
@@ -31,20 +31,20 @@ discard block |
||
31 | 31 | ->with(array('newsGroup')) ->leftJoin(NewsService::getGroupModel()->getTable(), NewsService::getGroupModel()->getTable().'.id', '=', 'news_group_id'); |
32 | 32 | |
33 | 33 | $datatables = DataTables::of($query) |
34 | - ->filterColumn('title', function ($query, $keyword) { |
|
34 | + ->filterColumn('title', function($query, $keyword) { |
|
35 | 35 | |
36 | 36 | $query->where( |
37 | - function ($query) use ($keyword) { |
|
37 | + function($query) use ($keyword) { |
|
38 | 38 | $query->whereRaw("news.title like ?", ["%{$keyword}%"]); |
39 | 39 | ; |
40 | 40 | } |
41 | 41 | ); |
42 | 42 | }) |
43 | - ->addColumn('newsgroup', function ($query) { |
|
43 | + ->addColumn('newsgroup', function($query) { |
|
44 | 44 | return $query->newstitle; |
45 | 45 | }) |
46 | 46 | |
47 | - ->addColumn('action', function ($query) { |
|
47 | + ->addColumn('action', function($query) { |
|
48 | 48 | $deleteLink = Form::deleteajax(url()->route('news.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
49 | 49 | $links = '<a href="'.url()->route('news.edit', $query->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
50 | 50 | |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | public function store(Request $request) |
67 | 67 | { |
68 | - $result = NewsService::create($request->all()); |
|
68 | + $result = NewsService::create($request->all()); |
|
69 | 69 | return NewsService::notificationRedirect('news.index', $result, 'The news item was inserted.'); |
70 | 70 | } |
71 | 71 | |
@@ -90,13 +90,13 @@ discard block |
||
90 | 90 | |
91 | 91 | public function update(Request $request, $newsId) |
92 | 92 | { |
93 | - $result = NewsService::updateById($request->all(), $newsId); |
|
93 | + $result = NewsService::updateById($request->all(), $newsId); |
|
94 | 94 | return NewsService::notificationRedirect('news.index', $result, 'The news item was inserted.'); |
95 | 95 | } |
96 | 96 | |
97 | 97 | public function destroy($newsId) |
98 | 98 | { |
99 | - $result = NewsService::destroy($newsId); |
|
99 | + $result = NewsService::destroy($newsId); |
|
100 | 100 | |
101 | 101 | if ($result) { |
102 | 102 | Notification::success('The news was deleted.'); |
@@ -26,10 +26,10 @@ discard block |
||
26 | 26 | |
27 | 27 | $datatables = DataTables::of($image) |
28 | 28 | |
29 | - ->addColumn('thumb', function ($image) { |
|
29 | + ->addColumn('thumb', function($image) { |
|
30 | 30 | return '<img src="'.config('hideyo.public_path').'/brand/100x100/'.$image->brand_id.'/'.$image->file.'" />'; |
31 | 31 | }) |
32 | - ->addColumn('action', function ($image) use ($brandId) { |
|
32 | + ->addColumn('action', function($image) use ($brandId) { |
|
33 | 33 | $deleteLink = Form::deleteajax(url()->route('brand.images.destroy', array('brandId' => $brandId, 'id' => $image->id)), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
34 | 34 | $links = '<a href="'.url()->route('brand.images.edit', array('brandId' => $brandId, 'id' => $image->id)).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
35 | 35 | return $links; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | return $datatables->make(true); |
39 | 39 | } |
40 | 40 | |
41 | - return view('backend.brand_image.index')->with(array( 'brand' => $brand)); |
|
41 | + return view('backend.brand_image.index')->with(array('brand' => $brand)); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | public function create($brandId) |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | public function store(Request $request, $brandId) |
51 | 51 | { |
52 | - $result = BrandService::createImage($request->all(), $brandId); |
|
52 | + $result = BrandService::createImage($request->all(), $brandId); |
|
53 | 53 | return BrandService::notificationRedirect(array('brand.images.index', $brandId), $result, 'The brand image was inserted.'); |
54 | 54 | } |
55 | 55 | |
@@ -61,13 +61,13 @@ discard block |
||
61 | 61 | |
62 | 62 | public function update(Request $request, $brandId, $brandImageId) |
63 | 63 | { |
64 | - $result = BrandService::updateImageById($request->all(), $brandId, $brandImageId); |
|
64 | + $result = BrandService::updateImageById($request->all(), $brandId, $brandImageId); |
|
65 | 65 | return BrandService::notificationRedirect(array('brand.images.index', $brandId), $result, 'The brand image was updated.'); |
66 | 66 | } |
67 | 67 | |
68 | 68 | public function destroy($brandId, $brandImageId) |
69 | 69 | { |
70 | - $result = BrandService::destroyImage($brandImageId); |
|
70 | + $result = BrandService::destroyImage($brandImageId); |
|
71 | 71 | |
72 | 72 | if ($result) { |
73 | 73 | Notification::success('The file was deleted.'); |
@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | public function index() |
24 | 24 | { |
25 | 25 | if (Request::wantsJson()) { |
26 | - $query = UserService::getModel()->select(['id','email', 'username']); |
|
27 | - $datatables = \DataTables::of($query)->addColumn('action', function ($query) { |
|
26 | + $query = UserService::getModel()->select(['id', 'email', 'username']); |
|
27 | + $datatables = \DataTables::of($query)->addColumn('action', function($query) { |
|
28 | 28 | $deleteLink = \Form::deleteajax(url()->route('user.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
29 | 29 | $links = '<a href="'.url()->route('user.edit', $query->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
30 | 30 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | public function store() |
47 | 47 | { |
48 | - $result = UserService::signup(Request::all()); |
|
48 | + $result = UserService::signup(Request::all()); |
|
49 | 49 | return UserService::notificationRedirect('user.index', $result, 'The user was inserted.'); |
50 | 50 | } |
51 | 51 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | $shop = ShopService::find($shopId); |
76 | - $result = UserService::updateShopProfileById($shop, $id); |
|
76 | + $result = UserService::updateShopProfileById($shop, $id); |
|
77 | 77 | Notification::success('The shop changed.'); |
78 | 78 | return redirect()->route('shop.index'); |
79 | 79 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $id = auth()->id(); |
85 | 85 | } |
86 | 86 | |
87 | - $result = UserService::updateProfileById(Request::all(), Request::file('avatar'), $id); |
|
87 | + $result = UserService::updateProfileById(Request::all(), Request::file('avatar'), $id); |
|
88 | 88 | return UserService::notificationRedirect('user.index', $result, 'The user was updated.'); |
89 | 89 | } |
90 | 90 | |
@@ -106,13 +106,13 @@ discard block |
||
106 | 106 | |
107 | 107 | public function update($id) |
108 | 108 | { |
109 | - $result = UserService::updateById(Request::all(), Request::file('avatar'), $id); |
|
109 | + $result = UserService::updateById(Request::all(), Request::file('avatar'), $id); |
|
110 | 110 | return UserService::notificationRedirect('user.index', $result, 'The user was updated.'); |
111 | 111 | } |
112 | 112 | |
113 | 113 | public function destroy($id) |
114 | 114 | { |
115 | - $result = UserService::destroy($id); |
|
115 | + $result = UserService::destroy($id); |
|
116 | 116 | |
117 | 117 | if ($result) { |
118 | 118 | Notification::success('The user was deleted.'); |
@@ -26,23 +26,23 @@ discard block |
||
26 | 26 | { |
27 | 27 | $product = ProductService::find($productId); |
28 | 28 | |
29 | - if($product) { |
|
29 | + if ($product) { |
|
30 | 30 | if ($request->wantsJson()) { |
31 | 31 | |
32 | 32 | $query = ProductCombinationService::getModel()->where('product_id', '=', $productId); |
33 | 33 | |
34 | - $datatables = \DataTables::of($query)->addColumn('action', function ($query) use ($productId) { |
|
34 | + $datatables = \DataTables::of($query)->addColumn('action', function($query) use ($productId) { |
|
35 | 35 | $deleteLink = \Form::deleteajax(url()->route('product-combination.destroy', array('productId' => $productId, 'id' => $query->id)), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
36 | 36 | $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; |
37 | 37 | |
38 | 38 | return $links; |
39 | 39 | }) |
40 | 40 | |
41 | - ->addColumn('amount', function ($query) { |
|
41 | + ->addColumn('amount', function($query) { |
|
42 | 42 | 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.'">'; |
43 | 43 | }) |
44 | 44 | |
45 | - ->addColumn('price', function ($query) { |
|
45 | + ->addColumn('price', function($query) { |
|
46 | 46 | $result = 0; |
47 | 47 | if ($query->price) { |
48 | 48 | |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | 'amount' => $query->amount |
92 | 92 | ); |
93 | 93 | |
94 | - $result = '€ '.$output['orginal_price_ex_tax_number_format'].' / € '.$output['orginal_price_inc_tax_number_format']; |
|
94 | + $result = '€ '.$output['orginal_price_ex_tax_number_format'].' / € '.$output['orginal_price_inc_tax_number_format']; |
|
95 | 95 | |
96 | 96 | |
97 | 97 | if ($query->discount_value) { |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | return $result; |
103 | 103 | }) |
104 | 104 | |
105 | - ->addColumn('combinations', function ($query) use ($productId) { |
|
105 | + ->addColumn('combinations', function($query) use ($productId) { |
|
106 | 106 | $items = array(); |
107 | 107 | foreach ($query->combinations as $row) { |
108 | 108 | $items[] = $row->attribute->attributeGroup->title.': '.$row->attribute->value; |
@@ -147,8 +147,8 @@ discard block |
||
147 | 147 | |
148 | 148 | public function store(Request $request, $productId) |
149 | 149 | { |
150 | - $result = ProductCombinationService::create($request->all(), $productId); |
|
151 | - if($result) { |
|
150 | + $result = ProductCombinationService::create($request->all(), $productId); |
|
151 | + if ($result) { |
|
152 | 152 | return ProductCombinationService::notificationRedirect(array('product-combination.index', $productId), $result, 'The product extra fields are updated.'); |
153 | 153 | } |
154 | 154 | |
@@ -184,14 +184,14 @@ discard block |
||
184 | 184 | public function update(Request $request, $productId, $id) |
185 | 185 | { |
186 | 186 | |
187 | - $result = ProductCombinationService::updateById($request->all(), $productId, $id); |
|
187 | + $result = ProductCombinationService::updateById($request->all(), $productId, $id); |
|
188 | 188 | return ProductCombinationService::notificationRedirect(array('product-combination.index', $productId), $result, 'The product combinations are updated.'); |
189 | 189 | |
190 | 190 | } |
191 | 191 | |
192 | 192 | public function destroy($productId, $id) |
193 | 193 | { |
194 | - $result = ProductCombinationService::destroy($id); |
|
194 | + $result = ProductCombinationService::destroy($id); |
|
195 | 195 | |
196 | 196 | if ($result) { |
197 | 197 | Notification::success('The product combination is deleted.'); |
@@ -38,14 +38,14 @@ discard block |
||
38 | 38 | |
39 | 39 | public function index($productId) |
40 | 40 | { |
41 | - $datatable = new ProductAmountOptionDatatable(); |
|
41 | + $datatable = new ProductAmountOptionDatatable(); |
|
42 | 42 | $product = $this->product->find($productId); |
43 | 43 | if (Request::wantsJson()) { |
44 | 44 | |
45 | 45 | $query = $this->productAmountOption->getModel()->where('product_id', '=', $productId); |
46 | 46 | |
47 | - $datatables = DataTables::of($query)->addColumn('action', function ($query) use ($productId) { |
|
48 | - $deleteLink = Form::deleteajax('/admin/product/'.$productId.'/product-amount-option/'. $query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
47 | + $datatables = DataTables::of($query)->addColumn('action', function($query) use ($productId) { |
|
48 | + $deleteLink = Form::deleteajax('/admin/product/'.$productId.'/product-amount-option/'.$query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
49 | 49 | $links = '<a href="/admin/product/'.$productId.'/product-amount-option/'.$query->id.'/edit" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
50 | 50 | |
51 | 51 | return $links; |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | public function store($productId) |
78 | 78 | { |
79 | 79 | |
80 | - $result = $this->productAmountOption->create(Request::all(), $productId); |
|
80 | + $result = $this->productAmountOption->create(Request::all(), $productId); |
|
81 | 81 | |
82 | 82 | if (isset($result->id)) { |
83 | 83 | Notification::success('The product amount option is updated.'); |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | public function update($productId, $id) |
109 | 109 | { |
110 | 110 | |
111 | - $result = $this->productAmountOption->updateById(Request::all(), $productId, $id); |
|
111 | + $result = $this->productAmountOption->updateById(Request::all(), $productId, $id); |
|
112 | 112 | |
113 | 113 | if (!$result->id) { |
114 | 114 | return redirect()->back()->withInput()->withErrors($result->errors()->all()); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | |
121 | 121 | public function destroy($productId, $id) |
122 | 122 | { |
123 | - $result = $this->productAmountOption->destroy($id); |
|
123 | + $result = $this->productAmountOption->destroy($id); |
|
124 | 124 | |
125 | 125 | if ($result) { |
126 | 126 | Notification::success('The product amount option is deleted.'); |
@@ -27,18 +27,18 @@ discard block |
||
27 | 27 | |
28 | 28 | $datatables = DataTables::of($query) |
29 | 29 | |
30 | - ->addColumn('active', function ($query) { |
|
30 | + ->addColumn('active', function($query) { |
|
31 | 31 | if ($query->active) { |
32 | 32 | return '<a href="#" class="change-active" data-url="/admin/html-block/change-active/'.$query->id.'"><span class="glyphicon glyphicon-ok icon-green"></span></a>'; |
33 | 33 | } |
34 | 34 | return '<a href="#" class="change-active" data-url="/admin/html-block/change-active/'.$query->id.'"><span class="glyphicon glyphicon-remove icon-red"></span></a>'; |
35 | 35 | }) |
36 | - ->addColumn('image', function ($query) { |
|
36 | + ->addColumn('image', function($query) { |
|
37 | 37 | if ($query->image_file_name) { |
38 | 38 | return '<img src="'.config('hideyo.public_path').'/html_block/'.$query->id.'/'.$query->image_file_name.'" width="200px" />'; |
39 | 39 | } |
40 | 40 | }) |
41 | - ->addColumn('action', function ($query) { |
|
41 | + ->addColumn('action', function($query) { |
|
42 | 42 | $deleteLink = Form::deleteajax(url()->route('html-block.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
43 | 43 | $copy = '<a href="/admin/html-block/'.$query->id.'/copy" class="btn btn-default btn-sm btn-info"><i class="entypo-pencil"></i>Copy</a>'; |
44 | 44 | $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; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | public function store(Request $request) |
60 | 60 | { |
61 | - $result = HtmlBlockService::create($request->all()); |
|
61 | + $result = HtmlBlockService::create($request->all()); |
|
62 | 62 | return HtmlBlockService::notificationRedirect('html-block.index', $result, 'The html block was inserted.'); |
63 | 63 | } |
64 | 64 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | public function update(Request $request, $htmlBlockId) |
77 | 77 | { |
78 | - $result = HtmlBlockService::updateById($request->all(), $htmlBlockId); |
|
78 | + $result = HtmlBlockService::updateById($request->all(), $htmlBlockId); |
|
79 | 79 | return HtmlBlockService::notificationRedirect('html-block.index', $result, 'The html block was updated.'); |
80 | 80 | } |
81 | 81 | |
@@ -94,8 +94,8 @@ discard block |
||
94 | 94 | { |
95 | 95 | $htmlBlock = HtmlBlockService::find($htmlBlockId); |
96 | 96 | |
97 | - if($htmlBlock) { |
|
98 | - $result = HtmlBlockService::createCopy($request->all(), $htmlBlockId); |
|
97 | + if ($htmlBlock) { |
|
98 | + $result = HtmlBlockService::createCopy($request->all(), $htmlBlockId); |
|
99 | 99 | return HtmlBlockService::notificationRedirect('html-block.index', $result, 'The html block was inserted.'); |
100 | 100 | } |
101 | 101 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | |
105 | 105 | public function destroy($htmlBlockId) |
106 | 106 | { |
107 | - $result = HtmlBlockService::destroy($htmlBlockId); |
|
107 | + $result = HtmlBlockService::destroy($htmlBlockId); |
|
108 | 108 | |
109 | 109 | if ($result) { |
110 | 110 | Notification::success('The html block was deleted.'); |
@@ -21,8 +21,8 @@ |
||
21 | 21 | |
22 | 22 | $query = $this->error->getModel(); |
23 | 23 | |
24 | - $datatables = \DataTables::of($query)->addColumn('action', function ($query) { |
|
25 | - $deleteLink = \Form::deleteajax('/admin/general-setting/'. $query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
24 | + $datatables = \DataTables::of($query)->addColumn('action', function($query) { |
|
25 | + $deleteLink = \Form::deleteajax('/admin/general-setting/'.$query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
26 | 26 | $links = '<a href="/admin/general-setting/'.$query->id.'/edit" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
27 | 27 | |
28 | 28 | return $links; |
@@ -33,12 +33,12 @@ discard block |
||
33 | 33 | ->with(array('couponGroup')); |
34 | 34 | |
35 | 35 | $datatables = DataTables::of($query) |
36 | - ->filterColumn('title', function ($query, $keyword) { |
|
36 | + ->filterColumn('title', function($query, $keyword) { |
|
37 | 37 | $query->whereRaw("coupon.title like ?", ["%{$keyword}%"]); |
38 | 38 | }) |
39 | 39 | |
40 | - ->addColumn('action', function ($query) { |
|
41 | - $deleteLink = Form::deleteajax('/admin/coupon/'. $query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
40 | + ->addColumn('action', function($query) { |
|
41 | + $deleteLink = Form::deleteajax('/admin/coupon/'.$query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
42 | 42 | $links = '<a href="/admin/coupon/'.$query->id.'/edit" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
43 | 43 | |
44 | 44 | return $links; |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | |
64 | 64 | public function store(Request $request) |
65 | 65 | { |
66 | - $result = CouponService::create($request->all()); |
|
66 | + $result = CouponService::create($request->all()); |
|
67 | 67 | return CouponService::notificationRedirect('coupon.index', $result, 'The coupon was inserted.'); |
68 | 68 | } |
69 | 69 | |
@@ -83,13 +83,13 @@ discard block |
||
83 | 83 | |
84 | 84 | public function update(Request $request, $couponId) |
85 | 85 | { |
86 | - $result = CouponService::updateById($request->all(), $couponId); |
|
86 | + $result = CouponService::updateById($request->all(), $couponId); |
|
87 | 87 | return CouponService::notificationRedirect('coupon.index', $result, 'The coupon was updated.'); |
88 | 88 | } |
89 | 89 | |
90 | 90 | public function destroy($couponId) |
91 | 91 | { |
92 | - $result = CouponService::destroy($couponId); |
|
92 | + $result = CouponService::destroy($couponId); |
|
93 | 93 | |
94 | 94 | if ($result) { |
95 | 95 | Notification::success('The coupon was deleted.'); |