Incident statuses. Show components on the list.
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
<?php
|
||||
|
||||
class Incident extends Eloquent {
|
||||
|
||||
public function getHumanStatusAttribute() {
|
||||
switch ($this->status) {
|
||||
case 1: return 'Investigating';
|
||||
case 2: return 'Identified';
|
||||
case 3: return 'Watching';
|
||||
case 4: return 'Fixed';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user