@@ -44,15 +44,15 @@ discard block |
||
44 | 44 | |
45 | 45 | $datatables = \Datatables::of($invoice) |
46 | 46 | |
47 | - ->addColumn('price_with_tax', function ($order) { |
|
47 | + ->addColumn('price_with_tax', function($order) { |
|
48 | 48 | $money = '€ '.$order->price_with_tax; |
49 | 49 | return $money; |
50 | 50 | }) |
51 | 51 | |
52 | 52 | |
53 | 53 | |
54 | - ->addColumn('action', function ($invoice) { |
|
55 | - $deleteLink = \Form::deleteajax('/invoice/'. $invoice->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
54 | + ->addColumn('action', function($invoice) { |
|
55 | + $deleteLink = \Form::deleteajax('/invoice/'.$invoice->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
56 | 56 | $download = '<a href="/invoice/'.$invoice->id.'/download" class="btn btn-default btn-sm btn-info"><i class="entypo-pencil"></i>Download</a> '; |
57 | 57 | $links = '<a href="/invoice/'.$invoice->id.'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Show</a> '.$download; |
58 | 58 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | public function store() |
92 | 92 | { |
93 | - $result = $this->invoice->create(Request::all()); |
|
93 | + $result = $this->invoice->create(Request::all()); |
|
94 | 94 | |
95 | 95 | if (isset($result->id)) { |
96 | 96 | \Notification::success('The invoice was inserted.'); |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | |
113 | 113 | public function update($invoiceId) |
114 | 114 | { |
115 | - $result = $this->invoice->updateById(Request::all(), $invoiceId); |
|
115 | + $result = $this->invoice->updateById(Request::all(), $invoiceId); |
|
116 | 116 | |
117 | 117 | if (isset($result->id)) { |
118 | 118 | \Notification::success('The invoice was updated.'); |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | |
126 | 126 | public function destroy($invoiceId) |
127 | 127 | { |
128 | - $result = $this->invoice->destroy($invoiceId); |
|
128 | + $result = $this->invoice->destroy($invoiceId); |
|
129 | 129 | |
130 | 130 | if ($result) { |
131 | 131 | Notification::success('The invoice was deleted.'); |
@@ -36,13 +36,13 @@ discard block |
||
36 | 36 | |
37 | 37 | $datatables = Datatables::of($content) |
38 | 38 | |
39 | - ->filterColumn('title', function ($query, $keyword) { |
|
39 | + ->filterColumn('title', function($query, $keyword) { |
|
40 | 40 | $query->whereRaw("content.title like ?", ["%{$keyword}%"]); |
41 | 41 | }) |
42 | - ->addColumn('contentgroup', function ($content) { |
|
42 | + ->addColumn('contentgroup', function($content) { |
|
43 | 43 | return $content->contenttitle; |
44 | 44 | }) |
45 | - ->addColumn('action', function ($content) { |
|
45 | + ->addColumn('action', function($content) { |
|
46 | 46 | $deleteLink = Form::deleteajax(url()->route('content.destroy', $content->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
47 | 47 | $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; |
48 | 48 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | public function store(Request $request) |
64 | 64 | { |
65 | - $result = ContentService::create($request->all()); |
|
65 | + $result = ContentService::create($request->all()); |
|
66 | 66 | return ContentService::notificationRedirect('content.index', $result, 'The content was inserted.'); |
67 | 67 | } |
68 | 68 | |
@@ -73,13 +73,13 @@ discard block |
||
73 | 73 | |
74 | 74 | public function update(Request $request, $contentId) |
75 | 75 | { |
76 | - $result = ContentService::updateById($request->all(), $contentId); |
|
76 | + $result = ContentService::updateById($request->all(), $contentId); |
|
77 | 77 | return ContentService::notificationRedirect('content.index', $result, 'The content was updated.'); |
78 | 78 | } |
79 | 79 | |
80 | 80 | public function destroy(Request $request, $contentId) |
81 | 81 | { |
82 | - $result = ContentService::destroy($contentId); |
|
82 | + $result = ContentService::destroy($contentId); |
|
83 | 83 | |
84 | 84 | if ($result) { |
85 | 85 | Notification::success('The content was deleted.'); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | ->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id); |
28 | 28 | |
29 | 29 | $datatables = Datatables::of($query) |
30 | - ->addColumn('action', function ($query) { |
|
30 | + ->addColumn('action', function($query) { |
|
31 | 31 | $deleteLink = Form::deleteajax(url()->route('content-group.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
32 | 32 | $links = '<a href="'.url()->route('content-group.edit', $query->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
33 | 33 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | public function store(Request $request) |
49 | 49 | { |
50 | - $result = ContentService::createGroup($request->all()); |
|
50 | + $result = ContentService::createGroup($request->all()); |
|
51 | 51 | return ContentService::notificationRedirect('content-group.index', $result, 'The content group was inserted.'); |
52 | 52 | } |
53 | 53 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | public function update(Request $request, $contentGroupId) |
60 | 60 | { |
61 | - $result = ContentService::updateGroupById($request->all(), $contentGroupId); |
|
61 | + $result = ContentService::updateGroupById($request->all(), $contentGroupId); |
|
62 | 62 | return ContentService::notificationRedirect('content-group.index', $result, 'The content group was updated.'); |
63 | 63 | } |
64 | 64 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | public function destroy($contentGroupId) |
71 | 71 | { |
72 | - $result = ContentService::destroyGroup($contentGroupId); |
|
72 | + $result = ContentService::destroyGroup($contentGroupId); |
|
73 | 73 | |
74 | 74 | if ($result) { |
75 | 75 | Notification::success('The content was deleted.'); |
@@ -36,10 +36,10 @@ discard block |
||
36 | 36 | ->where('faq_item.shop_id', '=', auth('hideyobackend')->user()->selected_shop_id); |
37 | 37 | |
38 | 38 | $datatables = Datatables::of($query) |
39 | - ->addColumn('faqitemgroup', function ($query) { |
|
39 | + ->addColumn('faqitemgroup', function($query) { |
|
40 | 40 | return $query->grouptitle; |
41 | 41 | }) |
42 | - ->addColumn('action', function ($query) { |
|
42 | + ->addColumn('action', function($query) { |
|
43 | 43 | $deleteLink = Form::deleteajax(url()->route('faq.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
44 | 44 | $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; |
45 | 45 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | public function store(Request $request) |
63 | 63 | { |
64 | - $result = FaqService::create($request->all()); |
|
64 | + $result = FaqService::create($request->all()); |
|
65 | 65 | return FaqService::notificationRedirect('faq.index', $result, 'FaqItem was inserted.'); |
66 | 66 | } |
67 | 67 | |
@@ -73,13 +73,13 @@ discard block |
||
73 | 73 | |
74 | 74 | public function update(Request $request, $faqId) |
75 | 75 | { |
76 | - $result = FaqService::updateById($request->all(), $faqId); |
|
76 | + $result = FaqService::updateById($request->all(), $faqId); |
|
77 | 77 | return FaqService::notificationRedirect('faq.index', $result, 'FaqItem was updated.'); |
78 | 78 | } |
79 | 79 | |
80 | 80 | public function destroy($faqItemId) |
81 | 81 | { |
82 | - $result = FaqService::destroy($faqItemId); |
|
82 | + $result = FaqService::destroy($faqItemId); |
|
83 | 83 | |
84 | 84 | if ($result) { |
85 | 85 | Notification::success('The faq 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.'); |
@@ -30,18 +30,18 @@ discard block |
||
30 | 30 | |
31 | 31 | $datatables = Datatables::of($query) |
32 | 32 | |
33 | - ->addColumn('active', function ($query) { |
|
33 | + ->addColumn('active', function($query) { |
|
34 | 34 | if ($query->active) { |
35 | 35 | return '<a href="#" class="change-active" data-url="/admin/html-block/change-active/'.$query->id.'"><span class="glyphicon glyphicon-ok icon-green"></span></a>'; |
36 | 36 | } |
37 | 37 | return '<a href="#" class="change-active" data-url="/admin/html-block/change-active/'.$query->id.'"><span class="glyphicon glyphicon-remove icon-red"></span></a>'; |
38 | 38 | }) |
39 | - ->addColumn('image', function ($query) { |
|
39 | + ->addColumn('image', function($query) { |
|
40 | 40 | if ($query->image_file_name) { |
41 | 41 | return '<img src="'.config('hideyo.public_path').'/html_block/'.$query->id.'/'.$query->image_file_name.'" width="200px" />'; |
42 | 42 | } |
43 | 43 | }) |
44 | - ->addColumn('action', function ($query) { |
|
44 | + ->addColumn('action', function($query) { |
|
45 | 45 | $deleteLink = Form::deleteajax(url()->route('html-block.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
46 | 46 | $copy = '<a href="/admin/html-block/'.$query->id.'/copy" class="btn btn-default btn-sm btn-info"><i class="entypo-pencil"></i>Copy</a>'; |
47 | 47 | $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; |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | public function store(Request $request) |
63 | 63 | { |
64 | - $result = HtmlBlockService::create($request->all()); |
|
64 | + $result = HtmlBlockService::create($request->all()); |
|
65 | 65 | return HtmlBlockService::notificationRedirect('html-block.index', $result, 'The html block was inserted.'); |
66 | 66 | } |
67 | 67 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | public function update(Request $request, $htmlBlockId) |
80 | 80 | { |
81 | - $result = HtmlBlockService::updateById($request->all(), $htmlBlockId); |
|
81 | + $result = HtmlBlockService::updateById($request->all(), $htmlBlockId); |
|
82 | 82 | return HtmlBlockService::notificationRedirect('html-block.index', $result, 'The html block was updated.'); |
83 | 83 | } |
84 | 84 | |
@@ -97,8 +97,8 @@ discard block |
||
97 | 97 | { |
98 | 98 | $htmlBlock = HtmlBlockService::find($htmlBlockId); |
99 | 99 | |
100 | - if($htmlBlock) { |
|
101 | - $result = HtmlBlockService::createCopy($request->all(), $htmlBlockId); |
|
100 | + if ($htmlBlock) { |
|
101 | + $result = HtmlBlockService::createCopy($request->all(), $htmlBlockId); |
|
102 | 102 | return HtmlBlockService::notificationRedirect('html-block.index', $result, 'The html block was inserted.'); |
103 | 103 | } |
104 | 104 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | |
108 | 108 | public function destroy($htmlBlockId) |
109 | 109 | { |
110 | - $result = HtmlBlockService::destroy($htmlBlockId); |
|
110 | + $result = HtmlBlockService::destroy($htmlBlockId); |
|
111 | 111 | |
112 | 112 | if ($result) { |
113 | 113 | Notification::success('The html block was deleted.'); |
@@ -35,22 +35,22 @@ discard block |
||
35 | 35 | |
36 | 36 | $datatables = Datatables::of($query) |
37 | 37 | |
38 | - ->addColumn('orderconfirmed', function ($query) { |
|
38 | + ->addColumn('orderconfirmed', function($query) { |
|
39 | 39 | if ($query->orderConfirmedOrderStatus) { |
40 | 40 | return $query->orderConfirmedOrderStatus->title; |
41 | 41 | } |
42 | 42 | }) |
43 | - ->addColumn('paymentcompleted', function ($query) { |
|
43 | + ->addColumn('paymentcompleted', function($query) { |
|
44 | 44 | if ($query->orderPaymentCompletedOrderStatus) { |
45 | 45 | return $query->orderPaymentCompletedOrderStatus->title; |
46 | 46 | } |
47 | 47 | }) |
48 | - ->addColumn('paymentfailed', function ($query) { |
|
48 | + ->addColumn('paymentfailed', function($query) { |
|
49 | 49 | if ($query->orderPaymentFailedOrderStatus) { |
50 | 50 | return $query->orderPaymentFailedOrderStatus->title; |
51 | 51 | } |
52 | 52 | }) |
53 | - ->addColumn('action', function ($query) { |
|
53 | + ->addColumn('action', function($query) { |
|
54 | 54 | $deleteLink = Form::deleteajax(url()->route('payment-method.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-sm btn-danger')); |
55 | 55 | $links = '<a href="'.url()->route('payment-method.edit', $query->id).'" class="btn btn-sm btn-success"><i class="fi-pencil"></i>Edit</a> '.$deleteLink; |
56 | 56 | return $links; |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | public function store(Request $request) |
77 | 77 | { |
78 | - $result = PaymentMethodService::create($request->all()); |
|
78 | + $result = PaymentMethodService::create($request->all()); |
|
79 | 79 | return PaymentMethodService::notificationRedirect('payment-method.index', $result, 'The payment method was inserted.'); |
80 | 80 | } |
81 | 81 | |
@@ -92,13 +92,13 @@ discard block |
||
92 | 92 | |
93 | 93 | public function update(Request $request, $paymentMethodId) |
94 | 94 | { |
95 | - $result = PaymentMethodService::updateById($request->all(), $paymentMethodId); |
|
95 | + $result = PaymentMethodService::updateById($request->all(), $paymentMethodId); |
|
96 | 96 | return PaymentMethodService::notificationRedirect('payment-method.index', $result, 'The payment method was updated.'); |
97 | 97 | } |
98 | 98 | |
99 | 99 | public function destroy($paymentMethodId) |
100 | 100 | { |
101 | - $result = PaymentMethodService::destroy($paymentMethodId); |
|
101 | + $result = PaymentMethodService::destroy($paymentMethodId); |
|
102 | 102 | |
103 | 103 | if ($result) { |
104 | 104 | Notification::success('The payment method was deleted.'); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | 'name'] |
31 | 31 | )->where('sending_method_id', '=', $sendingMethodId); |
32 | 32 | |
33 | - $datatables = \Datatables::of($users)->addColumn('action', function ($users) use ($sendingMethodId) { |
|
33 | + $datatables = \Datatables::of($users)->addColumn('action', function($users) use ($sendingMethodId) { |
|
34 | 34 | $delete = \Form::deleteajax(url()->route('sending-method.country-prices.destroy', array('sendingMethodId' => $sendingMethodId, 'id' => $users->id)), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
35 | 35 | $link = '<a href="'.url()->route('sending-method.country-prices.edit', array('sendingMethodId' => $sendingMethodId, 'id' => $users->id)).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$delete; |
36 | 36 | |
@@ -65,8 +65,8 @@ discard block |
||
65 | 65 | $countries = \Excel::load($file, function($reader) { |
66 | 66 | })->get(); |
67 | 67 | |
68 | - if($countries) { |
|
69 | - $result = SendingMethodService::importCountries($countries, $request->get('tax_rate_id'), $sendingMethodId); |
|
68 | + if ($countries) { |
|
69 | + $result = SendingMethodService::importCountries($countries, $request->get('tax_rate_id'), $sendingMethodId); |
|
70 | 70 | Notification::success('The countries are inserted.'); |
71 | 71 | return redirect()->route('sending-method.country-prices.index', $sendingMethodId); |
72 | 72 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | public function store(Request $request, $sendingMethodId) |
76 | 76 | { |
77 | - $result = SendingMethodService::createCountry($request->all(), $sendingMethodId); |
|
77 | + $result = SendingMethodService::createCountry($request->all(), $sendingMethodId); |
|
78 | 78 | return SendingMethodService::notificationRedirect(array('sending-method.country-prices.index', $sendingMethodId), $result, 'The country was inserted.'); |
79 | 79 | } |
80 | 80 | |
@@ -89,13 +89,13 @@ discard block |
||
89 | 89 | |
90 | 90 | public function update(Request $request, $sendingMethodId, $id) |
91 | 91 | { |
92 | - $result = SendingMethodService::updateCountryById($request->all(), $id); |
|
92 | + $result = SendingMethodService::updateCountryById($request->all(), $id); |
|
93 | 93 | return SendingMethodService::notificationRedirect(array('sending-method.country-prices.index', $sendingMethodId), $result, 'The country was updated.'); |
94 | 94 | } |
95 | 95 | |
96 | 96 | public function destroy($sendingMethodId, $id) |
97 | 97 | { |
98 | - $result = SendingMethodService::destroyCountry($id); |
|
98 | + $result = SendingMethodService::destroyCountry($id); |
|
99 | 99 | |
100 | 100 | if ($result) { |
101 | 101 | Notification::success('The country price was deleted.'); |
@@ -24,11 +24,11 @@ discard block |
||
24 | 24 | $query = ProductService::getImageModel()->where('product_id', '=', $productId); |
25 | 25 | |
26 | 26 | $datatables = \Datatables::of($query) |
27 | - ->addColumn('thumb', function ($query) use ($productId) { |
|
27 | + ->addColumn('thumb', function($query) use ($productId) { |
|
28 | 28 | return '<img src="/files/product/100x100/'.$query->product_id.'/'.$query->file.'" />'; |
29 | 29 | }) |
30 | 30 | |
31 | - ->addColumn('action', function ($query) use ($productId) { |
|
31 | + ->addColumn('action', function($query) use ($productId) { |
|
32 | 32 | $deleteLink = \Form::deleteajax(url()->route('product.images.destroy', array('productId' => $productId, 'id' => $query->id)), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
33 | 33 | $links = '<a href="'.url()->route('product.images.edit', array('productId' => $productId, 'id' => $query->id)).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
34 | 34 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | public function store(Request $request, $productId) |
52 | 52 | { |
53 | - $result = ProductService::createImage($request->all(), $productId); |
|
53 | + $result = ProductService::createImage($request->all(), $productId); |
|
54 | 54 | return ProductService::notificationRedirect(array('product.images.index', $productId), $result, 'The product image was inserted.'); |
55 | 55 | } |
56 | 56 | |
@@ -64,13 +64,13 @@ discard block |
||
64 | 64 | |
65 | 65 | if ($productImage->relatedProductAttributes->count()) { |
66 | 66 | foreach ($productImage->relatedProductAttributes as $row) { |
67 | - $selectedProductAttributes[] = $row->pivot->product_attribute_id; |
|
67 | + $selectedProductAttributes[] = $row->pivot->product_attribute_id; |
|
68 | 68 | } |
69 | 69 | } |
70 | 70 | |
71 | 71 | if ($productImage->relatedAttributes->count()) { |
72 | 72 | foreach ($productImage->relatedAttributes as $row) { |
73 | - $selectedAttributes[] = $row->pivot->attribute_id; |
|
73 | + $selectedAttributes[] = $row->pivot->attribute_id; |
|
74 | 74 | } |
75 | 75 | } |
76 | 76 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | public function generateAttributeLists($product) |
81 | 81 | { |
82 | - $productAttributes = $product->attributes; |
|
82 | + $productAttributes = $product->attributes; |
|
83 | 83 | $newProductAttributes = array(); |
84 | 84 | $attributesList = array(); |
85 | 85 | $productAttributesList = array(); |
@@ -109,13 +109,13 @@ discard block |
||
109 | 109 | |
110 | 110 | public function update(Request $request, $productId, $productImageId) |
111 | 111 | { |
112 | - $result = ProductService::updateImageById($request->all(), $productId, $productImageId); |
|
112 | + $result = ProductService::updateImageById($request->all(), $productId, $productImageId); |
|
113 | 113 | return ProductService::notificationRedirect(array('product.images.index', $productId), $result, 'The product image was update.'); |
114 | 114 | } |
115 | 115 | |
116 | 116 | public function destroy($productId, $productImageId) |
117 | 117 | { |
118 | - $result = ProductService::destroyImage($productImageId); |
|
118 | + $result = ProductService::destroyImage($productImageId); |
|
119 | 119 | |
120 | 120 | if ($result) { |
121 | 121 | Notification::success('The product image is deleted.'); |