Completed
Push — development ( 6f9f18...b1cef6 )
by Ashutosh
10:23
created
app/Model/Order/Payment.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     protected $table = 'payments';
10 10
     protected $fillable = ['parent_id', 'invoice_id', 'amount',
11
-     'payment_method', 'user_id', 'payment_status', 'created_at','amt_to_credit' ];
11
+        'payment_method', 'user_id', 'payment_status', 'created_at','amt_to_credit' ];
12 12
 
13 13
     public function invoice()
14 14
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     protected $table = 'payments';
10 10
     protected $fillable = ['parent_id', 'invoice_id', 'amount',
11
-     'payment_method', 'user_id', 'payment_status', 'created_at','amt_to_credit' ];
11
+     'payment_method', 'user_id', 'payment_status', 'created_at', 'amt_to_credit'];
12 12
 
13 13
     public function invoice()
14 14
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Order/ExtendedBaseInvoiceController.php 5 patches
Indentation   +5 added lines, -9 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             $orders = $order->where('client', $clientid)->get();
36 36
 
37 37
             return view('themes.default1.invoice.newpayment', compact('clientid', 'client', 'invoices',  'orders',
38
-                  'invoiceSum', 'amountReceived', 'pendingAmount', 'currency'));
38
+                    'invoiceSum', 'amountReceived', 'pendingAmount', 'currency'));
39 39
         } catch (Exception $ex) {
40 40
             return redirect()->back()->with('fails', $ex->getMessage());
41 41
         }
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
     {
46 46
         dd('sad');
47 47
         $this->validate($request, [
48
-           'payment_date'  => 'required',
49
-           'payment_method'=> 'required',
50
-           'amount'        => 'required',
48
+            'payment_date'  => 'required',
49
+            'payment_method'=> 'required',
50
+            'amount'        => 'required',
51 51
         ]);
52 52
 
53 53
         try {
@@ -215,8 +215,4 @@  discard block
 block discarded – undo
215 215
             app('log')->error($ex->getMessage());
216 216
             Bugsnag::notifyException($ex);
217 217
 
218
-            return redirect()->back()->with('fails', $ex->getMessage());
219
-        }
220
-
221
-    }
222
-}
218
+            return redirect()->back()->with('fails', $ex->getMessage
223 219
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -215,8 +215,4 @@
 block discarded – undo
215 215
             app('log')->error($ex->getMessage());
216 216
             Bugsnag::notifyException($ex);
217 217
 
218
-            return redirect()->back()->with('fails', $ex->getMessage());
219
-        }
220
-
221
-    }
222
-}
218
+            return redirect()->back()->with('fails', $ex->getMessage
223 219
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +3 added lines, -7 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             $currency = $client->currency;
35 35
             $orders = $order->where('client', $clientid)->get();
36 36
 
37
-            return view('themes.default1.invoice.newpayment', compact('clientid', 'client', 'invoices',  'orders',
37
+            return view('themes.default1.invoice.newpayment', compact('clientid', 'client', 'invoices', 'orders',
38 38
                   'invoiceSum', 'amountReceived', 'pendingAmount', 'currency'));
39 39
         } catch (Exception $ex) {
40 40
             return redirect()->back()->with('fails', $ex->getMessage());
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             $invoiceChecked = $request->invoiceChecked;
98 98
             $invoicAmount = $request->invoiceAmount;
99 99
             $amtToCredit = $request->amtToCredit;
100
-<<<<<<< HEAD
100
+<< << <<< HEAD
101 101
             $payment_status= "success";
102 102
             $payment = $this->multiplePayment($clientid,$invoiceChecked, $payment_method,
103 103
              $payment_date, $totalAmt,$invoicAmount,$amtToCredit,$payment_status);
@@ -215,8 +215,4 @@  discard block
 block discarded – undo
215 215
             app('log')->error($ex->getMessage());
216 216
             Bugsnag::notifyException($ex);
217 217
 
218
-            return redirect()->back()->with('fails', $ex->getMessage());
219
-        }
220
-
221
-    }
222
-}
218
+            return redirect()->back()->with('fails', $ex->getMessage
223 219
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -215,8 +215,4 @@
 block discarded – undo
215 215
             app('log')->error($ex->getMessage());
216 216
             Bugsnag::notifyException($ex);
217 217
 
218
-            return redirect()->back()->with('fails', $ex->getMessage());
219
-        }
220
-
221
-    }
222
-}
218
+            return redirect()->back()->with('fails', $ex->getMessage
223 219
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -215,8 +215,4 @@
 block discarded – undo
215 215
             app('log')->error($ex->getMessage());
216 216
             Bugsnag::notifyException($ex);
217 217
 
218
-            return redirect()->back()->with('fails', $ex->getMessage());
219
-        }
220
-
221
-    }
222
-}
218
+            return redirect()->back()->with('fails', $ex->getMessage
223 219
\ No newline at end of file
Please login to merge, or discard this patch.
app/Http/Controllers/Order/TaxRatesAndCodeExpiryController.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
                         '<td style="border-bottom: 1px solid#ccc; color: #333; 
184 184
                         font-family: Arial,sans-serif; font-size: 14px; line-height: 20px;
185 185
                          padding: 15px 8px;" valign="top">'.$this->currency($invoiceid).' '
186
-                         .$item->subtotal.'</td>'.
186
+                            .$item->subtotal.'</td>'.
187 187
                         '</tr>';
188 188
             }
189 189
         }
@@ -265,10 +265,10 @@  discard block
 block discarded – undo
265 265
     {
266 266
         try {
267 267
             $cltCont = new \App\Http\Controllers\User\ClientController();
268
-             $amountReceived = $cltCont->getAmountPaid($id);
268
+                $amountReceived = $cltCont->getAmountPaid($id);
269 269
             $payment = Payment::find($id);
270 270
             $clientid = $payment->user_id;
271
-             $invoice = new Invoice();
271
+                $invoice = new Invoice();
272 272
             $order = new Order();
273 273
             $invoices = $invoice->where('user_id', $clientid)->where('status', '=', 'pending')->orderBy('created_at', 'desc')->get();
274 274
             $cltCont = new \App\Http\Controllers\User\ClientController();
@@ -278,8 +278,8 @@  discard block
 block discarded – undo
278 278
             $client = $this->user->where('id', $clientid)->first();
279 279
             $currency = $client->currency;
280 280
             $orders = $order->where('client', $clientid)->get();
281
-              return view('themes.default1.invoice.editPayment',compact('amountReceived','clientid', 'client', 'invoices',  'orders',
282
-                  'invoiceSum', 'amountReceived', 'pendingAmount', 'currency'));
281
+                return view('themes.default1.invoice.editPayment',compact('amountReceived','clientid', 'client', 'invoices',  'orders',
282
+                    'invoiceSum', 'amountReceived', 'pendingAmount', 'currency'));
283 283
 
284 284
 
285 285
 
@@ -287,8 +287,8 @@  discard block
 block discarded – undo
287 287
         
288 288
             
289 289
         } catch (Exception $e) {
290
-             Bugsnag::notifyException($e);
291
-             return redirect()->back()->with('fails', $e->getMessage());
290
+                Bugsnag::notifyException($e);
291
+                return redirect()->back()->with('fails', $e->getMessage());
292 292
         }
293 293
     }
294 294
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -278,7 +278,7 @@
 block discarded – undo
278 278
             $client = $this->user->where('id', $clientid)->first();
279 279
             $currency = $client->currency;
280 280
             $orders = $order->where('client', $clientid)->get();
281
-              return view('themes.default1.invoice.editPayment',compact('amountReceived','clientid', 'client', 'invoices',  'orders',
281
+              return view('themes.default1.invoice.editPayment', compact('amountReceived', 'clientid', 'client', 'invoices', 'orders',
282 282
                   'invoiceSum', 'amountReceived', 'pendingAmount', 'currency'));
283 283
 
284 284
 
Please login to merge, or discard this patch.
app/Http/Controllers/User/ClientController.php 2 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -73,29 +73,29 @@  discard block
 block discarded – undo
73 73
         $position = $request->input('position');
74 74
 
75 75
         $user = $this->advanceSearch($name, $username, $company,
76
-         $mobile, $email, $country, $industry, $company_type, $company_size, $role, $position);
76
+            $mobile, $email, $country, $industry, $company_type, $company_size, $role, $position);
77 77
 
78 78
         return\ DataTables::of($user->get())
79
-                         ->addColumn('checkbox', function ($model) {
80
-                             return "<input type='checkbox' class='user_checkbox' 
79
+                            ->addColumn('checkbox', function ($model) {
80
+                                return "<input type='checkbox' class='user_checkbox' 
81 81
                             value=".$model->id.' name=select[] id=check>';
82
-                         })
82
+                            })
83 83
                         ->addColumn('first_name', function ($model) {
84 84
                             return '<a href='.url('clients/'.$model->id).'>'
85 85
                             .ucfirst($model->first_name).' '.ucfirst($model->last_name).'</a>';
86 86
                         })
87
-                         ->addColumn('email', function ($model) {
88
-                             return $model->email;
89
-                         })
90
-                          ->addColumn('created_at', function ($model) {
91
-                              $ends = $model->created_at;
92
-                              if ($ends) {
93
-                                  $date = date_create($ends);
94
-                                  $end = date_format($date, 'l, F j, Y H:m');
95
-                              }
96
-
97
-                              return $end;
98
-                          })
87
+                            ->addColumn('email', function ($model) {
88
+                                return $model->email;
89
+                            })
90
+                            ->addColumn('created_at', function ($model) {
91
+                                $ends = $model->created_at;
92
+                                if ($ends) {
93
+                                    $date = date_create($ends);
94
+                                    $end = date_format($date, 'l, F j, Y H:m');
95
+                                }
96
+
97
+                                return $end;
98
+                            })
99 99
                         // ->showColumns('email', 'created_at')
100 100
                         ->addColumn('active', function ($model) {
101 101
                             if ($model->active == 1) {
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 
209 209
             return view('themes.default1.user.client.show',
210 210
                 compact('id', 'client', 'invoices', 'model_popup', 'orders',
211
-                 'payments', 'invoiceSum', 'amountReceived', 'pendingAmount', 'currency','extraAmt'));
211
+                    'payments', 'invoiceSum', 'amountReceived', 'pendingAmount', 'currency','extraAmt'));
212 212
         } catch (\Exception $ex) {
213 213
             app('log')->useDailyFiles(storage_path().'/logs/laravel.log');
214 214
             app('log')->info($ex->getMessage());
@@ -402,9 +402,9 @@  discard block
 block discarded – undo
402 402
                 return \Response::json([]);
403 403
             }
404 404
             $users = User::where('email', 'LIKE', '%'.$term.'%')
405
-             ->orWhere('first_name', 'LIKE', '%'.$term.'%')
406
-             ->orWhere('last_name', 'LIKE', '%'.$term.'%')
407
-             ->select('id', 'email', 'profile_pic', 'first_name', 'last_name')->get();
405
+                ->orWhere('first_name', 'LIKE', '%'.$term.'%')
406
+                ->orWhere('last_name', 'LIKE', '%'.$term.'%')
407
+                ->select('id', 'email', 'profile_pic', 'first_name', 'last_name')->get();
408 408
             $formatted_tags = [];
409 409
 
410 410
             foreach ($users as $user) {
@@ -420,8 +420,8 @@  discard block
 block discarded – undo
420 420
     }
421 421
 
422 422
     public function advanceSearch($name = '', $username = '', $company = '',
423
-     $mobile = '', $email = '', $country = '', $industry = '',
424
-      $company_type = '', $company_size = '', $role = '', $position = '')
423
+        $mobile = '', $email = '', $country = '', $industry = '',
424
+        $company_type = '', $company_size = '', $role = '', $position = '')
425 425
     {
426 426
         $join = \DB::table('users');
427 427
         $join = $this->getNamUserCom($join, $name, $username, $company);
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
 
432 432
         $join = $join->orderBy('created_at', 'desc')
433 433
         ->select('id', 'first_name', 'last_name', 'email', 'created_at',
434
-         'active', 'mobile_verified', 'role', 'position');
434
+            'active', 'mobile_verified', 'role', 'position');
435 435
 
436 436
         return $join;
437 437
     }
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -76,18 +76,18 @@  discard block
 block discarded – undo
76 76
          $mobile, $email, $country, $industry, $company_type, $company_size, $role, $position);
77 77
 
78 78
         return\ DataTables::of($user->get())
79
-                         ->addColumn('checkbox', function ($model) {
79
+                         ->addColumn('checkbox', function($model) {
80 80
                              return "<input type='checkbox' class='user_checkbox' 
81 81
                             value=".$model->id.' name=select[] id=check>';
82 82
                          })
83
-                        ->addColumn('first_name', function ($model) {
83
+                        ->addColumn('first_name', function($model) {
84 84
                             return '<a href='.url('clients/'.$model->id).'>'
85 85
                             .ucfirst($model->first_name).' '.ucfirst($model->last_name).'</a>';
86 86
                         })
87
-                         ->addColumn('email', function ($model) {
87
+                         ->addColumn('email', function($model) {
88 88
                              return $model->email;
89 89
                          })
90
-                          ->addColumn('created_at', function ($model) {
90
+                          ->addColumn('created_at', function($model) {
91 91
                               $ends = $model->created_at;
92 92
                               if ($ends) {
93 93
                                   $date = date_create($ends);
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                               return $end;
98 98
                           })
99 99
                         // ->showColumns('email', 'created_at')
100
-                        ->addColumn('active', function ($model) {
100
+                        ->addColumn('active', function($model) {
101 101
                             if ($model->active == 1) {
102 102
                                 $email = "<span class='glyphicon glyphicon-envelope'
103 103
                                  style='color:green' title='verified email'></span>";
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
                             return $email.'&nbsp;&nbsp;'.$mobile;
117 117
                         })
118
-                        ->addColumn('action', function ($model) {
118
+                        ->addColumn('action', function($model) {
119 119
                             return '<a href='.url('clients/'.$model->id.'/edit')
120 120
                             ." class='btn btn-sm btn-primary btn-xs'>
121 121
                             <i class='fa fa-edit' style='color:white;'> </i>&nbsp;&nbsp;Edit</a>"
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                                     <i class='fa fa-eye' style='color:white;'> </i>&nbsp;&nbsp;View</a>";
125 125
                             // return 'hhhh';
126 126
                         })
127
-                        ->rawColumns(['checkbox', 'first_name', 'email',  'created_at', 'active', 'action'])
127
+                        ->rawColumns(['checkbox', 'first_name', 'email', 'created_at', 'active', 'action'])
128 128
                         ->make(true);
129 129
 
130 130
         // ->searchColumns('email', 'first_name')
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 
209 209
             return view('themes.default1.user.client.show',
210 210
                 compact('id', 'client', 'invoices', 'model_popup', 'orders',
211
-                 'payments', 'invoiceSum', 'amountReceived', 'pendingAmount', 'currency','extraAmt'));
211
+                 'payments', 'invoiceSum', 'amountReceived', 'pendingAmount', 'currency', 'extraAmt'));
212 212
         } catch (\Exception $ex) {
213 213
             app('log')->useDailyFiles(storage_path().'/logs/laravel.log');
214 214
             app('log')->info($ex->getMessage());
Please login to merge, or discard this patch.