@@ -115,19 +115,19 @@ discard block |
||
| 115 | 115 | ); |
| 116 | 116 | |
| 117 | 117 | return\ DataTables::of($user->get()) |
| 118 | - ->addColumn('checkbox', function ($model) { |
|
| 119 | - return "<input type='checkbox' class='user_checkbox' |
|
| 118 | + ->addColumn('checkbox', function ($model) { |
|
| 119 | + return "<input type='checkbox' class='user_checkbox' |
|
| 120 | 120 | value=".$model->id.' name=select[] id=check>'; |
| 121 | - }) |
|
| 121 | + }) |
|
| 122 | 122 | ->addColumn('first_name', function ($model) { |
| 123 | 123 | return '<a href='.url('clients/'.$model->id).'>' |
| 124 | 124 | .ucfirst($model->first_name).' '.ucfirst($model->last_name).'</a>'; |
| 125 | 125 | }) |
| 126 | - ->addColumn('email', function ($model) { |
|
| 127 | - return $model->email; |
|
| 128 | - }) |
|
| 129 | - ->addColumn('created_at', function ($model) { |
|
| 130 | - $ends = $model->created_at; |
|
| 126 | + ->addColumn('email', function ($model) { |
|
| 127 | + return $model->email; |
|
| 128 | + }) |
|
| 129 | + ->addColumn('created_at', function ($model) { |
|
| 130 | + $ends = $model->created_at; |
|
| 131 | 131 | if ($ends) { |
| 132 | 132 | $date1 = new DateTime($ends); |
| 133 | 133 | $tz = \Auth::user()->timezone()->first()->name; |
@@ -135,8 +135,8 @@ discard block |
||
| 135 | 135 | $end = $date1->format('M j, Y, g:i a '); |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | - return $end; |
|
| 139 | - }) |
|
| 138 | + return $end; |
|
| 139 | + }) |
|
| 140 | 140 | // ->showColumns('email', 'created_at') |
| 141 | 141 | ->addColumn('active', function ($model) { |
| 142 | 142 | if ($model->active == 1) { |
@@ -551,9 +551,9 @@ discard block |
||
| 551 | 551 | return \Response::json([]); |
| 552 | 552 | } |
| 553 | 553 | $users = User::where('email', 'LIKE', '%'.$term.'%') |
| 554 | - ->orWhere('first_name', 'LIKE', '%'.$term.'%') |
|
| 555 | - ->orWhere('last_name', 'LIKE', '%'.$term.'%') |
|
| 556 | - ->select('id', 'email', 'profile_pic', 'first_name', 'last_name')->get(); |
|
| 554 | + ->orWhere('first_name', 'LIKE', '%'.$term.'%') |
|
| 555 | + ->orWhere('last_name', 'LIKE', '%'.$term.'%') |
|
| 556 | + ->select('id', 'email', 'profile_pic', 'first_name', 'last_name')->get(); |
|
| 557 | 557 | $formatted_tags = []; |
| 558 | 558 | |
| 559 | 559 | foreach ($users as $user) { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | style='color:white;'> </i> Edit</a>"; |
| 73 | 73 | }) |
| 74 | 74 | |
| 75 | - ->rawColumns(['checkbox', 'name', 'url', 'created_at', 'content', 'action']) |
|
| 75 | + ->rawColumns(['checkbox', 'name', 'url', 'created_at', 'content', 'action']) |
|
| 76 | 76 | ->make(true); |
| 77 | 77 | // ->searchColumns('name', 'content') |
| 78 | 78 | // ->orderColumns('name') |
@@ -163,8 +163,8 @@ discard block |
||
| 163 | 163 | public function getPageUrl($slug) |
| 164 | 164 | { |
| 165 | 165 | $productController = new \App\Http\Controllers\Product\ProductController(); |
| 166 | - // $url = url('/'); |
|
| 167 | - // $segment = $this->addSegment(['public/pages']); |
|
| 166 | + // $url = url('/'); |
|
| 167 | + // $segment = $this->addSegment(['public/pages']); |
|
| 168 | 168 | $url = url('/'); |
| 169 | 169 | |
| 170 | 170 | $slug = str_slug($slug, '-'); |