Files
portal-api/app/Enums/Invoice/InvoiceStatus.php
T
2026-07-09 11:19:50 +07:00

24 lines
499 B
PHP

<?php
namespace App\Enums\Invoice;
enum InvoiceStatus: int
{
case UNPAID = 1;
case PAID = 2;
case CANCELLED = 3;
case OVERDUE = 4;
case REFUNDED = 5;
public function label(): string
{
return match ($this) {
self::UNPAID => 'Chưa thanh toán',
self::PAID => 'Đã thanh toán',
self::CANCELLED => 'Đã hủy',
self::OVERDUE => 'Quá hạn',
self::REFUNDED => 'Đã hoàn tiền',
};
}
}