You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TaxComputation.php 362B

12345678910111213141516171819
  1. <?php
  2. namespace App\Enums;
  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. }