Implement creator studio and upload updates
This commit is contained in:
34
app/Enums/ModerationStatus.php
Normal file
34
app/Enums/ModerationStatus.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum ModerationStatus: string
|
||||
{
|
||||
case Pending = 'pending';
|
||||
case ReviewedSafe = 'reviewed_safe';
|
||||
case ConfirmedSpam = 'confirmed_spam';
|
||||
case Ignored = 'ignored';
|
||||
case Resolved = 'resolved';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Pending => 'Pending',
|
||||
self::ReviewedSafe => 'Safe',
|
||||
self::ConfirmedSpam => 'Spam',
|
||||
self::Ignored => 'Ignored',
|
||||
self::Resolved => 'Resolved',
|
||||
};
|
||||
}
|
||||
|
||||
public function badgeClass(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Pending => 'badge-warning',
|
||||
self::ReviewedSafe => 'badge-success',
|
||||
self::ConfirmedSpam => 'badge-danger',
|
||||
self::Ignored => 'badge-secondary',
|
||||
self::Resolved => 'badge-info',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user