1
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
ssww23
2026-03-17 01:59:00 +03:00
parent 93a655235a
commit 0ee9f05416
48 changed files with 1193 additions and 413 deletions

View File

@@ -43,8 +43,21 @@ class Order extends Model
public function getPaymentMethodLabelAttribute(): string
{
return match ($this->payment_method) {
'card_transfer' => 'Перевод по реквизитам (на карту)',
default => 'Не указан',
'card_transfer' => __('Перевод по реквизитам (на карту)'),
default => __('Не указан'),
};
}
public function getStatusLabelAttribute(): string
{
return match ($this->status) {
'new' => __('Новый'),
'processing' => __('В обработке'),
'paid' => __('Оплачен'),
'shipped' => __('Отправлен'),
'completed' => __('Завершен'),
'cancelled' => __('Отменен'),
default => (string) $this->status,
};
}
}