feat: subscriptions
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use Filament\Support\Contracts\HasColor;
|
||||
use Filament\Support\Contracts\HasLabel;
|
||||
|
||||
enum BillingProductPurpose: string implements HasColor, HasLabel
|
||||
{
|
||||
case SUBSCRIPTION = 'subscription';
|
||||
case CERTIFICATION = 'certification';
|
||||
|
||||
public function getLabel(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::SUBSCRIPTION => __('enums.billing_product_purpose.subscription'),
|
||||
self::CERTIFICATION => __('enums.billing_product_purpose.certification'),
|
||||
};
|
||||
}
|
||||
|
||||
public function getColor(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::SUBSCRIPTION => 'info',
|
||||
self::CERTIFICATION => 'success',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user