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.

DiscountComputation.php 343B

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