public function getDepartmentAttribute($value)
    {
        if ($this->active) {
            return Department::findOrFail(($this->details()->active()->first()->department_id));
        }
        return null;
    }