@@ -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.'); |