Show email address in player overview, display active players
This commit is contained in:
parent
02e44a4363
commit
2370c90170
2 changed files with 19 additions and 11 deletions
|
|
@ -39,8 +39,14 @@ class UsersController extends Controller
|
|||
if (Auth::guest()) { return redirect("/"); }
|
||||
if (!Auth::user()->admin) { return redirect("/"); }
|
||||
|
||||
$currentSeason=Season::getCurrent();
|
||||
$active_user_count = sizeof( DB::table('payments')->where('season_id',$currentSeason->id)->whereNotNull('paid_date')->get() );
|
||||
|
||||
$users = DB::table('users')->where('deleted',null)->orderBy('lastname')->get();
|
||||
return view('users.index', compact('users'));
|
||||
|
||||
|
||||
|
||||
return view('users.index', compact('users','active_user_count'));
|
||||
}
|
||||
/*
|
||||
public function showUsers() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue