feat: display assignments' dispositions and applications status in list
This commit is contained in:
@@ -463,4 +463,21 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isStaffed(): bool
|
||||
{
|
||||
return $this->availableDispositions === $this->dispositions->count();
|
||||
}
|
||||
|
||||
public function isPartlyStaffed(): bool
|
||||
{
|
||||
return $this->availableDispositions > $this->dispositions->count()
|
||||
&& 0 === $this->applications->count();
|
||||
}
|
||||
|
||||
public function isInProgress(): bool
|
||||
{
|
||||
return $this->availableDispositions > $this->dispositions->count()
|
||||
&& 0 < $this->applications->count();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user