You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
992 B
PHP
36 lines
992 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Filament\Support\Contracts\HasIcon;
|
|
use Filament\Support\Contracts\HasLabel;
|
|
|
|
enum OrderAttributes: string implements HasIcon, HasLabel
|
|
{
|
|
case new_art = 'New Art';
|
|
case repeat = 'Repeat';
|
|
case rush = 'Rush';
|
|
case event = 'Event';
|
|
case digitizing = 'Digitizing';
|
|
case garments = 'Garments';
|
|
case supplied_file = 'Customer Supplied File';
|
|
|
|
public function getLabel(): ?string
|
|
{
|
|
return $this->value;
|
|
}
|
|
|
|
public function getIcon(): ?string
|
|
{
|
|
return match ($this) {
|
|
self::new_art => 'lucide-brush',
|
|
self::repeat => 'lucide-files',
|
|
self::rush => 'lucide-bell-ring',
|
|
self::event => 'lucide-calendar-range',
|
|
self::digitizing => 'lucide-computer',
|
|
self::garments => 'lucide-shirt',
|
|
self::supplied_file => 'lucide-file-check',
|
|
};
|
|
}
|
|
}
|