$this->order_no, 'shop' => new ShopBaseInfoResource($this->shop), 'amount' => $this->amount, 'freight' => $this->freight, 'total' => $this->total, 'type' => $this->type_text, 'state' => $this->state_text, 'items' => OrderItemResource::collection($this->items), 'remark' => (string) $this->remark, 'created_at' => (string) $this->created_at, ]; } }