Certified/app/Enums/ExpiryStatus.php
Joël van de Wouw a3b3d7d029 Polish app branding with shared brand components
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>
2026-07-12 15:37:54 +02:00

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'),
};
}
}