@@ -118,18 +118,18 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | return\ DataTables::of($new_product) |
| 120 | 120 | |
| 121 | - ->addColumn('checkbox', function ($model) { |
|
| 121 | + ->addColumn('checkbox', function($model) { |
|
| 122 | 122 | return "<input type='checkbox' class='product_checkbox' |
| 123 | 123 | value=".$model->id.' name=select[] id=check>'; |
| 124 | 124 | }) |
| 125 | - ->addColumn('name', function ($model) { |
|
| 125 | + ->addColumn('name', function($model) { |
|
| 126 | 126 | return ucfirst($model->name); |
| 127 | 127 | }) |
| 128 | - ->addColumn('image', function ($model) { |
|
| 128 | + ->addColumn('image', function($model) { |
|
| 129 | 129 | // return $model->image; |
| 130 | 130 | return "<img src= '$model->image' + height=\"80\"/>"; |
| 131 | 131 | }) |
| 132 | - ->addColumn('type', function ($model) { |
|
| 132 | + ->addColumn('type', function($model) { |
|
| 133 | 133 | if ($this->type->where('id', $model->type)->first()) { |
| 134 | 134 | return $this->type->where('id', $model->type)->first()->name; |
| 135 | 135 | } else { |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | } |
| 138 | 138 | }) |
| 139 | 139 | |
| 140 | - ->addColumn('group', function ($model) { |
|
| 140 | + ->addColumn('group', function($model) { |
|
| 141 | 141 | if ($this->group->where('id', $model->group)->first()) { |
| 142 | 142 | return $this->group->where('id', $model->group)->first()->name; |
| 143 | 143 | } else { |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | } |
| 146 | 146 | }) |
| 147 | 147 | |
| 148 | - ->addColumn('Action', function ($model) { |
|
| 148 | + ->addColumn('Action', function($model) { |
|
| 149 | 149 | $permissions = LicensePermissionsController::getPermissionsForProduct($model->id); |
| 150 | 150 | $url = ''; |
| 151 | 151 | if ($permissions['downloadPermission'] == 1) { |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | // Save file Info in Modal popup |
| 172 | 172 | public function save(Request $request) |
| 173 | 173 | { |
| 174 | - $this->validate($request,[ |
|
| 174 | + $this->validate($request, [ |
|
| 175 | 175 | 'producttitle' => 'required', |
| 176 | 176 | 'version' => 'required', |
| 177 | 177 | 'filename' => 'required', |