feat: Update maintenance messages and localize billing labels in InvoiceItem and OrderItem models
This commit is contained in:
@@ -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',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user