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

TaxComputation.php 370B

12345678910111213141516171819
  1. <?php
  2. namespace App\Enums\Setting;
  3. use Filament\Support\Contracts\HasLabel;
  4. enum TaxComputation: string implements HasLabel
  5. {
  6. case Fixed = 'fixed';
  7. case Percentage = 'percentage';
  8. case Compound = 'compound';
  9. public const DEFAULT = self::Percentage->value;
  10. public function getLabel(): ?string
  11. {
  12. return translate($this->name);
  13. }
  14. }