@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $symbol = Currency::where('code', $currency)->pluck('symbol')->first(); |
| 37 | 37 | $orders = $order->where('client', $clientid)->get(); |
| 38 | 38 | |
| 39 | - return view('themes.default1.invoice.newpayment', compact('clientid', 'client', 'invoices', 'orders', |
|
| 39 | + return view('themes.default1.invoice.newpayment', compact('clientid', 'client', 'invoices', 'orders', |
|
| 40 | 40 | 'invoiceSum', 'amountReceived', 'pendingAmount', 'currency', 'symbol')); |
| 41 | 41 | } catch (Exception $ex) { |
| 42 | 42 | return redirect()->back()->with('fails', $ex->getMessage()); |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | $invoicAmount = $request->invoiceAmount; |
| 113 | 113 | $amtToCredit = $request->amtToCredit; |
| 114 | 114 | $payment_status = 'success'; |
| 115 | - $payment = $this->multiplePayment($clientid,$invoiceChecked, $payment_method, |
|
| 115 | + $payment = $this->multiplePayment($clientid, $invoiceChecked, $payment_method, |
|
| 116 | 116 | $payment_date, $totalAmt, $invoicAmount, $amtToCredit, $payment_status); |
| 117 | 117 | $response = ['type' => 'success', 'message' => 'Payment Updated Successfully']; |
| 118 | 118 | |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | } |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | - public function multiplePayment($clientid,$invoiceChecked, $payment_method, |
|
| 132 | + public function multiplePayment($clientid, $invoiceChecked, $payment_method, |
|
| 133 | 133 | $payment_date, $totalAmt, $invoicAmount, $amtToCredit, $payment_status) |
| 134 | 134 | { |
| 135 | 135 | try { |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | $invoicAmount = $request->invoiceAmount; |
| 205 | 205 | $amtToCredit = $request->amtToCredit; |
| 206 | 206 | $payment_status = 'success'; |
| 207 | - $payment = $this->updatePaymentByInvoice($clientid,$invoiceChecked, $payment_method, |
|
| 207 | + $payment = $this->updatePaymentByInvoice($clientid, $invoiceChecked, $payment_method, |
|
| 208 | 208 | $payment_date, $totalAmt, $invoicAmount, $amtToCredit, $payment_status); |
| 209 | 209 | $response = ['type' => 'success', 'message' => 'Payment Updated Successfully']; |
| 210 | 210 | |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | } |
| 219 | 219 | } |
| 220 | 220 | |
| 221 | - public function updatePaymentByInvoice($clientid,$invoiceChecked, $payment_method, |
|
| 221 | + public function updatePaymentByInvoice($clientid, $invoiceChecked, $payment_method, |
|
| 222 | 222 | $payment_date, $totalAmt, $invoicAmount, $amtToCredit, $payment_status) |
| 223 | 223 | { |
| 224 | 224 | try { |
@@ -44,20 +44,20 @@ discard block |
||
| 44 | 44 | $licenseType = LicenseType::select('id', 'name')->get(); |
| 45 | 45 | |
| 46 | 46 | return \DataTables::of($licenseType) |
| 47 | - ->addColumn('checkbox', function ($model) { |
|
| 47 | + ->addColumn('checkbox', function($model) { |
|
| 48 | 48 | return "<input type='checkbox' class='type_checkbox' |
| 49 | 49 | value=".$model->id.' name=select[] id=check>'; |
| 50 | 50 | }) |
| 51 | - ->addColumn('license_type', function ($model) { |
|
| 51 | + ->addColumn('license_type', function($model) { |
|
| 52 | 52 | return ucfirst($model->name); |
| 53 | 53 | }) |
| 54 | - ->addColumn('permissions', function ($model) { |
|
| 54 | + ->addColumn('permissions', function($model) { |
|
| 55 | 55 | $permissions = $model->permissions->pluck('permissions'); |
| 56 | 56 | $allPermissions = $this->showPermissions($permissions); |
| 57 | 57 | |
| 58 | 58 | return $allPermissions; |
| 59 | 59 | }) |
| 60 | - ->addColumn('action', function ($model) { |
|
| 60 | + ->addColumn('action', function($model) { |
|
| 61 | 61 | $selectedPermission = $model->permissions->pluck('id'); |
| 62 | 62 | |
| 63 | 63 | return "<p><button data-toggle='modal' |
@@ -167,10 +167,10 @@ discard block |
||
| 167 | 167 | $downloadPermission = 1; //Has Permission for Download |
| 168 | 168 | } |
| 169 | 169 | if ($permission == 'No Permissions') { |
| 170 | - $noPermissions = 1; //Has No Permission |
|
| 170 | + $noPermissions = 1; //Has No Permission |
|
| 171 | 171 | } |
| 172 | 172 | if ($permission == 'Allow Downloads Before Updates Expire') { |
| 173 | - $allowDownloadTillExpiry = 1; //allow download after Expiry |
|
| 173 | + $allowDownloadTillExpiry = 1; //allow download after Expiry |
|
| 174 | 174 | } |
| 175 | 175 | } |
| 176 | 176 | |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | use LogsActivity; |
| 11 | 11 | protected $table = 'products'; |
| 12 | 12 | protected $fillable = ['name', 'description', 'type', 'group', 'file', 'image', 'require_domain', 'category', |
| 13 | - 'can_modify_agent', 'can_modify_quantity', 'show_agent', 'tax_apply', 'show_product_quantity', 'hidden', 'auto_terminate', |
|
| 13 | + 'can_modify_agent', 'can_modify_quantity', 'show_agent', 'tax_apply', 'show_product_quantity', 'hidden', 'auto_terminate', |
|
| 14 | 14 | 'setup_order_placed', 'setup_first_payment', 'setup_accept_manually', |
| 15 | 15 | 'no_auto_setup', 'shoping_cart_link', 'process_url', 'github_owner', |
| 16 | 16 | 'github_repository', |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | protected static $logName = 'Product'; |
| 20 | 20 | |
| 21 | 21 | protected static $logAttributes = ['name', 'description', 'type', 'file', 'category', |
| 22 | - 'github_owner', 'github_repository', 'version', 'subscription', 'hidden', 'product_sku', ]; |
|
| 22 | + 'github_owner', 'github_repository', 'version', 'subscription', 'hidden', 'product_sku', ]; |
|
| 23 | 23 | |
| 24 | 24 | protected static $logOnlyDirty = true; |
| 25 | 25 | |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | |
| 89 | 89 | public function getImageAttribute($value) |
| 90 | 90 | { |
| 91 | - if (! $value) { |
|
| 91 | + if (!$value) { |
|
| 92 | 92 | $image = asset('common/images/No-image-found.jpg'); |
| 93 | 93 | } else { |
| 94 | 94 | $image = asset("common/images/$value"); |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | 'user_id', 'plan_id', 'order_id', 'deny_after_subscription', 'version', 'product_id', 'support_ends_at', ]; |
| 16 | 16 | protected $dates = ['ends_at']; |
| 17 | 17 | protected static $logName = 'Subscription'; |
| 18 | - protected static $logAttributes = ['ends_at', 'update_ends_at', 'support_ends_at', 'user_id', 'plan_id', 'order_id', 'version', 'product_id']; |
|
| 18 | + protected static $logAttributes = ['ends_at', 'update_ends_at', 'support_ends_at', 'user_id', 'plan_id', 'order_id', 'version', 'product_id']; |
|
| 19 | 19 | protected static $logOnlyDirty = true; |
| 20 | 20 | |
| 21 | 21 | public function getDescriptionForEvent(string $eventName): string |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i', $domain, $regs)) { |
| 24 | 24 | return $regs['domain']; |
| 25 | 25 | } |
| 26 | - if (! $domain) { |
|
| 26 | + if (!$domain) { |
|
| 27 | 27 | $domain = $pieces['path']; |
| 28 | 28 | } |
| 29 | 29 | |
@@ -136,7 +136,7 @@ |
||
| 136 | 136 | if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i', $domain, $regs)) { |
| 137 | 137 | return $regs['domain']; |
| 138 | 138 | } |
| 139 | - if (! $domain) { |
|
| 139 | + if (!$domain) { |
|
| 140 | 140 | $domain = $pieces['path']; |
| 141 | 141 | } |
| 142 | 142 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | protected function gate() |
| 35 | 35 | { |
| 36 | - Gate::define('viewHorizon', function ($user) { |
|
| 36 | + Gate::define('viewHorizon', function($user) { |
|
| 37 | 37 | return in_array($user->email, [ |
| 38 | 38 | $user->email, |
| 39 | 39 | ]); |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | public function handle($request, Closure $next) |
| 23 | 23 | { |
| 24 | - if (! config('database.DB_INSTALL')) { |
|
| 24 | + if (!config('database.DB_INSTALL')) { |
|
| 25 | 25 | return $next($request); |
| 26 | 26 | } |
| 27 | 27 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | { |
| 52 | 52 | $parsedUrl = parse_url($url); |
| 53 | 53 | |
| 54 | - if (! $parsedUrl) { |
|
| 54 | + if (!$parsedUrl) { |
|
| 55 | 55 | return ''; |
| 56 | 56 | } |
| 57 | 57 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | public function handle($request, Closure $next) |
| 18 | 18 | { |
| 19 | 19 | $env = base_path('.env'); |
| 20 | - if (! $this->alreadyInstalled()) { |
|
| 20 | + if (!$this->alreadyInstalled()) { |
|
| 21 | 21 | return $next($request); |
| 22 | 22 | } else { |
| 23 | 23 | if ($request->isJson()) { |