@@ -80,18 +80,18 @@ discard block |
||
| 80 | 80 | ->addColumn('first_name', function ($model) { |
| 81 | 81 | return '<a href='.url('clients/'.$model->id).'>'.ucfirst($model->first_name).' '.ucfirst($model->last_name).'</a>'; |
| 82 | 82 | }) |
| 83 | - ->addColumn('email', function ($model) { |
|
| 84 | - return $model->email; |
|
| 85 | - }) |
|
| 86 | - ->addColumn('created_at', function ($model) { |
|
| 87 | - $ends = $model->created_at; |
|
| 88 | - if ($ends) { |
|
| 89 | - $date = date_create($ends); |
|
| 90 | - $end = date_format($date, 'l, F j, Y H:m'); |
|
| 91 | - } |
|
| 92 | - |
|
| 93 | - return $end; |
|
| 94 | - }) |
|
| 83 | + ->addColumn('email', function ($model) { |
|
| 84 | + return $model->email; |
|
| 85 | + }) |
|
| 86 | + ->addColumn('created_at', function ($model) { |
|
| 87 | + $ends = $model->created_at; |
|
| 88 | + if ($ends) { |
|
| 89 | + $date = date_create($ends); |
|
| 90 | + $end = date_format($date, 'l, F j, Y H:m'); |
|
| 91 | + } |
|
| 92 | + |
|
| 93 | + return $end; |
|
| 94 | + }) |
|
| 95 | 95 | // ->showColumns('email', 'created_at') |
| 96 | 96 | ->addColumn('active', function ($model) { |
| 97 | 97 | if ($model->active == 1) { |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | */ |
| 264 | 264 | public function update($id, ClientRequest $request) |
| 265 | 265 | { |
| 266 | - $user = $this->user->where('id', $id)->first(); |
|
| 266 | + $user = $this->user->where('id', $id)->first(); |
|
| 267 | 267 | |
| 268 | 268 | $user->fill($request->input())->save(); |
| 269 | 269 | return redirect()->back()->with('success', \Lang::get('message.updated-successfully')); |
@@ -262,7 +262,7 @@ |
||
| 262 | 262 | * @return \Response |
| 263 | 263 | */ |
| 264 | 264 | public function update($id, ClientRequest $request) |
| 265 | - { |
|
| 265 | + { |
|
| 266 | 266 | $user = $this->user->where('id', $id)->first(); |
| 267 | 267 | |
| 268 | 268 | $user->fill($request->input())->save(); |
@@ -246,7 +246,7 @@ |
||
| 246 | 246 | } |
| 247 | 247 | |
| 248 | 248 | public function transform($type, $data, $trasform = []) |
| 249 | - { |
|
| 249 | + { |
|
| 250 | 250 | $config = \Config::get("transform.$type"); |
| 251 | 251 | $result = ''; |
| 252 | 252 | $array = []; |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | $renew_control = new \App\Http\Controllers\Order\RenewController(); |
| 56 | 56 | $renew_control->removeSession(); |
| 57 | 57 | Cart::clear(); |
| 58 | - return redirect('show/cart'); |
|
| 58 | + return redirect('show/cart'); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |