@@ -22,10 +22,10 @@ discard block |
||
22 | 22 | if ($request->wantsJson()) { |
23 | 23 | |
24 | 24 | $query = ProductTagGroupService::getModel() |
25 | - ->select(['id','tag']) |
|
25 | + ->select(['id', 'tag']) |
|
26 | 26 | ->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id); |
27 | 27 | |
28 | - $datatables = \Datatables::of($query)->addColumn('action', function ($query) { |
|
28 | + $datatables = \Datatables::of($query)->addColumn('action', function($query) { |
|
29 | 29 | $deleteLink = \Form::deleteajax(url()->route('product-tag-group.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
30 | 30 | $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; |
31 | 31 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | public function store(Request $request) |
49 | 49 | { |
50 | - $result = ProductTagGroupService::create($request->all()); |
|
50 | + $result = ProductTagGroupService::create($request->all()); |
|
51 | 51 | return ProductTagGroupService::notificationRedirect('product-tag-group.index', $result, 'The product group tag was inserted.'); |
52 | 52 | } |
53 | 53 | |
@@ -63,13 +63,13 @@ discard block |
||
63 | 63 | |
64 | 64 | public function update(Request $request, $productTagGroupId) |
65 | 65 | { |
66 | - $result = ProductTagGroupService::updateById($request->all(), $productTagGroupId); |
|
66 | + $result = ProductTagGroupService::updateById($request->all(), $productTagGroupId); |
|
67 | 67 | return ProductTagGroupService::notificationRedirect('product-tag-group.index', $result, 'The product group tag was updated.'); |
68 | 68 | } |
69 | 69 | |
70 | 70 | public function destroy($productTagGroupId) |
71 | 71 | { |
72 | - $result = ProductTagGroupService::destroy($productTagGroupId); |
|
72 | + $result = ProductTagGroupService::destroy($productTagGroupId); |
|
73 | 73 | |
74 | 74 | if ($result) { |
75 | 75 | Notification::success('The product group tag was deleted.'); |
@@ -25,13 +25,13 @@ |
||
25 | 25 | |
26 | 26 | $datatables = Datatables::of($query) |
27 | 27 | |
28 | - ->addColumn('action', function ($query) { |
|
28 | + ->addColumn('action', function($query) { |
|
29 | 29 | $deleteLink = Form::deleteajax(url()->route('shop.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
30 | 30 | $links = '<a href="'.url()->route('shop.edit', $query->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
31 | 31 | return $links; |
32 | 32 | }) |
33 | 33 | |
34 | - ->addColumn('image', function ($query) { |
|
34 | + ->addColumn('image', function($query) { |
|
35 | 35 | if ($query->logo_file_name) { |
36 | 36 | return '<img src="http://shop.brulo.nl/files/'.$query->id.'/logo/'.$query->logo_file_name.'" />'; |
37 | 37 | } |