Completed
Push — development ( d6912b...911369 )
by Ashutosh
08:20
created
app/Http/Controllers/Product/ProductController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -118,18 +118,18 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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',
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
             $currency = $this->currency->pluck('name', 'code')->toArray();
333 333
             $group = $this->group->pluck('name', 'id')->toArray();
334 334
             $products = $this->product->pluck('name', 'id')->toArray();
335
-            $checkowner = Product::where('id',$id)->value('github_owner');
335
+            $checkowner = Product::where('id', $id)->value('github_owner');
336 336
             $periods = $this->period->pluck('name', 'days')->toArray();
337 337
             $url = $this->GetMyUrl();
338 338
             $cartUrl = $url.'/cart?id='.$id;
Please login to merge, or discard this patch.