Delete User, Start of money ranking

This commit is contained in:
Torsten 2017-09-03 09:03:39 +02:00
parent 054a8d6f63
commit 0b97ae656f
13 changed files with 3330 additions and 36 deletions

View file

@ -5,6 +5,7 @@ namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Season;
use App\Quota;
use App\User;
use DB;
use Auth;
use Log;
@ -19,7 +20,6 @@ class SeasonsController extends Controller
$currentSeason=Season::getCurrent();
$active_user_count = sizeof( DB::table('payments')->where('season_id',$currentSeason->id)->whereNotNull('paid_date')->get() );
$quotas = Quota::getQuotas($currentSeason->id);
if (!$quotas) {
@ -27,7 +27,7 @@ class SeasonsController extends Controller
$quotas = Quota::getQuotas($currentSeason->id);
}
$active_user_count = sizeof( DB::table('payments')->where('season_id',$currentSeason->id)->whereNotNull('paid_date')->get() );
$active_user_count = sizeof( User::getActives() );
$quotas = Quota::getQuotas($currentSeason->id);
$payouts = Quota::getPayouts($currentSeason->id);