Fix end session report, move address when system is a ZC, show #addresses on systems

This commit is contained in:
Deon George
2021-08-15 11:42:38 +10:00
parent b9abd17139
commit 414a10f84e
6 changed files with 20 additions and 4 deletions

View File

@@ -47,6 +47,14 @@ class System extends Model
return $this->hasOne(Setup::class);
}
/**
* This system is the ZC for the following zones
*/
public function zcs()
{
return $this->belongsToMany(Zone::class);
}
/**
* Zones a system has addresses for
*