@@ 287-297 (lines=11) @@ | ||
284 | /* |
|
285 | * Admin section |
|
286 | */ |
|
287 | public function getAdminIndex() |
|
288 | { |
|
289 | // Grab all the users |
|
290 | $users = Sentinel::createModel()->where('status', '=', '1')->Get(); |
|
291 | ||
292 | $possibleStatus = $this->status; |
|
293 | $pending = false; |
|
294 | ||
295 | // Show the page |
|
296 | return View('admin.users.list', compact('users', 'possibleStatus', 'pending')); |
|
297 | } |
|
298 | ||
299 | public function getAdminPending() |
|
300 | { |
|
@@ 299-309 (lines=11) @@ | ||
296 | return View('admin.users.list', compact('users', 'possibleStatus', 'pending')); |
|
297 | } |
|
298 | ||
299 | public function getAdminPending() |
|
300 | { |
|
301 | // Grab all the users |
|
302 | $users = Sentinel::createModel()->where('last_login', '=', null)->where('status', '=', '0')->Get(); |
|
303 | ||
304 | $possibleStatus = $this->status; |
|
305 | $pending = true; |
|
306 | ||
307 | // Show the page |
|
308 | return View('admin.users.list', compact('users', 'possibleStatus', 'pending')); |
|
309 | } |
|
310 | ||
311 | public function getAdminBlocked() |
|
312 | { |
|
@@ 311-321 (lines=11) @@ | ||
308 | return View('admin.users.list', compact('users', 'possibleStatus', 'pending')); |
|
309 | } |
|
310 | ||
311 | public function getAdminBlocked() |
|
312 | { |
|
313 | // Grab all the users |
|
314 | $users = Sentinel::createModel()->where('status', '=', '2')->Get(); |
|
315 | ||
316 | $possibleStatus = $this->status; |
|
317 | $pending = true; |
|
318 | ||
319 | // Show the page |
|
320 | return View('admin.users.list', compact('users', 'possibleStatus', 'pending')); |
|
321 | } |
|
322 | ||
323 | /** |
|
324 | * User update form processing page. |