<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:05:33
 namespace App\Http\Resources\Admin; use Illuminate\Http\Resources\Json\JsonResource; class OrderResource extends JsonResource { public function toArray($request) { return ["\x69\144" => $this->id, "\x63\x6f\x64\145" => $this->code, "\164\171\x70\145" => $this->type, "\x75\x73\x65\162\137\x69\144" => $this->user_id, "\x75\163\x65\162" => $this->user, "\164\157\164\141\x6c\137\x70\x72\x69\143\x65" => $this->total_price, "\x64\151\x73\143\157\x75\156\164\137\160\x6f\x69\x6e\x74" => $this->discount_point, "\144\151\163\x63\x6f\x75\156\164\137\x70\157\x69\x6e\164\137\162\x61\x74\145" => $this->discount_point_rate, "\144\x69\x73\x63\157\165\156\x74\137\160\x6f\x69\156\x74\137\141\x6d\x6f\165\156\164" => $this->discount_point_amount, "\145\163\x74\151\155\141\164\145\144\137\x64\x65\154\151\x76\x65\x72\171\137\x64\x61\x74\x65" => $this->estimated_delivery_date, "\x70\141\171\155\145\156\164\x5f\155\145\164\x68\x6f\x64" => $this->payment_method, "\x70\141\171\x6d\145\x6e\164\137\163\x74\x61\164\165\163" => $this->payment_status, "\146\151\x72\163\x74\x5f\156\x61\155\145" => $this->first_name, "\154\x61\x73\164\x5f\156\x61\x6d\145" => $this->last_name, "\x66\x75\x72\151\x67\x61\156\141\137\x66\x69\x72\163\164\137\x6e\141\x6d\x65" => $this->furigana_first_name, "\x66\165\x72\151\147\141\x6e\141\x5f\154\x61\163\x74\137\156\141\155\145" => $this->furigana_last_name, "\160\x6f\x73\x74\137\143\x6f\x64\x65" => $this->post_code, "\141\144\x64\162\x65\163\163\61" => $this->address1, "\x61\x64\144\x72\x65\163\163\62" => $this->address2, "\141\x64\x64\x72\x65\x73\x73\x33" => $this->address3, "\160\x68\157\x6e\x65\x5f\x6e\165\x6d\x62\145\162" => $this->phone_number, "\145\x6d\x61\151\154" => $this->email, "\156\157\x74\145" => $this->note, "\x73\164\x61\164\165\x73" => $this->status, "\160\141\x79\x6d\145\x6e\x74" => $this->payment != null && count($this->payment) > 0 ? $this->payment[0] : null, "\x64\x65\154\x69\x76\145\162\171" => $this->delivery != null && count($this->delivery) > 0 ? $this->delivery[0] : null, "\157\162\x64\x65\x72\x5f\144\x65\164\x61\x69\x6c" => $this->order_detail, "\151\x73\137\141\143\x74\x69\x76\x61\x74\145\x64" => $this->is_activated, "\143\162\145\141\164\x65\x64\137\141\164" => isset($this->created_at) ? date("\131\x2d\x6d\55\x64\40\x48\72\x69\x3a\x73", strtotime($this->created_at)) : null, "\165\160\x64\141\164\x65\x64\x5f\141\164" => isset($this->updated_at) ? date("\x59\x2d\155\55\x64\x20\x48\72\x69\x3a\x73", strtotime($this->updated_at)) : null]; } }