@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | { |
31 | 31 | public function index() |
32 | 32 | { |
33 | - $shop = auth('hideyobackend')->user()->shop; |
|
33 | + $shop = auth('hideyobackend')->user()->shop; |
|
34 | 34 | $now = Carbon::now(); |
35 | 35 | |
36 | 36 | $revenueThisMonth = null; |
@@ -60,15 +60,15 @@ discard block |
||
60 | 60 | |
61 | 61 | $datatables = \Datatables::of($order) |
62 | 62 | |
63 | - ->addColumn('generated_custom_order_id', function ($order) { |
|
63 | + ->addColumn('generated_custom_order_id', function($order) { |
|
64 | 64 | return $order->generated_custom_order_id; |
65 | 65 | }) |
66 | 66 | |
67 | - ->addColumn('created_at', function ($order) { |
|
67 | + ->addColumn('created_at', function($order) { |
|
68 | 68 | return date('d F H:i', strtotime($order->created_at)); |
69 | 69 | }) |
70 | 70 | |
71 | - ->addColumn('status', function ($order) { |
|
71 | + ->addColumn('status', function($order) { |
|
72 | 72 | if ($order->orderStatus) { |
73 | 73 | if ($order->orderStatus->color) { |
74 | 74 | return '<a href="/admin/order/'.$order->id.'" style="text-decoration:none;"><span style="background-color:'.$order->orderStatus->color.'; padding: 10px; line-height:30px; text-align:center; color:white;">'.$order->orderStatus->title.'</span></a>'; |
@@ -77,46 +77,46 @@ discard block |
||
77 | 77 | } |
78 | 78 | }) |
79 | 79 | |
80 | - ->filterColumn('client', function ($query, $keyword) { |
|
80 | + ->filterColumn('client', function($query, $keyword) { |
|
81 | 81 | |
82 | 82 | $query->where( |
83 | - function ($query) use ($keyword) { |
|
83 | + function($query) use ($keyword) { |
|
84 | 84 | $query->whereRaw("order_address.firstname like ?", ["%{$keyword}%"]); |
85 | 85 | $query->orWhereRaw("order_address.lastname like ?", ["%{$keyword}%"]); |
86 | 86 | ; |
87 | 87 | } |
88 | 88 | ); |
89 | 89 | }) |
90 | - ->addColumn('client', function ($order) { |
|
90 | + ->addColumn('client', function($order) { |
|
91 | 91 | if ($order->client) { |
92 | 92 | if ($order->orderBillAddress) { |
93 | - return '<a href="/admin/client/'.$order->client_id.'/order">'.$order->orderBillAddress->firstname.' '.$order->orderBillAddress->lastname.' ('.$order->client->orders->count() .')</a>'; |
|
93 | + return '<a href="/admin/client/'.$order->client_id.'/order">'.$order->orderBillAddress->firstname.' '.$order->orderBillAddress->lastname.' ('.$order->client->orders->count().')</a>'; |
|
94 | 94 | } |
95 | 95 | } |
96 | 96 | }) |
97 | - ->addColumn('products', function ($order) { |
|
97 | + ->addColumn('products', function($order) { |
|
98 | 98 | if ($order->products) { |
99 | 99 | return $order->products->count(); |
100 | 100 | } |
101 | 101 | }) |
102 | - ->addColumn('price_with_tax', function ($order) { |
|
102 | + ->addColumn('price_with_tax', function($order) { |
|
103 | 103 | $money = '€ '.$order->getPriceWithTaxNumberFormat(); |
104 | 104 | return $money; |
105 | 105 | }) |
106 | 106 | |
107 | 107 | |
108 | - ->addColumn('paymentMethod', function ($order) { |
|
108 | + ->addColumn('paymentMethod', function($order) { |
|
109 | 109 | if ($order->orderPaymentMethod) { |
110 | 110 | return $order->orderPaymentMethod->title; |
111 | 111 | } |
112 | 112 | }) |
113 | - ->addColumn('sendingMethod', function ($order) { |
|
113 | + ->addColumn('sendingMethod', function($order) { |
|
114 | 114 | if ($order->orderSendingMethod) { |
115 | 115 | return $order->orderSendingMethod->title; |
116 | 116 | } |
117 | 117 | }) |
118 | - ->addColumn('action', function ($order) { |
|
119 | - $deleteLink = \Form::deleteajax('/admin/order/'. $order->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
118 | + ->addColumn('action', function($order) { |
|
119 | + $deleteLink = \Form::deleteajax('/admin/order/'.$order->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
120 | 120 | $download = '<a href="/admin/order/'.$order->id.'/download" class="btn btn-default btn-sm btn-info"><i class="entypo-pencil"></i>Download</a> '; |
121 | 121 | |
122 | 122 | |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | |
150 | 150 | if ($data and $data['order']) { |
151 | 151 | |
152 | - if($data['type'] == 'one-pdf') { |
|
152 | + if ($data['type'] == 'one-pdf') { |
|
153 | 153 | $pdfHtml = ""; |
154 | 154 | $countOrders = count($data['order']); |
155 | 155 | $i = 0; |
@@ -175,15 +175,15 @@ discard block |
||
175 | 175 | $pdf = PDF::loadHTML($pdfHtmlBody); |
176 | 176 | |
177 | 177 | return $pdf->download('order-'.$order->generated_custom_order_id.'.pdf'); |
178 | - } elseif($data['type'] == 'product-list') { |
|
178 | + } elseif ($data['type'] == 'product-list') { |
|
179 | 179 | $products = OrderService::productsByOrderIds($data['order']); |
180 | 180 | |
181 | - if($products) { |
|
181 | + if ($products) { |
|
182 | 182 | |
183 | 183 | |
184 | - Excel::create('products', function ($excel) use ($products) { |
|
184 | + Excel::create('products', function($excel) use ($products) { |
|
185 | 185 | |
186 | - $excel->sheet('Products', function ($sheet) use ($products) { |
|
186 | + $excel->sheet('Products', function($sheet) use ($products) { |
|
187 | 187 | $newArray = array(); |
188 | 188 | foreach ($products as $key => $row) { |
189 | 189 | |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | |
215 | 215 | if ($orders) { |
216 | 216 | Request::session()->put('print_orders', $orders->toArray()); |
217 | - return response()->json(array('orders' => $orders->toArray() )); |
|
217 | + return response()->json(array('orders' => $orders->toArray())); |
|
218 | 218 | } |
219 | 219 | |
220 | 220 | Request::session()->destroy('print_orders'); |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | public function downloadLabel($orderId) |
258 | 258 | { |
259 | 259 | $order = OrderService::find($orderId); |
260 | - if($order->orderLabel()->count()) { |
|
260 | + if ($order->orderLabel()->count()) { |
|
261 | 261 | header("Content-type: application/octet-stream"); |
262 | 262 | header("Content-disposition: attachment;filename=label.pdf"); |
263 | 263 | echo $order->orderLabel->data; |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | |
290 | 290 | ); |
291 | 291 | foreach ($replace as $key => $val) { |
292 | - $content = str_replace("[" . $key . "]", $val, $content); |
|
292 | + $content = str_replace("[".$key."]", $val, $content); |
|
293 | 293 | } |
294 | 294 | |
295 | 295 | return $content; |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | |
303 | 303 | public function update($orderId) |
304 | 304 | { |
305 | - $result = OrderService::updateById(Request::all(), $orderId); |
|
305 | + $result = OrderService::updateById(Request::all(), $orderId); |
|
306 | 306 | |
307 | 307 | if ($result->errors()->all()) { |
308 | 308 | return redirect()->back()->withInput()->withErrors($result->errors()->all()); |
@@ -29,14 +29,14 @@ discard block |
||
29 | 29 | |
30 | 30 | $datatables = Datatables::of($image) |
31 | 31 | |
32 | - ->addColumn('thumb', function ($image) use ($newsId) { |
|
32 | + ->addColumn('thumb', function($image) use ($newsId) { |
|
33 | 33 | |
34 | 34 | |
35 | 35 | return '<img src="/files/news/100x100/'.$image->news_id.'/'.$image->file.'" />'; |
36 | 36 | }) |
37 | 37 | |
38 | 38 | |
39 | - ->addColumn('action', function ($image) use ($newsId) { |
|
39 | + ->addColumn('action', function($image) use ($newsId) { |
|
40 | 40 | $deleteLink = Form::deleteajax(url()->route('news-images.destroy', array('newsId' => $newsId, 'id' => $image->id)), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
41 | 41 | $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; |
42 | 42 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | public function store(Request $request, $newsId) |
59 | 59 | { |
60 | - $result = NewsService::createImage($request->all(), $newsId); |
|
60 | + $result = NewsService::createImage($request->all(), $newsId); |
|
61 | 61 | return NewsService::notificationRedirect(array('news-images.index', $newsId), $result, 'The news image was inserted.'); |
62 | 62 | } |
63 | 63 | |
@@ -69,13 +69,13 @@ discard block |
||
69 | 69 | |
70 | 70 | public function update(Request $request, $newsId, $newsImageId) |
71 | 71 | { |
72 | - $result = NewsService::updateImageById($request->all(), $newsId, $newsImageId); |
|
72 | + $result = NewsService::updateImageById($request->all(), $newsId, $newsImageId); |
|
73 | 73 | return NewsService::notificationRedirect(array('news-images.index', $newsId), $result, 'The news image was updated.'); |
74 | 74 | } |
75 | 75 | |
76 | 76 | public function destroy($newsId, $newsImageId) |
77 | 77 | { |
78 | - $result = NewsService::destroyImage($newsImageId); |
|
78 | + $result = NewsService::destroyImage($newsImageId); |
|
79 | 79 | |
80 | 80 | if ($result) { |
81 | 81 | Notification::success('The file was deleted.'); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | )->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id); |
29 | 29 | |
30 | 30 | $datatables = \Datatables::of($query) |
31 | - ->addColumn('action', function ($query) { |
|
31 | + ->addColumn('action', function($query) { |
|
32 | 32 | $deleteLink = \Form::deleteajax(url()->route('news-group.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
33 | 33 | $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; |
34 | 34 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | public function store(Request $request) |
51 | 51 | { |
52 | - $result = NewsService::createGroup($request->all()); |
|
52 | + $result = NewsService::createGroup($request->all()); |
|
53 | 53 | return NewsService::notificationRedirect('news-group.index', $result, 'The news group was inserted.'); |
54 | 54 | } |
55 | 55 | |
@@ -60,13 +60,13 @@ discard block |
||
60 | 60 | |
61 | 61 | public function update(Request $request, $newsGroupId) |
62 | 62 | { |
63 | - $result = NewsService::updateGroupById($request->all(), $newsGroupId); |
|
63 | + $result = NewsService::updateGroupById($request->all(), $newsGroupId); |
|
64 | 64 | return NewsService::notificationRedirect('news-group.index', $result, 'The news group was updated.'); |
65 | 65 | } |
66 | 66 | |
67 | 67 | public function destroy($newsGroupId) |
68 | 68 | { |
69 | - $result = NewsService::destroyGroup($newsGroupId); |
|
69 | + $result = NewsService::destroyGroup($newsGroupId); |
|
70 | 70 | |
71 | 71 | if ($result) { |
72 | 72 | Notification::success('The news group 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,12 +30,12 @@ discard block |
||
30 | 30 | if ($request->wantsJson()) { |
31 | 31 | |
32 | 32 | $query = OrderStatusService::getModel()->select( |
33 | - ['id', 'color','title'] |
|
33 | + ['id', 'color', 'title'] |
|
34 | 34 | )->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id); |
35 | 35 | |
36 | 36 | $datatables = \Datatables::of($query) |
37 | 37 | |
38 | - ->addColumn('title', function ($query) { |
|
38 | + ->addColumn('title', function($query) { |
|
39 | 39 | |
40 | 40 | if ($query->color) { |
41 | 41 | return '<span style="background-color:'.$query->color.'; padding: 10px; line-height:30px; text-align:center; color:white;">'.$query->title.'</span>'; |
@@ -44,8 +44,8 @@ discard block |
||
44 | 44 | }) |
45 | 45 | |
46 | 46 | |
47 | - ->addColumn('action', function ($query) { |
|
48 | - $deleteLink = \Form::deleteajax('/admin/order-status/'. $query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
47 | + ->addColumn('action', function($query) { |
|
48 | + $deleteLink = \Form::deleteajax('/admin/order-status/'.$query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
49 | 49 | $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; |
50 | 50 | |
51 | 51 | return $links; |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | public function store(Request $request) |
68 | 68 | { |
69 | - $result = OrderStatusService::create($request->all()); |
|
69 | + $result = OrderStatusService::create($request->all()); |
|
70 | 70 | return OrderStatusService::notificationRedirect('order-status.index', $result, 'The order status was inserted.'); |
71 | 71 | } |
72 | 72 | |
@@ -87,13 +87,13 @@ discard block |
||
87 | 87 | |
88 | 88 | public function update(Request $request, $orderStatusId) |
89 | 89 | { |
90 | - $result = OrderStatusService::updateById($request->all(), $orderStatusId); |
|
90 | + $result = OrderStatusService::updateById($request->all(), $orderStatusId); |
|
91 | 91 | return OrderStatusService::notificationRedirect('order-status.index', $result, 'The order status was updated.'); |
92 | 92 | } |
93 | 93 | |
94 | 94 | public function destroy($orderStatusId) |
95 | 95 | { |
96 | - $result = OrderStatusService::destroy($orderStatusId); |
|
96 | + $result = OrderStatusService::destroy($orderStatusId); |
|
97 | 97 | |
98 | 98 | if ($result) { |
99 | 99 | Notification::success('The order status 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.'); |
@@ -27,8 +27,8 @@ 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) { |
|
31 | - $deleteLink = Form::deleteajax('/admin/order-status-email-template/'. $query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
30 | + ->addColumn('action', function($query) { |
|
31 | + $deleteLink = Form::deleteajax('/admin/order-status-email-template/'.$query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
32 | 32 | $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; |
33 | 33 | |
34 | 34 | return $links; |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | public function store(Request $request) |
49 | 49 | { |
50 | - $result = OrderStatusEmailTemplateService::create($request->all()); |
|
50 | + $result = OrderStatusEmailTemplateService::create($request->all()); |
|
51 | 51 | return OrderStatusEmailTemplateService::notificationRedirect('order-status-email-template.index', $result, 'The template was inserted.'); |
52 | 52 | } |
53 | 53 | |
@@ -63,13 +63,13 @@ discard block |
||
63 | 63 | |
64 | 64 | public function update(Request $request, $templateId) |
65 | 65 | { |
66 | - $result = OrderStatusEmailTemplateService::updateById($request->all(), $templateId); |
|
66 | + $result = OrderStatusEmailTemplateService::updateById($request->all(), $templateId); |
|
67 | 67 | return OrderStatusEmailTemplateService::notificationRedirect('order-status-email-template.index', $result, 'The template was updated.'); |
68 | 68 | } |
69 | 69 | |
70 | 70 | public function destroy($templateId) |
71 | 71 | { |
72 | - $result = OrderStatusEmailTemplateService::destroy($templateId); |
|
72 | + $result = OrderStatusEmailTemplateService::destroy($templateId); |
|
73 | 73 | |
74 | 74 | if ($result) { |
75 | 75 | Notification::success('template was deleted.'); |