34 lines
857 B
PHP
34 lines
857 B
PHP
<?php
|
|
/**
|
|
* OrderSimple.php
|
|
*
|
|
* @copyright 2022 opencart.cn - All Rights Reserved
|
|
* @link http://www.guangdawangluo.com
|
|
* @author Edward Yang <yangjin@opencart.cn>
|
|
* @created 2022-08-24 10:51:53
|
|
* @modified 2022-08-24 10:51:53
|
|
*/
|
|
|
|
namespace Beike\Admin\Http\Resources;
|
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class OrderSimple extends JsonResource
|
|
{
|
|
public function toArray($request): array
|
|
{
|
|
$data = [
|
|
'id' => $this->id,
|
|
'number' => $this->number,
|
|
'customer_name' => $this->customer_name,
|
|
'email' => $this->email,
|
|
'telephone' => $this->telephone,
|
|
'created_at' => $this->created_at,
|
|
'updated_at' => $this->updated_at,
|
|
'status' => trans("admin/order.{$this->status}"),
|
|
];
|
|
|
|
return $data;
|
|
}
|
|
}
|