@@ -20,28 +20,28 @@ discard block |
||
20 | 20 | ->get(); |
21 | 21 | |
22 | 22 | return \DataTables::of($new_upload) |
23 | - ->addColumn('checkbox', function ($model) { |
|
23 | + ->addColumn('checkbox', function($model) { |
|
24 | 24 | return "<input type='checkbox' class='upload_checkbox' value=".$model->id.' name=select[] id=checks>'; |
25 | 25 | }) |
26 | 26 | |
27 | - ->addColumn('product_id', function ($model) { |
|
27 | + ->addColumn('product_id', function($model) { |
|
28 | 28 | return ucfirst($this->product->where('id', $model->product_id)->first()->name); |
29 | 29 | }) |
30 | 30 | |
31 | - ->addColumn('title', function ($model) { |
|
31 | + ->addColumn('title', function($model) { |
|
32 | 32 | return ucfirst($model->title); |
33 | 33 | }) |
34 | - ->addColumn('description', function ($model) { |
|
34 | + ->addColumn('description', function($model) { |
|
35 | 35 | return ucfirst($model->description); |
36 | 36 | }) |
37 | - ->addColumn('version', function ($model) { |
|
37 | + ->addColumn('version', function($model) { |
|
38 | 38 | return $model->version; |
39 | 39 | }) |
40 | 40 | |
41 | - ->addColumn('file', function ($model) { |
|
41 | + ->addColumn('file', function($model) { |
|
42 | 42 | return $model->file; |
43 | 43 | }) |
44 | - ->addColumn('action', function ($model) { |
|
44 | + ->addColumn('action', function($model) { |
|
45 | 45 | return '<p><a href='.url('edit-upload/'.$model->id). |
46 | 46 | " class='btn btn-sm btn-primary btn-xs'><i class='fa fa-edit' |
47 | 47 | style='color:white;'> </i> Edit</a> </p>"; |
@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | */ |
61 | 61 | public function editProductUpload($id) |
62 | 62 | { |
63 | - $model = ProductUpload::where('id',$id)->first(); |
|
63 | + $model = ProductUpload::where('id', $id)->first(); |
|
64 | 64 | $selectedProduct = $model->product->name; |
65 | - return view('themes.default1.product.product.edit-upload-option',compact('model','selectedProduct')); |
|
65 | + return view('themes.default1.product.product.edit-upload-option', compact('model', 'selectedProduct')); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | //Update the File Info |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $updateClassObj = new \App\Http\Controllers\AutoUpdate\AutoUpdateController(); |
83 | 83 | $addProductToAutoUpdate = $updateClassObj->editVersion($request->input('version'), $productSku); |
84 | 84 | } |
85 | - return redirect()->back()->with('success','Product Updated Successfully'); |
|
85 | + return redirect()->back()->with('success', 'Product Updated Successfully'); |
|
86 | 86 | } catch (\Exception $ex) { |
87 | 87 | app('log')->error($e->getMessage()); |
88 | 88 | Bugsnag::notifyException($e); |