@@ -24,11 +24,11 @@ |
||
24 | 24 | [ |
25 | 25 | |
26 | 26 | 'id', |
27 | - 'class', 'file' , 'status_code', 'line', 'message', 'url', 'method'] |
|
27 | + 'class', 'file', 'status_code', 'line', 'message', 'url', 'method'] |
|
28 | 28 | ); |
29 | 29 | |
30 | - $datatables = \Datatables::of($query)->addColumn('action', function ($query) { |
|
31 | - $deleteLink = \Form::deleteajax('/admin/general-setting/'. $query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
30 | + $datatables = \Datatables::of($query)->addColumn('action', function($query) { |
|
31 | + $deleteLink = \Form::deleteajax('/admin/general-setting/'.$query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
32 | 32 | $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; |
33 | 33 | |
34 | 34 | return $links; |
@@ -47,6 +47,6 @@ |
||
47 | 47 | public function store($productId, Request $request) |
48 | 48 | { |
49 | 49 | $result = ProductExtraFieldValueService::create($request->all(), $productId); |
50 | - return ProductExtraFieldValueService::notificationRedirect(array('product.product-extra-field-value.index', $productId), $result, 'The product extra fields are updated.'); |
|
50 | + return ProductExtraFieldValueService::notificationRedirect(array('product.product-extra-field-value.index', $productId), $result, 'The product extra fields are updated.'); |
|
51 | 51 | } |
52 | 52 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | public function store($productId, Request $request) |
48 | 48 | { |
49 | - $result = ProductExtraFieldValueService::create($request->all(), $productId); |
|
49 | + $result = ProductExtraFieldValueService::create($request->all(), $productId); |
|
50 | 50 | return ProductExtraFieldValueService::notificationRedirect(array('product.product-extra-field-value.index', $productId), $result, 'The product extra fields are updated.'); |
51 | 51 | } |
52 | 52 | } |
@@ -25,11 +25,11 @@ discard block |
||
25 | 25 | $query = RedirectService::selectAll(); |
26 | 26 | $datatables = \Datatables::of($query) |
27 | 27 | |
28 | - ->addColumn('url', function ($query) { |
|
28 | + ->addColumn('url', function($query) { |
|
29 | 29 | return '<a href="'.$query->url.'" target="_blank">'.$query->url.'</a>'; |
30 | 30 | }) |
31 | 31 | |
32 | - ->addColumn('action', function ($query) { |
|
32 | + ->addColumn('action', function($query) { |
|
33 | 33 | $deleteLink = \Form::deleteajax(url()->route('redirect.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
34 | 34 | $links = '<a href="'.url()->route('redirect.edit', $query->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
35 | 35 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | public function store() |
53 | 53 | { |
54 | - $result = RedirectService::create(Request::all()); |
|
54 | + $result = RedirectService::create(Request::all()); |
|
55 | 55 | return RedirectService::notificationRedirect('redirect.index', $result, 'The redirect was inserted.'); |
56 | 56 | } |
57 | 57 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | public function postImport() |
73 | 73 | { |
74 | 74 | $file = Request::file('file'); |
75 | - Excel::load($file, function ($reader) { |
|
75 | + Excel::load($file, function($reader) { |
|
76 | 76 | |
77 | 77 | $results = $reader->get(); |
78 | 78 | |
@@ -91,11 +91,11 @@ discard block |
||
91 | 91 | |
92 | 92 | public function getExport() |
93 | 93 | { |
94 | - $result = RedirectService::selectAll(); |
|
94 | + $result = RedirectService::selectAll(); |
|
95 | 95 | |
96 | - Excel::create('redirects', function ($excel) use ($result) { |
|
96 | + Excel::create('redirects', function($excel) use ($result) { |
|
97 | 97 | |
98 | - $excel->sheet('Redirects', function ($sheet) use ($result) { |
|
98 | + $excel->sheet('Redirects', function($sheet) use ($result) { |
|
99 | 99 | $newArray = array(); |
100 | 100 | foreach ($result as $row) { |
101 | 101 | $newArray[$row->id] = array( |
@@ -112,13 +112,13 @@ discard block |
||
112 | 112 | |
113 | 113 | public function update($redirectId) |
114 | 114 | { |
115 | - $result = RedirectService::updateById(Request::all(), $redirectId); |
|
115 | + $result = RedirectService::updateById(Request::all(), $redirectId); |
|
116 | 116 | return RedirectService::notificationRedirect('redirect.index', $result, 'The redirect was updated.'); |
117 | 117 | } |
118 | 118 | |
119 | 119 | public function destroy($redirectId) |
120 | 120 | { |
121 | - $result = RedirectService::destroy($redirectId); |
|
121 | + $result = RedirectService::destroy($redirectId); |
|
122 | 122 | |
123 | 123 | if ($result) { |
124 | 124 | Notification::success('Redirect item is deleted.'); |
@@ -259,9 +259,9 @@ |
||
259 | 259 | { |
260 | 260 | $order = OrderService::find($orderId); |
261 | 261 | if($order->orderLabel()->count()) { |
262 | - header("Content-type: application/octet-stream"); |
|
263 | - header("Content-disposition: attachment;filename=label.pdf"); |
|
264 | - echo $order->orderLabel->data; |
|
262 | + header("Content-type: application/octet-stream"); |
|
263 | + header("Content-disposition: attachment;filename=label.pdf"); |
|
264 | + echo $order->orderLabel->data; |
|
265 | 265 | } |
266 | 266 | } |
267 | 267 |
@@ -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()); |
@@ -30,11 +30,11 @@ discard block |
||
30 | 30 | if ($request->wantsJson()) { |
31 | 31 | |
32 | 32 | $query = AttributeService::getModel() |
33 | - ->select(['id','value']) |
|
33 | + ->select(['id', 'value']) |
|
34 | 34 | ->where('attribute_group_id', '=', $attributeGroupId); |
35 | 35 | |
36 | 36 | $datatables = Datatables::of($query) |
37 | - ->addColumn('action', function ($query) use ($attributeGroupId) { |
|
37 | + ->addColumn('action', function($query) use ($attributeGroupId) { |
|
38 | 38 | $deleteLink = Form::deleteajax(url()->route('attribute.destroy', array('attributeGroupId' => $attributeGroupId, 'id' => $query->id)), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
39 | 39 | $links = ' <a href="'.url()->route('attribute.edit', array('attributeGroupId' => $attributeGroupId, 'id' => $query->id)).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a>'.$deleteLink; |
40 | 40 | return $links; |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public function store(Request $request, $attributeGroupId) |
68 | 68 | { |
69 | - $result = AttributeService::create($request->all(), $attributeGroupId); |
|
69 | + $result = AttributeService::create($request->all(), $attributeGroupId); |
|
70 | 70 | return AttributeService::notificationRedirect(array('attribute.index', $attributeGroupId), $result, 'The attribute was inserted.'); |
71 | 71 | } |
72 | 72 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | */ |
91 | 91 | public function update(Request $request, $attributeGroupId, $attributeId) |
92 | 92 | { |
93 | - $result = AttributeService::updateById($request->all(), $attributeGroupId, $attributeId); |
|
93 | + $result = AttributeService::updateById($request->all(), $attributeGroupId, $attributeId); |
|
94 | 94 | return AttributeService::notificationRedirect(array('attribute.index', $attributeGroupId), $result, 'The attribute was updated.'); |
95 | 95 | } |
96 | 96 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | */ |
103 | 103 | public function destroy($attributeGroupId, $attributeId) |
104 | 104 | { |
105 | - $result = AttributeService::destroy($attributeId); |
|
105 | + $result = AttributeService::destroy($attributeId); |
|
106 | 106 | |
107 | 107 | if ($result) { |
108 | 108 | Notification::success('Atrribute was deleted.'); |
@@ -10,7 +10,7 @@ |
||
10 | 10 | { |
11 | 11 | public function index() |
12 | 12 | { |
13 | - $shop = auth('hideyobackend')->user()->shop; |
|
13 | + $shop = auth('hideyobackend')->user()->shop; |
|
14 | 14 | |
15 | 15 | return view('backend.dashboard.stats')->with( |
16 | 16 | array( |
@@ -23,10 +23,10 @@ discard block |
||
23 | 23 | if (Request::wantsJson()) { |
24 | 24 | |
25 | 25 | $query = ProductTagGroupService::getModel() |
26 | - ->select(['id','tag']) |
|
26 | + ->select(['id', 'tag']) |
|
27 | 27 | ->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id); |
28 | 28 | |
29 | - $datatables = \Datatables::of($query)->addColumn('action', function ($query) { |
|
29 | + $datatables = \Datatables::of($query)->addColumn('action', function($query) { |
|
30 | 30 | $deleteLink = \Form::deleteajax(url()->route('product-tag-group.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
31 | 31 | $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; |
32 | 32 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | |
49 | 49 | public function store() |
50 | 50 | { |
51 | - $result = ProductTagGroupService::create(\Request::all()); |
|
51 | + $result = ProductTagGroupService::create(\Request::all()); |
|
52 | 52 | return ProductTagGroupService::notificationRedirect('product-tag-group.index', $result, 'The product group tag was inserted.'); |
53 | 53 | } |
54 | 54 | |
@@ -64,13 +64,13 @@ discard block |
||
64 | 64 | |
65 | 65 | public function update($productTagGroupId) |
66 | 66 | { |
67 | - $result = ProductTagGroupService::updateById(\Request::all(), $productTagGroupId); |
|
67 | + $result = ProductTagGroupService::updateById(\Request::all(), $productTagGroupId); |
|
68 | 68 | return ProductTagGroupService::notificationRedirect('product-tag-group.index', $result, 'The product group tag was updated.'); |
69 | 69 | } |
70 | 70 | |
71 | 71 | public function destroy($productTagGroupId) |
72 | 72 | { |
73 | - $result = ProductTagGroupService::destroy($productTagGroupId); |
|
73 | + $result = ProductTagGroupService::destroy($productTagGroupId); |
|
74 | 74 | |
75 | 75 | if ($result) { |
76 | 76 | Notification::success('The product group tag was deleted.'); |
@@ -55,7 +55,7 @@ |
||
55 | 55 | |
56 | 56 | ->addColumn('bill', function ($addresses) { |
57 | 57 | if ($addresses->clientBillAddress()->count()) { |
58 | - return '<span class="glyphicon glyphicon-ok icon-green"></span>'; |
|
58 | + return '<span class="glyphicon glyphicon-ok icon-green"></span>'; |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | return '<span class="glyphicon glyphicon-remove icon-red"></span>'; |
@@ -36,10 +36,10 @@ discard block |
||
36 | 36 | )->with(array('clientDeliveryAddress', 'clientBillAddress'))->where('client_id', '=', $clientId); |
37 | 37 | |
38 | 38 | $datatables = Datatables::of($addresses) |
39 | - ->addColumn('housenumber', function ($addresses) use ($clientId) { |
|
39 | + ->addColumn('housenumber', function($addresses) use ($clientId) { |
|
40 | 40 | return $addresses->housenumber.$addresses->housenumber_suffix; |
41 | 41 | }) |
42 | - ->addColumn('delivery', function ($addresses) { |
|
42 | + ->addColumn('delivery', function($addresses) { |
|
43 | 43 | if ($addresses->clientDeliveryAddress()->count()) { |
44 | 44 | return '<span class="glyphicon glyphicon-ok icon-green"></span>'; |
45 | 45 | } |
@@ -48,14 +48,14 @@ discard block |
||
48 | 48 | |
49 | 49 | }) |
50 | 50 | |
51 | - ->addColumn('bill', function ($addresses) { |
|
51 | + ->addColumn('bill', function($addresses) { |
|
52 | 52 | if ($addresses->clientBillAddress()->count()) { |
53 | 53 | return '<span class="glyphicon glyphicon-ok icon-green"></span>'; |
54 | 54 | } |
55 | 55 | |
56 | 56 | return '<span class="glyphicon glyphicon-remove icon-red"></span>'; |
57 | 57 | }) |
58 | - ->addColumn('action', function ($addresses) use ($clientId) { |
|
58 | + ->addColumn('action', function($addresses) use ($clientId) { |
|
59 | 59 | $deleteLink = Form::deleteajax(url()->route('client.addresses.destroy', array('clientId' => $clientId, 'clientAddressId' => $addresses->id)), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
60 | 60 | $links = '<a href="'.url()->route('client.addresses.edit', array('clientId' => $clientId, 'clientAddressId' => $addresses->id)).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
61 | 61 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | |
77 | 77 | public function store(Request $request, $clientId) |
78 | 78 | { |
79 | - $result = ClientService::createAddress($request->all(), $clientId); |
|
79 | + $result = ClientService::createAddress($request->all(), $clientId); |
|
80 | 80 | return ClientService::notificationRedirect(array('client.addresses.index', $clientId), $result, 'The client adress is inserted.'); |
81 | 81 | } |
82 | 82 | |
@@ -88,13 +88,13 @@ discard block |
||
88 | 88 | |
89 | 89 | public function update(Request $request, $clientId, $id) |
90 | 90 | { |
91 | - $result = ClientService::editAddress($clientId, $id, $request->all()); |
|
91 | + $result = ClientService::editAddress($clientId, $id, $request->all()); |
|
92 | 92 | return ClientService::notificationRedirect(array('client.addresses.index', $clientId), $result, 'The client adress is updated.'); |
93 | 93 | } |
94 | 94 | |
95 | 95 | public function destroy($clientId, $id) |
96 | 96 | { |
97 | - $result = ClientService::destroyAddress($id); |
|
97 | + $result = ClientService::destroyAddress($id); |
|
98 | 98 | |
99 | 99 | if ($result) { |
100 | 100 | Notification::success('The client address is deleted.'); |
@@ -41,19 +41,19 @@ discard block |
||
41 | 41 | |
42 | 42 | |
43 | 43 | $query = $this->productAmountSeries->getModel()->select( |
44 | - ['id', 'series_start', 'series_value', 'active','series_max'] |
|
44 | + ['id', 'series_start', 'series_value', 'active', 'series_max'] |
|
45 | 45 | )->where('product_id', '=', $productId); |
46 | 46 | |
47 | 47 | $datatables = Datatables::of($query) |
48 | 48 | |
49 | - ->addColumn('active', function ($query) { |
|
49 | + ->addColumn('active', function($query) { |
|
50 | 50 | if ($query->active) { |
51 | 51 | return '<a href="#" class="change-active" data-url="/admin/html-block/change-active/'.$query->id.'"><span class="glyphicon glyphicon-ok icon-green"></span></a>'; |
52 | 52 | } |
53 | 53 | |
54 | 54 | return '<a href="#" class="change-active" data-url="/admin/html-block/change-active/'.$query->id.'"><span class="glyphicon glyphicon-remove icon-red"></span></a>'; |
55 | 55 | }) |
56 | - ->addColumn('action', function ($query) use ($productId) { |
|
56 | + ->addColumn('action', function($query) use ($productId) { |
|
57 | 57 | $deleteLink = Form::deleteajax(url()->route('product.product-amount-series.destroy', array('productId' => $productId, 'id' => $query->id)), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
58 | 58 | $links = '<a href="'.url()->route('product.product-amount-series.edit', array('productId' => $productId, 'id' => $query->id)).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
59 | 59 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | public function store(Request $request, $productId) |
88 | 88 | { |
89 | - $result = $this->productAmountSeries->create($request->all(), $productId); |
|
89 | + $result = $this->productAmountSeries->create($request->all(), $productId); |
|
90 | 90 | |
91 | 91 | if (isset($result->id)) { |
92 | 92 | Notification::success('The product amount series is updated.'); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | public function update(Request $request, $productId, $id) |
118 | 118 | { |
119 | - $result = $this->productAmountSeries->updateById($request->all(), $productId, $id); |
|
119 | + $result = $this->productAmountSeries->updateById($request->all(), $productId, $id); |
|
120 | 120 | |
121 | 121 | if (!$result->id) { |
122 | 122 | return redirect()->back()->withInput()->withErrors($result->errors()->all()); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | public function destroy($productId, $id) |
130 | 130 | { |
131 | - $result = $this->productAmountSeries->destroy($id); |
|
131 | + $result = $this->productAmountSeries->destroy($id); |
|
132 | 132 | |
133 | 133 | if ($result) { |
134 | 134 | Notification::success('The product amount series is deleted.'); |