Completed
Push — development ( 73f0fe...9c710c )
by Ashutosh
10:16
created
app/Http/Controllers/Payment/CurrencyController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,19 +41,19 @@  discard block
 block discarded – undo
41 41
         ->orderBy('id', 'desc')->get();
42 42
         return \DataTables::of($model)
43 43
 
44
-                        ->addColumn('name', function ($model) {
44
+                        ->addColumn('name', function($model) {
45 45
                             return $model->name;
46 46
                         })
47 47
 
48
-                          ->addColumn('code', function ($model) {
48
+                          ->addColumn('code', function($model) {
49 49
                               return $model->code;
50 50
                           })
51 51
 
52
-                          ->addColumn('symbol', function ($model) {
52
+                          ->addColumn('symbol', function($model) {
53 53
                               return $model->symbol;
54 54
                           })
55 55
 
56
-                          ->addColumn('dashboard', function ($model) {
56
+                          ->addColumn('dashboard', function($model) {
57 57
                               if ($model->status == 1) {
58 58
                                   $showButton = $this->getButtonColor($model->id);
59 59
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                               }
65 65
                           })
66 66
 
67
-                        ->addColumn('status', function ($model) {
67
+                        ->addColumn('status', function($model) {
68 68
                             if ($model->status == 1) {
69 69
                                 return'<label class="switch toggle_event_editing">
70 70
                             <input type="hidden" name="module_id" class="module_id" value="'.$model->id.'" >
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
 
295 295
     public function updatecurrency(Request $request)
296 296
     {
297
-        $code = Currency::where('id',$request->input('current_id'))->value('code');
297
+        $code = Currency::where('id', $request->input('current_id'))->value('code');
298 298
         Artisan::call('currency:manage', ['action' => 'add', 'currency' => $code]);
299 299
         $updatedStatus = ($request->current_status == '1') ? 0 : 1;
300 300
         Currency::where('id', $request->current_id)->update(['status'=>$updatedStatus]);
Please login to merge, or discard this patch.