mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
Calendar Edit
This commit is contained in:
@@ -20,4 +20,19 @@ class Event extends Model
|
||||
{
|
||||
return $this->belongsTo('App\User');
|
||||
}
|
||||
|
||||
public function course($p,$l)
|
||||
{
|
||||
$courses = $this->courses;
|
||||
|
||||
foreach ($courses as $c)
|
||||
{
|
||||
if ($c->periode == $p && $c->level == $l)
|
||||
{
|
||||
return $c;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user