<?php

namespace App\Enums;

enum CouponType: string
{
    case PERCENTAGE = 'percentage';
    case FLAT = 'flat';
    case FLAT_PER_SEAT = 'flat_per_seat';

    public function label(): string
    {
        return match ($this) {
            self::PERCENTAGE => __('Percentage'),
            self::FLAT => __('Flat amount'),
            self::FLAT_PER_SEAT => __('Flat per seat'),
        };
    }
}
