@@ -199,26 +199,26 @@ |
||
| 199 | 199 | switch ($request->input('type')) { |
| 200 | 200 | case 'text': |
| 201 | 201 | $array = json_decode($result, true); |
| 202 | - $response = ['type' => 'success', |
|
| 203 | - 'message' => 'OTP has been resent to '.$number.'.Please Enter the OTP to login!!', ]; |
|
| 202 | + $response = ['type' => 'success', |
|
| 203 | + 'message' => 'OTP has been resent to '.$number.'.Please Enter the OTP to login!!', ]; |
|
| 204 | 204 | |
| 205 | 205 | break; |
| 206 | 206 | |
| 207 | 207 | case 'voice': |
| 208 | 208 | $array = json_decode($result, true); |
| 209 | 209 | $response = ['type' => 'success', |
| 210 | - 'message' => 'Voice call has been sent to '.$number.'.Please Enter the OTP received on the call to login!!', ]; |
|
| 210 | + 'message' => 'Voice call has been sent to '.$number.'.Please Enter the OTP received on the call to login!!', ]; |
|
| 211 | 211 | break; |
| 212 | 212 | |
| 213 | 213 | default: |
| 214 | 214 | $array = json_decode($result, true); |
| 215 | 215 | $response = ['type' => 'success', |
| 216 | - 'message' => 'Voice call has been sent to '.$number.'.Please Enter the OTP received on the call to login!!', ]; |
|
| 216 | + 'message' => 'Voice call has been sent to '.$number.'.Please Enter the OTP received on the call to login!!', ]; |
|
| 217 | 217 | break; |
| 218 | 218 | |
| 219 | 219 | } |
| 220 | 220 | |
| 221 | - return response()->json($response); |
|
| 221 | + return response()->json($response); |
|
| 222 | 222 | } catch (\Exception $ex) { |
| 223 | 223 | $result = [$ex->getMessage()]; |
| 224 | 224 | |
@@ -119,25 +119,25 @@ discard block |
||
| 119 | 119 | |
| 120 | 120 | return\ DataTables::of($new_product) |
| 121 | 121 | |
| 122 | - ->addColumn('checkbox', function ($model) { |
|
| 122 | + ->addColumn('checkbox', function($model) { |
|
| 123 | 123 | return "<input type='checkbox' class='product_checkbox' |
| 124 | 124 | value=".$model->id.' name=select[] id=check>'; |
| 125 | 125 | }) |
| 126 | - ->addColumn('name', function ($model) { |
|
| 126 | + ->addColumn('name', function($model) { |
|
| 127 | 127 | return ucfirst($model->name); |
| 128 | 128 | }) |
| 129 | - ->addColumn('image', function ($model) { |
|
| 129 | + ->addColumn('image', function($model) { |
|
| 130 | 130 | // return $model->image; |
| 131 | 131 | return "<img src= '$model->image' + height=\"80\"/>"; |
| 132 | 132 | }) |
| 133 | - ->addColumn('type', function ($model) { |
|
| 133 | + ->addColumn('type', function($model) { |
|
| 134 | 134 | if ($this->type->where('id', $model->type)->first()) { |
| 135 | 135 | return $this->type->where('id', $model->type)->first()->name; |
| 136 | 136 | } else { |
| 137 | 137 | return 'Not available'; |
| 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) { |
@@ -472,7 +472,7 @@ discard block |
||
| 472 | 472 | $product = $this->product->where('id', $id)->first(); |
| 473 | 473 | if ($product) { |
| 474 | 474 | $licenseStatus = StatusSetting::pluck('license_status')->first(); |
| 475 | - if($licenseStatus ==1) { |
|
| 475 | + if ($licenseStatus == 1) { |
|
| 476 | 476 | $this->licensing->deleteProductFromAPL($product); |
| 477 | 477 | } |
| 478 | 478 | $product->delete(); |
@@ -193,7 +193,8 @@ discard block |
||
| 193 | 193 | $this->product_upload->save(); |
| 194 | 194 | $this->product->where('id', $product_id->id)->update(['version'=>$request->input('version')]); |
| 195 | 195 | $autoUpdateStatus = StatusSetting::pluck('update_settings')->first(); |
| 196 | - if ($autoUpdateStatus == 1) { //If License Setting Status is on,Add Product to the License Manager |
|
| 196 | + if ($autoUpdateStatus == 1) { |
|
| 197 | +//If License Setting Status is on,Add Product to the License Manager |
|
| 197 | 198 | $updateClassObj = new \App\Http\Controllers\AutoUpdate\AutoUpdateController(); |
| 198 | 199 | $addProductToAutoUpdate = $updateClassObj->addNewVersion($product_id->id, $request->input('version'), $request->input('filename'), '1'); |
| 199 | 200 | } |
@@ -284,7 +285,8 @@ discard block |
||
| 284 | 285 | |
| 285 | 286 | try { |
| 286 | 287 | $licenseStatus = StatusSetting::pluck('license_status')->first(); |
| 287 | - if ($licenseStatus == 1) { //If License Setting Status is on,Add Product to the License Manager |
|
| 288 | + if ($licenseStatus == 1) { |
|
| 289 | +//If License Setting Status is on,Add Product to the License Manager |
|
| 288 | 290 | $addProductToLicensing = $this->licensing->addNewProduct($input['name'], $input['product_sku']); |
| 289 | 291 | } |
| 290 | 292 | $updateCont = new \App\Http\Controllers\AutoUpdate\AutoUpdateController(); |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | $url = $this->url; |
| 102 | 102 | $api_key_secret = $this->api_key_secret; |
| 103 | 103 | $productId = $this->searchProductId($product->product_sku); |
| 104 | - $productTitle = $product->name; |
|
| 104 | + $productTitle = $product->name; |
|
| 105 | 105 | $productSku = $product->sku; |
| 106 | 106 | $delProduct = $this->postCurl($url, "api_key_secret=$api_key_secret&api_function=products_edit |
| 107 | 107 | &product_id=$productId&product_title=$productTitle&product_sku=$productSku&product_status=1&delete_record=1"); |