@@ -119,7 +119,7 @@ |
||
| 119 | 119 | if ($product->require_domain == 1) { |
| 120 | 120 | $field .= "<div class='col-md-4 form-group'> |
| 121 | 121 | <label class='required'>"./* @scrutinizer ignore-type */ |
| 122 | - \Lang::get('message.domain')."</label> |
|
| 122 | + \Lang::get('message.domain')."</label> |
|
| 123 | 123 | <input type='text' name='domain' class='form-control' |
| 124 | 124 | id='domain' placeholder='http://example.com'> |
| 125 | 125 | </div>"; |
@@ -19,28 +19,28 @@ |
||
| 19 | 19 | ->get(); |
| 20 | 20 | |
| 21 | 21 | return \DataTables::of($new_upload) |
| 22 | - ->addColumn('checkbox', function ($model) { |
|
| 22 | + ->addColumn('checkbox', function($model) { |
|
| 23 | 23 | return "<input type='checkbox' class='upload_checkbox' value=".$model->id.' name=select[] id=checks>'; |
| 24 | 24 | }) |
| 25 | 25 | |
| 26 | - ->addColumn('product_id', function ($model) { |
|
| 26 | + ->addColumn('product_id', function($model) { |
|
| 27 | 27 | return ucfirst($this->product->where('id', $model->product_id)->first()->name); |
| 28 | 28 | }) |
| 29 | 29 | |
| 30 | - ->addColumn('title', function ($model) { |
|
| 30 | + ->addColumn('title', function($model) { |
|
| 31 | 31 | return ucfirst($model->title); |
| 32 | 32 | }) |
| 33 | - ->addColumn('description', function ($model) { |
|
| 33 | + ->addColumn('description', function($model) { |
|
| 34 | 34 | return ucfirst($model->description); |
| 35 | 35 | }) |
| 36 | - ->addColumn('version', function ($model) { |
|
| 36 | + ->addColumn('version', function($model) { |
|
| 37 | 37 | return $model->version; |
| 38 | 38 | }) |
| 39 | 39 | |
| 40 | - ->addColumn('file', function ($model) { |
|
| 40 | + ->addColumn('file', function($model) { |
|
| 41 | 41 | return $model->file; |
| 42 | 42 | }) |
| 43 | - ->addColumn('action', function ($model) { |
|
| 43 | + ->addColumn('action', function($model) { |
|
| 44 | 44 | return '<p><a href='.url('edit-upload/'.$model->id). |
| 45 | 45 | " class='btn btn-sm btn-primary btn-xs'><i class='fa fa-edit' |
| 46 | 46 | style='color:white;'> </i> Edit</a> </p>"; |
@@ -76,7 +76,8 @@ |
||
| 76 | 76 | $file_upload = ProductUpload::find($id); |
| 77 | 77 | $file_upload->where('id', $id)->update(['title'=>$request->input('title'), 'description'=>$request->input('description'), 'version'=> $request->input('version')]); |
| 78 | 78 | $autoUpdateStatus = StatusSetting::pluck('update_settings')->first(); |
| 79 | - if ($autoUpdateStatus == 1) { //If License Setting Status is on,Add Product to the AutoUpdate Script |
|
| 79 | + if ($autoUpdateStatus == 1) { |
|
| 80 | +//If License Setting Status is on,Add Product to the AutoUpdate Script |
|
| 80 | 81 | $productSku = $file_upload->product->product_sku; |
| 81 | 82 | $updateClassObj = new \App\Http\Controllers\AutoUpdate\AutoUpdateController(); |
| 82 | 83 | $addProductToAutoUpdate = $updateClassObj->editVersion($request->input('version'), $productSku); |