League Creation

This commit is contained in:
Torsten 2017-09-11 10:38:57 +02:00
parent 96101cb05d
commit 7c9d5eef1e
11 changed files with 160 additions and 46 deletions

View file

@ -110,6 +110,8 @@ class User extends Authenticatable
public static function toDBDate($deDate)
{
if (!$deDate) return "";
$values = explode(" ", $deDate);
$year = explode(".",$values[0])[2];
@ -181,7 +183,9 @@ class User extends Authenticatable
$payref = array();
foreach($payments as $payment) {
$payref[$payment->user_id]='ok';
if ($payment->paid_date) {
$payref[$payment->user_id] = 'ok';
}
}
$userlist=array();