您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

EstimateStatus.php 449B

12345678910111213141516171819202122
  1. <?php
  2. namespace App\Enums\Accounting;
  3. use Filament\Support\Contracts\HasLabel;
  4. enum EstimateStatus: string implements HasLabel
  5. {
  6. case Draft = 'draft';
  7. case Sent = 'sent';
  8. case Viewed = 'viewed';
  9. case Unsent = 'unsent';
  10. case Accepted = 'accepted';
  11. case Declined = 'declined';
  12. case Expired = 'expired';
  13. case Converted = 'converted';
  14. public function getLabel(): ?string
  15. {
  16. return $this->name;
  17. }
  18. }