update fix deadcode, security
This commit is contained in:
@@ -24,11 +24,4 @@ class vCenter extends Model
|
||||
{
|
||||
return $this->hasMany(\App\Models\ModuleDatacenter::class, 'vcenter_id');
|
||||
}
|
||||
public function getStatus()
|
||||
{
|
||||
return match ($this->attributes['status']) {
|
||||
1 => '<span class="badge bg-success">Active</span>',
|
||||
default => '<span class="badge bg-secondary">No Active</span>'
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user