public function getIsResolvedAttribute()
    {
        if ($updates = $this->updates->first()) {
            return (int) $updates->status === self::FIXED;
        }

        return (int) $this->status === self::FIXED;
    }
public function getIsResolvedAttribute()
    {
        if ($updates = $this->updates->first()) {
            return (int) $updates->status === self::FIXED;
        }

        return (int) $this->status === self::FIXED;
    }
public function getIsResolvedAttribute ( ) { if ( $ updates = $ this -> updates -> first ( ) ) { return ( int ) $ updates -> status === self :: FIXED ; } return ( int ) $ this -> status === self :: FIXED ; }
Is the incident resolved?

@return bool
Is the incident resolved?