Extract the shield mark into reusable brand-icon/brand-mark components and use them in the app shell, auth layout, and marketing nav/footer. Align the palette on emerald (badges, selection, dark zinc-950 body), and add a subtle grid/glow backdrop to the app layout. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
28 lines
594 B
PHP
28 lines
594 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
enum ExpiryStatus: string
|
|
{
|
|
case Expired = 'expired';
|
|
case ExpiringSoon = 'expiring_soon';
|
|
case Valid = 'valid';
|
|
|
|
public function color(): string
|
|
{
|
|
return match ($this) {
|
|
self::Expired => 'red',
|
|
self::ExpiringSoon => 'amber',
|
|
self::Valid => 'emerald',
|
|
};
|
|
}
|
|
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::Expired => __('Expired'),
|
|
self::ExpiringSoon => __('Expiring soon'),
|
|
self::Valid => __('Valid'),
|
|
};
|
|
}
|
|
}
|