Completed
Push — development ( b5300f...69f0e0 )
by Bhanu
44:12 queued 30:06
created
app/Http/Controllers/Licence/ServiceController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     {
33 33
         return \Datatable::collection($this->service->get())
34 34
                         ->showColumns('name')
35
-                        ->addColumn('action', function ($model) {
35
+                        ->addColumn('action', function($model) {
36 36
                             return '<a href='.url('services/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>";
37 37
                         })
38 38
                         ->searchColumns('name')
Please login to merge, or discard this patch.
app/Http/Controllers/Licence/LicenceController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     {
38 38
         return \Datatable::collection($this->licence->get())
39 39
                         ->showColumns('name', 'description', 'number_of_sla', 'price')
40
-                        ->addColumn('action', function ($model) {
40
+                        ->addColumn('action', function($model) {
41 41
                             return '<a href='.url('licences/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>";
42 42
                         })
43 43
                         ->searchColumns('description')
Please login to merge, or discard this patch.
app/Http/Controllers/Order/SubscriptionController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         //dd($this->invoice->get());
48 48
         return \Datatable::collection($this->subscription->get())
49 49
 
50
-                        ->addColumn('user_id', function ($model) {
50
+                        ->addColumn('user_id', function($model) {
51 51
                             $user = $model->user()->first();
52 52
                             $first = $user->first_name;
53 53
                             $last = $user->last_name;
@@ -55,18 +55,18 @@  discard block
 block discarded – undo
55 55
 
56 56
                             return '<a href='.url('clients/'.$id).'>'.ucfirst($first).' '.ucfirst($last).'</a>';
57 57
                         })
58
-                        ->addColumn('plan_id', function ($model) {
58
+                        ->addColumn('plan_id', function($model) {
59 59
                             $name = $this->plan->where('id', $model->plan_id)->first()->name;
60 60
 
61 61
                             return $name;
62 62
                         })
63
-                        ->addColumn('order_id', function ($model) {
63
+                        ->addColumn('order_id', function($model) {
64 64
                             $name = $this->order->where('id', $model->order_id)->first()->id;
65 65
 
66 66
                             return $name;
67 67
                         })
68 68
                         ->showColumns('ends_at')
69
-                        ->addColumn('action', function ($model) {
69
+                        ->addColumn('action', function($model) {
70 70
                             return '<a href='.url('subscriptions/'.$model->id)." class='btn btn-sm btn-primary'>View</a>";
71 71
                         })
72 72
                         ->searchColumns('ends_at')
Please login to merge, or discard this patch.
app/Box.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     public function startsWith($letter)
52 52
     {
53
-        return array_filter($this->items, function ($item) use ($letter) {
53
+        return array_filter($this->items, function($item) use ($letter) {
54 54
             return stripos($item, $letter) === 0;
55 55
         });
56 56
     }
Please login to merge, or discard this patch.
app/Http/Kernel.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
         \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
18 18
         \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
19 19
         // \App\Http\Middleware\TrimStrings::class,
20
-          \Illuminate\Session\Middleware\StartSession::class,
21
-             \Illuminate\View\Middleware\ShareErrorsFromSession::class,
20
+            \Illuminate\Session\Middleware\StartSession::class,
21
+                \Illuminate\View\Middleware\ShareErrorsFromSession::class,
22 22
         // \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
23 23
     ];
24 24
 
@@ -29,21 +29,21 @@  discard block
 block discarded – undo
29 29
      */
30 30
     protected $middlewareGroups = [
31 31
         'web' => [
32
-             \App\Http\Middleware\Install::class,
32
+                \App\Http\Middleware\Install::class,
33 33
             \App\Http\Middleware\EncryptCookies::class,
34 34
             \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
35 35
             // \Illuminate\Session\Middleware\StartSession::class,
36 36
             // \Illuminate\Session\Middleware\AuthenticateSession::class,
37 37
             // \Illuminate\View\Middleware\ShareErrorsFromSession::class,
38
-           // \App\Http\Middleware\VerifyCsrfToken::class,
38
+            // \App\Http\Middleware\VerifyCsrfToken::class,
39 39
             \Illuminate\Routing\Middleware\SubstituteBindings::class,
40 40
 
41
-             // \App\Http\Middleware\IsInstalled::class,
41
+                // \App\Http\Middleware\IsInstalled::class,
42 42
 
43 43
         ],
44
-         'admin'        => [\App\Http\Middleware\Admin::class],
45
-          'guest'       => [\App\Http\Middleware\RedirectIfAuthenticated::class],
46
-           'auth'       => [\Illuminate\Auth\Middleware\Authenticate::class],
44
+            'admin'        => [\App\Http\Middleware\Admin::class],
45
+            'guest'       => [\App\Http\Middleware\RedirectIfAuthenticated::class],
46
+            'auth'       => [\Illuminate\Auth\Middleware\Authenticate::class],
47 47
         'auth.basic'    => [\Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class],
48 48
 
49 49
         'api' => [
Please login to merge, or discard this patch.
app/Http/Controllers/Payment/TaxController.php 2 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -106,27 +106,27 @@
 block discarded – undo
106 106
     public function getTaxTable()
107 107
     {
108 108
         return \DataTables::of(TaxByState::select('id', 'state', 'c_gst', 's_gst', 'i_gst', 'ut_gst')->get())
109
-                         ->addColumn('id', function ($model) {
110
-                             return $model->id;
111
-                         })
112
-
113
-                         ->addColumn('state', function ($model) {
114
-                             return ucfirst($model->state);
115
-                         })
116
-                         ->addColumn('c_gst', function ($model) {
117
-                             return ucfirst($model->c_gst);
118
-                         })
119
-                         ->addColumn('s_gst', function ($model) {
120
-                             return ucfirst($model->s_gst);
121
-                         })
122
-                         ->addColumn('i_gst', function ($model) {
123
-                             return ucfirst($model->i_gst);
124
-                         })
125
-                         ->addColumn('ut_gst', function ($model) {
126
-                             return ucfirst($model->ut_gst);
127
-                         })
128
-                          ->rawColumns(['id', 'state',  'c_gst', 's_gst', 'i_gst', 'ut_gst'])
129
-                          ->make(true);
109
+                            ->addColumn('id', function ($model) {
110
+                                return $model->id;
111
+                            })
112
+
113
+                            ->addColumn('state', function ($model) {
114
+                                return ucfirst($model->state);
115
+                            })
116
+                            ->addColumn('c_gst', function ($model) {
117
+                                return ucfirst($model->c_gst);
118
+                            })
119
+                            ->addColumn('s_gst', function ($model) {
120
+                                return ucfirst($model->s_gst);
121
+                            })
122
+                            ->addColumn('i_gst', function ($model) {
123
+                                return ucfirst($model->i_gst);
124
+                            })
125
+                            ->addColumn('ut_gst', function ($model) {
126
+                                return ucfirst($model->ut_gst);
127
+                            })
128
+                            ->rawColumns(['id', 'state',  'c_gst', 's_gst', 'i_gst', 'ut_gst'])
129
+                            ->make(true);
130 130
     }
131 131
 
132 132
     /**
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -70,33 +70,33 @@  discard block
 block discarded – undo
70 70
     public function getTax()
71 71
     {
72 72
         return \DataTables::of($this->tax->select('id', 'tax_classes_id', 'name', 'country', 'state', 'rate')->get())
73
-                            ->addColumn('checkbox', function ($model) {
73
+                            ->addColumn('checkbox', function($model) {
74 74
                                 return "<input type='checkbox' class='tax_checkbox' value=".$model->id.' name=select[] id=check>';
75 75
                             })
76
-                            ->addColumn('tax_classes_id', function ($model) {
76
+                            ->addColumn('tax_classes_id', function($model) {
77 77
                                 return ucfirst($this->tax_class->where('id', $model->tax_classes_id)->first()->name);
78 78
                             })
79
-                            ->addColumn('name', function ($model) {
79
+                            ->addColumn('name', function($model) {
80 80
                                 return ucfirst($model->name);
81 81
                             })
82 82
 
83 83
                             // ->showColumns('name', 'level')
84
-                            ->addColumn('country', function ($model) {
84
+                            ->addColumn('country', function($model) {
85 85
                                 if ($this->country->where('country_code_char2', $model->country)->first()) {
86 86
                                     return ucfirst($this->country->where('country_code_char2', $model->country)->first()->country_name);
87 87
                                 }
88 88
                             })
89
-                            ->addColumn('state', function ($model) {
89
+                            ->addColumn('state', function($model) {
90 90
                                 if ($this->state->where('state_subdivision_code', $model->state)->first()) {
91 91
                                     return $this->state->where('state_subdivision_code', $model->state)->first()->state_subdivision_name;
92 92
                                 }
93 93
                             })
94
-                            ->addColumn('rate', function ($model) {
94
+                            ->addColumn('rate', function($model) {
95 95
                                 return $model->rate;
96 96
                             })
97 97
 
98 98
                             // ->showColumns('rate')
99
-                            ->addColumn('action', function ($model) {
99
+                            ->addColumn('action', function($model) {
100 100
                                 return '<a href='.url('tax/'.$model->id.'/edit')." class='btn btn-sm btn-primary btn-xs'><i class='fa fa-edit' style='color:white;'> </i>&nbsp;&nbsp;Edit</a>";
101 101
                             })
102 102
                             ->rawColumns(['checkbox', 'tax_classes_id', 'name', 'country', 'state', 'rate', 'action'])
@@ -106,26 +106,26 @@  discard block
 block discarded – undo
106 106
     public function getTaxTable()
107 107
     {
108 108
         return \DataTables::of(TaxByState::select('id', 'state', 'c_gst', 's_gst', 'i_gst', 'ut_gst')->get())
109
-                         ->addColumn('id', function ($model) {
109
+                         ->addColumn('id', function($model) {
110 110
                              return $model->id;
111 111
                          })
112 112
 
113
-                         ->addColumn('state', function ($model) {
113
+                         ->addColumn('state', function($model) {
114 114
                              return ucfirst($model->state);
115 115
                          })
116
-                         ->addColumn('c_gst', function ($model) {
116
+                         ->addColumn('c_gst', function($model) {
117 117
                              return ucfirst($model->c_gst);
118 118
                          })
119
-                         ->addColumn('s_gst', function ($model) {
119
+                         ->addColumn('s_gst', function($model) {
120 120
                              return ucfirst($model->s_gst);
121 121
                          })
122
-                         ->addColumn('i_gst', function ($model) {
122
+                         ->addColumn('i_gst', function($model) {
123 123
                              return ucfirst($model->i_gst);
124 124
                          })
125
-                         ->addColumn('ut_gst', function ($model) {
125
+                         ->addColumn('ut_gst', function($model) {
126 126
                              return ucfirst($model->ut_gst);
127 127
                          })
128
-                          ->rawColumns(['id', 'state',  'c_gst', 's_gst', 'i_gst', 'ut_gst'])
128
+                          ->rawColumns(['id', 'state', 'c_gst', 's_gst', 'i_gst', 'ut_gst'])
129 129
                           ->make(true);
130 130
     }
131 131
 
Please login to merge, or discard this patch.
app/Http/Controllers/Payment/PromotionController.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
                         ->addColumn('action', function ($model) {
87 87
                             return '<a href='.url('promotions/'.$model->id.'/edit')." class='btn btn-sm btn-primary btn-xs'><i class='fa fa-edit' style='color:white;'> </i>&nbsp;&nbsp;Edit</a>";
88 88
                         })
89
-                         ->rawColumns(['checkbox', 'code', 'products', 'action'])
89
+                            ->rawColumns(['checkbox', 'code', 'products', 'action'])
90 90
 
91 91
                         ->make(true);
92 92
     }
@@ -301,12 +301,12 @@  discard block
 block discarded – undo
301 301
 
302 302
             $userId = \Auth::user()->id;
303 303
             \Cart::update($productid, [
304
-           'id'        => $productid,
305
-           'price'     => $value,
306
-          'conditions' => $coupon,
304
+            'id'        => $productid,
305
+            'price'     => $value,
306
+            'conditions' => $coupon,
307 307
 
308
-           // new item price, price can also be a string format like so: '98.67'
309
-          ]);
308
+            // new item price, price can also be a string format like so: '98.67'
309
+            ]);
310 310
             $items = \Cart::getContent();
311 311
             \Session::put('items', $items);
312 312
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,16 +59,16 @@  discard block
 block discarded – undo
59 59
         $new_promotion = $this->promotion->select('code', 'type', 'id')->get();
60 60
 
61 61
         return\ DataTables::of($new_promotion)
62
-                            ->addColumn('checkbox', function ($model) {
62
+                            ->addColumn('checkbox', function($model) {
63 63
                                 return "<input type='checkbox' class='promotion_checkbox' value=".$model->id.' name=select[] id=check>';
64 64
                             })
65
-                        ->addColumn('code', function ($model) {
65
+                        ->addColumn('code', function($model) {
66 66
                             return ucfirst($model->code);
67 67
                         })
68
-                        ->addColumn('type', function ($model) {
68
+                        ->addColumn('type', function($model) {
69 69
                             return $this->type->where('id', $model->type)->first()->name;
70 70
                         })
71
-                        ->addColumn('products', function ($model) {
71
+                        ->addColumn('products', function($model) {
72 72
                             $selected = $this->promoRelation->select('product_id')->where('promotion_id', $model->id)->get();
73 73
                             $result = [];
74 74
                             foreach ($selected as $key => $select) {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                                 return 'None';
81 81
                             }
82 82
                         })
83
-                        ->addColumn('action', function ($model) {
83
+                        ->addColumn('action', function($model) {
84 84
                             return '<a href='.url('promotions/'.$model->id.'/edit')." class='btn btn-sm btn-primary btn-xs'><i class='fa fa-edit' style='color:white;'> </i>&nbsp;&nbsp;Edit</a>";
85 85
                         })
86 86
                          ->rawColumns(['checkbox', 'code', 'products', 'action'])
Please login to merge, or discard this patch.
app/Http/Controllers/Payment/CurrencyController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,17 +33,17 @@
 block discarded – undo
33 33
     public function getCurrency()
34 34
     {
35 35
         return \DataTables::of($this->currency->select('name', 'id')->where('id', '!=', 1)->get())
36
-                        ->addColumn('checkbox', function ($model) {
36
+                        ->addColumn('checkbox', function($model) {
37 37
                             return "<input type='checkbox' class='currency_checkbox' value=".$model->id.' name=select[] id=check>';
38 38
                         })
39
-                        ->addColumn('name', function ($model) {
39
+                        ->addColumn('name', function($model) {
40 40
                             return $model->name;
41 41
                         })
42
-                        ->addColumn('base_conversion', function ($model) {
42
+                        ->addColumn('base_conversion', function($model) {
43 43
                             return $model->base_conversion;
44 44
                         })
45 45
                         // ->showColumns('name', 'base_conversion')
46
-                        ->addColumn('action', function ($model) {
46
+                        ->addColumn('action', function($model) {
47 47
                             //return "<a href=" . url('products/' . $model->id . '/edit') . " class='btn btn-sm btn-primary'>Edit</a>";
48 48
                             //return "<a href=#create class='btn btn-primary pull-right' data-toggle=modal data-target=#edit".$model->id.">".\Lang::get('message.create')."</a>".  include base_path(). '/resources/views/themes/default1/payment/currency/edit.blade.php';
49 49
 
Please login to merge, or discard this patch.
app/Http/Controllers/Product/BundleController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,11 +47,11 @@  discard block
 block discarded – undo
47 47
     public function getBundles()
48 48
     {
49 49
         return \Datatable::collection($this->bundle->select('id', 'name', 'valid_from', 'valid_till', 'uses', 'maximum_uses')->get())
50
-                        ->addColumn('#', function ($model) {
50
+                        ->addColumn('#', function($model) {
51 51
                             return "<input type='checkbox' value=".$model->id.' name=select[] id=check>';
52 52
                         })
53 53
                         ->showColumns('name', 'valid_from', 'valid_till', 'uses', 'maximum_uses')
54
-                        ->addColumn('item', function ($model) {
54
+                        ->addColumn('item', function($model) {
55 55
                             $name = $this->relation->where('bundle_id', $model->id)->pluck('product_id');
56 56
                             //dd($name);
57 57
                             $result = [];
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                             //dd($result);
62 62
                             return implode(',', $result);
63 63
                         })
64
-                        ->addColumn('action', function ($model) {
64
+                        ->addColumn('action', function($model) {
65 65
                             return '<a href='.url('bundles/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>";
66 66
                         })
67 67
                         ->searchColumns('name', 'item')
Please login to merge, or discard this patch.