Implement creator studio and upload updates
This commit is contained in:
37
app/Enums/ModerationDomainStatus.php
Normal file
37
app/Enums/ModerationDomainStatus.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum ModerationDomainStatus: string
|
||||
{
|
||||
case Allowed = 'allowed';
|
||||
case Neutral = 'neutral';
|
||||
case Suspicious = 'suspicious';
|
||||
case Blocked = 'blocked';
|
||||
case Escalated = 'escalated';
|
||||
case ReviewRequired = 'review_required';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Allowed => 'Allowed',
|
||||
self::Neutral => 'Neutral',
|
||||
self::Suspicious => 'Suspicious',
|
||||
self::Blocked => 'Blocked',
|
||||
self::Escalated => 'Escalated',
|
||||
self::ReviewRequired => 'Review Required',
|
||||
};
|
||||
}
|
||||
|
||||
public function badgeClass(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Allowed => 'badge-success',
|
||||
self::Neutral => 'badge-light',
|
||||
self::Suspicious => 'badge-warning',
|
||||
self::Blocked => 'badge-danger',
|
||||
self::Escalated => 'badge-dark',
|
||||
self::ReviewRequired => 'badge-info',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user