feat: Update maintenance messages and localize billing labels in InvoiceItem and OrderItem models

This commit is contained in:
baodev0
2026-07-25 09:35:26 +07:00
parent 2eac92ad5f
commit cd61e1d242
3 changed files with 21 additions and 21 deletions
+8 -8
View File
@@ -64,14 +64,14 @@ class OrderItem extends Model
public function getBillingLabelAttribute(): string
{
return match ((int) $this->months) {
0 => 'One Time',
1 => 'Monthly',
3 => 'Quarterly',
6 => 'Semi-Annually',
12 => 'Annually',
24 => '2 Years',
36 => '3 Years',
default => $this->months . ' Months',
0 => 'Một lần',
1 => 'Hàng tháng',
3 => 'Hàng quý',
6 => 'Nửa năm',
12 => 'Hàng năm',
24 => '2 năm',
36 => '3 năm',
default => $this->months . ' tháng',
};
}
}