This commit is contained in:
Mekan1206
2026-04-29 22:40:09 +05:00
parent dd633ef7da
commit bc2770c24d
7 changed files with 32 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ class OrderIndexResource extends JsonResource
return [
'id' => $this->id,
'status' => OrderStatus::formattedStatusFor($this->status),
'shipping_method' => OrderShipping::formattedShippingMethod($this->shipping_method),
'shipping_method' => $this->formattedShippingMethod(),
'notes' => $this->notes,
'delivery_time' => $this->delivery_time,
'delivery_at' => $this->delivery_at,

View File

@@ -19,7 +19,7 @@ class OrderShowResource extends JsonResource
return [
'id' => $this->id,
'status' => OrderStatus::formattedStatusFor($this->status),
'shipping_method' => OrderShipping::formattedShippingMethod($this->shipping_method),
'shipping_method' => $this->formattedShippingMethod(),
'notes' => $this->notes,
'delivery_time' => $this->delivery_time,
'delivery_at' => $this->delivery_at,