@extends("cms.layouts.app", ['page_id' => 'order_show']) @push('js') @endpush @section('title_col') col-lg-8 @endsection @section("title")
{{ $order->external_order_id }} {{ __('cms.order.status.' . $order->status) }}
@endsection @section('subtitle') {{ $order->platform->name }} {{-- --}} {{-- {{ __('cms.order.order_date') . ': ' . $order->order_datetime }} --}} {{-- --}} @endsection @section('top_right_col') col-lg-4 @endsection @section('top_right')
{{--
--}} {{-- {{ __('cms.order.export_CJ') }} --}} {{--
--}}
{{ __('cms.order.print_invoice') }}
{{--
--}} {{-- --}} {{--
--}}
@endsection @section("content")
{{ __('cms.order.order_info') }}
{{ __('cms.order.invoice_no') }} {{ $order->invoice_number }}
@php if($order->status != 7){ @endphp
{{ __('cms.order.product') }}
{{ __('cms.order.unit_price') }}
{{ __('cms.order.qty') }}
{{ __('cms.order.total') }}
@foreach ($order->products as $product)
{{ $product->product ? $product->product->name_en : __('cms.na') }}

{{__('cms.order.barcode') . ': ' . $product->product->barcode}}

{{__('cms.order.category') . ': ' . $product->product->category}}

{{ $product->quantity }}
@endforeach
@php $summarys = [ [ 'id' => 'order_sub_total', 'title' => __('cms.order.sub_total'), 'amount' => $order->sub_total_amount ], [ 'id' => 'order_discount', 'title' => __('cms.order.discount'), 'amount' => $order->total_discount, 'isMinus' => '1' ], [ 'id' => 'order_tax', 'title' => __('cms.order.tax'), 'amount' => $order->total_tax, ], [ 'id' => 'order_shipping_fee', 'title' => __('cms.order.shipping_fee'), 'amount' => $order->total_shipping_fee ], [ 'id' => 'order_shipping_tax', 'title' => __('cms.order.shipping_tax'), 'amount' => $order->total_shipping_tax ], [ 'id' => 'order_total', 'title' => __('cms.order.total'), 'amount' => round($order->total_amount,2) ], ]; @endphp @foreach ($summarys as $summary) @php $class = ($loop->index == (count($summarys) - 2))? 'pb-3 border-bottom' : ''; @endphp
{{ $summary['title'] }}
@endforeach
@php } @endphp @php if($order->status == 7){ @endphp
{{ __('cms.order.product') }}
{{ __('cms.order.qty') }}
Returned Qty
Expire Date
@foreach ($order->products as $product)
{{ $product->product ? $product->product->name_en : __('cms.na') }}

{{__('cms.order.barcode') . ': ' . $product->product->barcode}}

{{__('cms.order.category') . ': ' . $product->product->category}}

{{ $product->quantity }}
@php $stock_record = \App\ProductStockRecord::where(['order_id'=>$order->id,'barcode'=>$product->barcode,'status'=>'-1','code'=>$product->code])->orderBy('created_at','desc')->first(); $fields = [ [ 'type' => 'input', 'input_type' => 'number', 'name' => 'returned_qty_'.$product->id, 'value' => isset($stock_record)?$stock_record->qty:0, 'field_class'=> 'col-sm-8' ], ]; @endphp
@php $stock_record = \App\ProductStockRecord::where(['order_id'=>$order->id,'barcode'=>$product->barcode])->orderBy('created_at','desc')->first(); $stock = \App\ProductStock::where(['barcode'=>$product->barcode])->first(); $date = []; if(isset($stock->expire_date)){ array_push($date,$stock->expire_date); } if(isset($stock->expire_date_2)){ array_push($date,$stock->expire_date_2); } if(isset($stock->expire_date_3)){ array_push($date,$stock->expire_date_3); } if(isset($stock->expire_date_4)){ array_push($date,$stock->expire_date_4); } if(isset($stock->expire_date_5)){ array_push($date,$stock->expire_date_5); } $fields = [ [ 'type' => 'select', 'name' => 'returned_date_'.$product->id, 'value' =>array_search($stock_record->reduce_date,$date), 'options' => $date, 'field_class' =>'col-sm-12', ], ]; @endphp
@endforeach
@php } @endphp
{{ __('cms.order.issuer_info') }}
@php $issuer_options = ['0' => 'N/A']; $issuer_options = $issuer_options + $issuers->pluck('name', 'id')->toArray(); $fields = [ [ 'type' => 'select', 'name' => 'issuer_id', 'label' => __('cms.order.issuer_name'), 'options' => $issuer_options, 'value' => $order->issuer_id, 'required' => '1' ], [ 'type' => 'input', 'name' => 'issuer_contact_number', 'label' => __('cms.order.issuer_tel'), 'value' => $order->issuer_contact_number, 'required' => '1' ], [ 'type' => 'textarea', 'name' => 'issuer_address', 'label' => __('cms.order.issuer_address_eng'), 'value' => $order->issuer_address, 'required' => '1' ], [ 'type' => 'input', 'name' => 'issuer_website', 'label' => __('cms.order.issuer_website'), 'value' => $order->issuer_website, 'required' => '1' ], ]; @endphp
{{ __('cms.order.shipping_info') }}
@php //FIX: need real options, milo: pending for client $couriers_options = ['0' => 'N/A']; for ($i=0; $i < count($couriers); $i++) { $c = $couriers[$i]; $couriers_options[$c->id] = $c->name . ' [code: ' . $c->code . ']'; } $fields = [ [ 'type' => 'input', 'input_type' => 'date', 'name' => 'shipping_datetime', 'value' => $order->shipping_datetime, 'label' => __('cms.order.shipping_date'), ], [ 'type' => 'input', 'input_type' => 'date', 'name' => 'delivery_deadline', 'value' => $order->delivery_deadline, 'label' => __('cms.order.delivery_deadline'), 'required' => '1' ], [ 'type' => 'input', 'name' => 'delivery_timeslot', 'value' => $order->delivery_timeslot, 'label' => __('cms.order.delivery_timeslot'), ], [ 'type' => 'input', 'input_type' => 'amount', 'currency' => $order->currency->name, 'name' => 'total_shipping_fee', 'value' => $order->total_shipping_fee, 'label' => __('cms.order.shipping_fee'), 'required' => '1' ], [ 'type' => 'input', 'name' => 'shipping_payment_method', 'label' => __('cms.order.shipping_payment_method'), 'value' => $order->shipping_payment_method, ], [ 'type' => 'input', 'name' => 'shipping_method', 'label' => __('cms.order.shipping_method'), 'value' => $order->shipping_method, ], [ 'type' => 'input', 'name' => 'shipping_number', 'label' => __('cms.order.shipping_no'), //FIX: no in current DB, milo: added 'value' => $order->platform_id === 14 ? $product_raw_data['shippingNumber']:$order->shipping_number, ], [ 'type' => 'select', 'name' => 'courier_id', 'label' => __('cms.order.courier'), 'value' => $order->courier_id, 'options' => $couriers_options ], [ 'type' => 'input', 'name' => 'tracking_number', 'value' => $order->tracking_number, 'label' => __('cms.order.tracking_no'), ], [ 'type' => 'input', 'name' => 'reference_number', 'value' => $order->reference_number, 'label' => __('cms.order.reference_no'), ], [ 'type' => 'textarea', 'name' => 'delivery_requirement', 'label' => __('cms.order.delivery_requirement'), 'value' => $order->delivery_requirement, 'required' => '1' ], ]; @endphp
{{ __('cms.order.receiver_info') }}
@php switch($order->receiver_country){ case 'KR': $order->receiver_country = 'KOREA'; break; case 'US': $order->receiver_country = 'UNITED STATES OF AMERICA'; break; case 'AU': $order->receiver_country = 'AUSTRALIA'; break; case 'CA': $order->receiver_country = 'CANADA'; break; case 'NZ': $order->receiver_country = 'NEW ZEALAND'; break; case 'TW': $order->receiver_country = 'TAIWAN'; break; case 'JP': $order->receiver_country = 'Japan'; } $fields = [ [ 'type' => 'input', 'name' => 'receiver_name', 'value' => $order->receiver_name, 'label' => __('cms.order.receiver_name'), 'required' => '1' ], [ 'type' => 'input', 'name' => 'receiver_contact_number1', 'value' => $order->receiver_contact_number1, 'label' => __('cms.order.receiver_contact_number1'), 'required' => '1' ], [ 'type' => 'input', 'name' => 'receiver_contact_number2', 'value' => $order->receiver_contact_number2, 'label' => __('cms.order.receiver_contact_number2'), ], [ 'type' => 'input', 'name' => 'receiver_country', 'value' => $order->receiver_country, //FIX: no in current DB milo: added 'label' => __('cms.order.delivery_country'), 'required' => '1' ], [ 'type' => 'textarea', 'name' => 'receiver_address', 'value' => $order->receiver_address, 'label' => __('cms.order.delivery_address'), 'required' => '1' ], [ 'type' => 'input', 'name' => 'receiver_zip_code', 'value' => $order->receiver_zip_code, 'label' => __('cms.order.zip_code'), 'required' => '1' ], [ 'type' => 'input', 'name' => 'receiver_social_number', 'value' => $order->receiver_social_number, 'label' => __('cms.order.receiver_social_no'), ], ]; @endphp {{-- --}}
{{ __('cms.order.package_info') }}
{{ __('cms.order.shipper_info') }}
{{ __('cms.order.others') }}
@php $yes_no_options = []; for ($i=0; $i < 2; $i++) { $yes_no_options[$i] = $i? 'Yes': 'No'; } switch ($order->platform->id) { case '1': # amazon $is_business_order = null; if (isset($product_raw_data['is_business_order'])) { $is_business_order = $product_raw_data['is_business_order'] ? 1 : 0; } $fields = [ [ 'type' => 'select', 'name' => 'business_order', 'value' => $is_business_order, 'label' => __('cms.order.others_section.amazon.business_order'), 'options' => $yes_no_options, ], [ 'type' => 'input', 'name' => 'purchase_order_number', 'value' => $product_raw_data['purchase-order-number'], 'label' => __('cms.order.others_section.amazon.purchase_order_number'), ], [ 'type' => 'input', 'name' => 'price_designation', 'value' => $product_raw_data['price-designation'], 'label' => __('cms.order.others_section.amazon.price_designation'), ], [ 'type' => 'input', 'input_type' => 'date', 'name' => 'delivery_start_date', 'value' => $product_raw_data['delivery-start-date'], 'label' => __('cms.order.others_section.amazon.delivery_start_date'), ], [ 'type' => 'input', 'name' => 'ship_service_level', 'value' => $product_raw_data['ship-service-level'], 'label' => __('cms.order.others_section.amazon.ship_service_level'), ], [ 'type' => 'input', 'name' => 'order_item_id', 'value' => $product_raw_data['order-item-id'], 'label' => __('cms.order.others_section.amazon.order_item_id'), ], [ 'type' => 'input', 'name' => 'delivery_time_zone', 'value' => $product_raw_data['delivery-time-zone'], 'label' => 'Delivery Time Zone', ], ]; break; case '3': # hktvmall $fields = [ [ 'type' => 'input', 'name' => 'delivery_mode', 'value' => $product_raw_data['Delivery Mode'], 'label' => __('cms.order.others_section.hktvmall.delivery_mode'), ], [ 'type' => 'input', 'name' => 'warehouse_id', 'value' => $product_raw_data['Warehouse ID'], 'label' => __('cms.order.others_section.hktvmall.warehouse_id'), ], [ 'type' => 'input', 'name' => 'warehouse_name', 'value' => $product_raw_data['Warehouse Name'], 'label' => __('cms.order.others_section.hktvmall.warehouse_name'), ], [ 'type' => 'input', 'name' => 'sub_order_id', 'value' => $product_raw_data['Sub-Order ID'], 'label' => __('cms.order.others_section.hktvmall.sub_order_id'), ], [ 'type' => 'input', 'name' => 'shipment_id', 'value' => $product_raw_data['Shipment ID'], 'label' => __('cms.order.others_section.hktvmall.shipment_id'), ], [ 'type' => 'input', 'name' => 'pickup_date', 'value' => $product_raw_data['Pickup Date'], 'label' => __('cms.order.others_section.hktvmall.pickup_date'), ], [ 'type' => 'input', 'name' => 'pickup_time', 'value' => $product_raw_data['Pickup Time'], 'label' => __('cms.order.others_section.hktvmall.pickup_time'), ], [ 'type' => 'input', 'name' => 'sub_category_code', 'value' => $product_raw_data["Sub category\ncode"], 'label' => __('cms.order.others_section.hktvmall.sub_category_code'), ], [ 'type' => 'input', 'name' => 'sub_category_name', 'value' => $product_raw_data["Sub category\nname"], 'label' => __('cms.order.others_section.hktvmall.sub_category_name'), ], [ 'type' => 'input', 'name' => 'mix_match_promo_id', 'value' => $product_raw_data["Mix & match\nPromo ID"], 'label' => __('cms.order.others_section.hktvmall.mix_match_promo_id'), ], [ 'type' => 'input', 'name' => 'mix_match_promo_name_english', 'value' => $product_raw_data["Mix & match\nPromo name (English)"], 'label' => __('cms.order.others_section.hktvmall.mix_match_promo_name_english'), ], [ 'type' => 'input', 'name' => 'mix_match_promo_name_chinese', 'value' => $product_raw_data["Mix & match\nPromo name (Chinese)"], 'label' => __('cms.order.others_section.hktvmall.mix_match_promo_name_chinese'), ], [ 'type' => 'input', 'name' => 'status', 'value' => $product_raw_data['Status'], 'label' => 'Status', 'label' => __('cms.order.others_section.hktvmall.status'), ], [ 'type' => 'input', 'name' => 'require_removal_service', 'value' => $product_raw_data['Require Removal Service'], 'label' => __('cms.order.others_section.hktvmall.require_removal_service'), ], [ 'type' => 'input', 'name' => 'delivery_district', 'value' => $product_raw_data['Delivery District'], 'label' => __('cms.order.others_section.hktvmall.delivery_district'), ], ]; break; # hktvmall end case '4': # shopify $billing_remarks = $product_raw_data['Billing Street']; if ($product_raw_data['Billing Address1']) { $billing_remarks .= ', '.$product_raw_data['Billing Address1']; } if ($product_raw_data['Billing Address2']) { $billing_remarks .= ', '.$product_raw_data['Billing Address2']; } if ($product_raw_data['Tags']) { $billing_remarks .= ', '.$product_raw_data['Tags']; } $remarks = $product_raw_data['Notes']; if ($product_raw_data['Note Attributes']) { $remarks .= ', '.$product_raw_data['Note Attributes']; } $tax_info = $product_raw_data['Tax 1 Name']; if ($product_raw_data['Tax 1 Value']) { $tax_info .= ': '.$product_raw_data['Tax 1 Value']; } $fields = [ [ 'type' => 'input', 'name' => 'financial_status', 'value' => $product_raw_data['Financial Status'], 'label' => __('cms.order.others_section.shopify.financial_status'), ], [ 'type' => 'input', 'name' => 'fulfillment_status', 'value' => $product_raw_data['Fulfillment Status'], 'label' => __('cms.order.others_section.shopify.fulfillment_status'), ], [ 'type' => 'input', 'name' => 'accepts_marketing', 'value' => $product_raw_data['Accepts Marketing'], 'label' => __('cms.order.others_section.shopify.accepts_marketing'), ], [ 'type' => 'input', 'name' => 'discount_code', 'value' => $product_raw_data['Discount Code'], 'label' => __('cms.order.others_section.shopify.discount_code'), ], [ 'type' => 'input', 'name' => 'lineitem_compare_at_price', 'value' => $product_raw_data['Lineitem compare at price'], 'label' => __('cms.order.others_section.shopify.lineitem_compare_at_price'), ], [ 'type' => 'input', 'name' => 'lineitem_requires_shipping', 'value' => $product_raw_data['Lineitem requires shipping'], 'label' => __('cms.order.others_section.shopify.lineitem_requires_shipping'), ], [ 'type' => 'input', 'name' => 'lineitem_fulfillment_status', 'value' => $product_raw_data['Lineitem fulfillment status'], 'label' => __('cms.order.others_section.shopify.lineitem_fulfillment_status'), ], [ 'type' => 'input', 'name' => 'billing_remarks', 'value' => $billing_remarks, 'label' => __('cms.order.others_section.shopify.billing_remarks'), ], [ 'type' => 'input', 'name' => 'billing_company', 'value' => $product_raw_data['Billing Company'], 'label' => __('cms.order.others_section.shopify.billing_company'), ], [ 'type' => 'input', 'name' => 'shipping_company', 'value' => $product_raw_data['Shipping Company'], 'label' => __('cms.order.others_section.shopify.shipping_company'), ], [ 'type' => 'input', 'name' => 'remarks', 'value' => $remarks, 'label' => __('cms.order.others_section.shopify.remarks'), ], [ 'type' => 'input', 'name' => 'cancelled_at', 'value' => $product_raw_data['Cancelled at'], 'label' => __('cms.order.others_section.shopify.cancelled_at'), ], [ 'type' => 'input', 'name' => 'refunded_amount', 'value' => $product_raw_data['Refunded Amount'], 'label' => __('cms.order.others_section.shopify.refunded_amount'), ], [ 'type' => 'input', 'name' => 'vendor', 'value' => $product_raw_data['Vendor'], 'label' => __('cms.order.others_section.shopify.vendor'), ], [ 'type' => 'input', 'name' => 'risk_level', 'value' => $product_raw_data['Risk Level'], 'label' => __('cms.order.others_section.shopify.risk_level'), ], [ 'type' => 'input', 'name' => 'lineitem_discount', 'value' => $product_raw_data['Lineitem discount'], 'label' => __('cms.order.others_section.shopify.lineitem_discount'), ], [ 'type' => 'input', 'name' => 'tax_info', 'value' => $tax_info, 'label' => __('cms.order.others_section.shopify.tax_info'), ], [ 'type' => 'input', 'name' => 'receipt_number', 'value' => $product_raw_data['Receipt Number'], 'label' => __('cms.order.others_section.shopify.receipt_number'), ], [ 'type' => 'input', 'name' => 'source', 'value' => $product_raw_data['Source'], 'label' => __('cms.order.others_section.shopify.source'), ], ]; break; # shopify end case '5': # ga $fields = [ [ 'type' => 'input', 'name' => 'shipping_policy', 'value' => $product_raw_data['발송정책'], 'label' => 'Shipping Policy', ], [ 'type' => 'input', 'name' => 'Sales Method', 'value' => $product_raw_data['판매방식'], 'label' => 'Sales Method', ], [ 'type' => 'input', 'name' => 'Order Type', 'value' => $product_raw_data['주문종류'], 'label' => 'Order Type', ], [ 'type' => 'input', 'name' => 'scheduled_shipping_date', 'value' => $product_raw_data['발송예정일'], 'label' => 'Delivery Start Date', ], [ 'type' => 'input', 'name' => 'shipping_fee', 'value' => $product_raw_data['배송비'], 'label' => 'Shipping Fee Payment Method', ], [ 'type' => 'input', 'name' => 'gifts', 'value' => $product_raw_data['사은품'], 'label' => 'Gifts', ], [ 'type' => 'input', 'name' => 'seller_detailed_management_code', 'value' => $product_raw_data['판매자 상세관리코드'], 'label' => 'Seller Detailed Management Code', ], [ 'type' => 'input', 'name' => 'sstimated_settlement_amount', 'value' => $product_raw_data['정산예정금액'], 'label' => 'Estimated Settlement Amount', ], [ 'type' => 'input', 'name' => 'service_fee', 'value' => $product_raw_data['서비스이용료'], 'label' => 'Service Fee', ], [ 'type' => 'input', 'name' => 'seller_coupon_discount', 'value' => $product_raw_data['판매자쿠폰할인'], 'label' => 'Seller Coupon Discount', ], [ 'type' => 'input', 'name' => 'seller_coupon_discount', 'value' => $product_raw_data['판매자쿠폰할인'], 'label' => 'Seller Coupon Discount', ], [ 'type' => 'input', 'name' => 'purchase_coupon_applied_amount', 'value' => $product_raw_data['구매쿠폰적용금액'], 'label' => 'Purchase coupon applied amount', ], [ 'type' => 'input', 'name' => 'auction_discount_for_excellent_members', 'value' => $product_raw_data['(옥션)우수회원할인'], 'label' => '(Auction) Discount for excellent members', ], [ 'type' => 'input', 'name' => 'multiple_purchase_discount', 'value' => $product_raw_data['복수구매할인'], 'label' => 'Multiple purchase discount', ], [ 'type' => 'input', 'name' => 'earn_smile_cash', 'value' => $product_raw_data['스마일캐시적립'], 'label' => 'Earn Smile Cash', ], [ 'type' => 'input', 'name' => 'name_of_partner', 'value' => $product_raw_data['제휴사명'], 'label' => 'Name of Partner', ], ]; break; # ga end case '6': # 11st //print_r($product_raw_data); // dd($product_raw_data); $fields = [ [ 'type' => 'input', 'name' => 'invoice_no', 'value' => $product_raw_data['송장번호'], 'label' => 'External Invoice No.', ], [ 'type' => 'input', 'name' => 'sales_method', 'value' => $product_raw_data['판매방식'], 'label' => 'Sales method', ], [ 'type' => 'input', 'name' => 'whether_to_print_barcode', 'value' => $product_raw_data['바코드 출력여부'], 'label' => 'Whether to Print Barcode', ], [ 'type' => 'input', 'name' => 'worldwide_shipping_recipient', 'value' => $product_raw_data['전세계배송 수취인'], 'label' => 'Worldwide Shipping Recipient', ], [ 'type' => 'input', 'name' => 'worldwide_shipping_contact_1', 'value' => $product_raw_data['전세계배송 연락처1'], 'label' => 'Worldwide Shipping Contact 1', ], [ 'type' => 'input', 'name' => 'worldwide_shipping_contact_2', 'value' => $product_raw_data['전세계배송 연락처2'], 'label' => 'Worldwide Shipping Contact 2', ], [ 'type' => 'input', 'name' => 'shipping_zip_code', 'value' => $product_raw_data['전세계배송 Zip Code'], 'label' => 'Shipping Zip Code', ], [ 'type' => 'input', 'name' => 'worldwide_delivery_address', 'value' => $product_raw_data['전세계배송 Address'], 'label' => 'Worldwide Delivery Address', ], [ 'type' => 'input', 'name' => 'shipping_fee_payment_method', 'value' => $product_raw_data['배송비결제방식'], 'label' => 'Shipping Fee Payment Method', ], [ 'type' => 'input', 'name' => 'payment_method_for_inter_island_delivery', 'value' => $product_raw_data['도서산간배송비결제방식'], 'label' => 'Payment Method for Delivery Between Islands', ], [ 'type' => 'input', 'name' => 'shipping_cost_between_islands_and_mountains', 'value' => $product_raw_data['도서산간 배송비'], 'label' => 'Shipping Cost between Islands and Mountains', ], [ 'type' => 'input', 'name' => 'seller_supplier', 'value' => $product_raw_data['판매자/공급업체'], 'label' => 'Seller/Supplier', ], [ 'type' => 'input', 'name' => 'shipment_processing_date', 'value' => $product_raw_data['발송처리일'], 'label' => 'Shipment processing date', ], [ 'type' => 'input', 'name' => 'estimated_delivery_date', 'value' => $product_raw_data['예상발송일'], 'label' => 'Estimated delivery date', ], [ 'type' => 'input', 'name' => 'delivery_completion', 'value' => $product_raw_data['배송완료여부'], 'label' => 'Delivery completion', ], [ 'type' => 'input', 'name' => 'bundle_or_not', 'value' => $product_raw_data['묶음여부'], 'label' => 'Bundle or not', ], [ 'type' => 'input', 'name' => 'delivery_subject', 'value' => $product_raw_data['배송주체'], 'label' => 'Delivery subject', ], [ 'type' => 'input', 'name' => 'shipping_fee_coupon', 'value' => $product_raw_data['배송비쿠폰'], 'label' => 'Shipping fee coupon', ], [ 'type' => 'input', 'name' => 'customer_payment_shipping_fee', 'value' => $product_raw_data['고객결제배송비'], 'label' => 'Customer Payment Shipping Fee', ], [ 'type' => 'input', 'name' => 'gift_wrapping', 'value' => $product_raw_data['선물포장'], 'label' => 'Gift wrapping', ], [ 'type' => 'input', 'name' => 'service_fee_policy', 'value' => $product_raw_data['서비스이용료 정책'], 'label' => 'Service fee policy', ], [ 'type' => 'input', 'name' => 'basic_service_fee_rate', 'value' => $product_raw_data['기본서비스이용료(율)'], 'label' => 'Basic service fee (rate)', ], [ 'type' => 'input', 'name' => 'service_fee', 'value' => $product_raw_data['서비스이용료'], 'label' => 'Service fee', ], [ 'type' => 'input', 'name' => 'estimated_settlement_amount', 'value' => $product_raw_data['정산예정금액'], 'label' => 'Estimated settlement amount', ], [ 'type' => 'input', 'name' => 'Order date and time', 'value' => $product_raw_data['주문일시'], 'label' => 'Order date and time', ], [ 'type' => 'input', 'name' => 'additional_configuration', 'value' => $product_raw_data['추가구성여부'], 'label' => 'Additional configuration', ], [ 'type' => 'input', 'name' => 'invoice_modification_date_and_time', 'value' => $product_raw_data['송장수정일시'], 'label' => 'Invoice modification date and time', ], [ 'type' => 'input', 'name' => 'whether_to_process_purchase_confirmation_request', 'value' => $product_raw_data['구매확정요청처리여부'], 'label' => 'Whether to process purchase confirmation request', ], [ 'type' => 'input', 'name' => 'reasons_for_request_for_confirmation_of_purchase', 'value' => $product_raw_data['구매확정요청불가사유'], 'label' => 'Reasons for request for confirmation of purchase', ], [ 'type' => 'input', 'name' => 'shipping_place_name', 'value' => $product_raw_data['출고지명'], 'label' => 'Shipping place name', ], [ 'type' => 'input', 'name' => 'overseas_direct_purchase_customs_clearance_number', 'value' => isset($product_raw_data['해외직구 통관번호 구분']) ? $product_raw_data['해외직구 통관번호 구분'] : null, 'label' => 'Overseas direct purchase customs clearance number', ], [ 'type' => 'input', 'name' => 'recipient_country_information', 'value' => isset($product_raw_data['수령인 국가정보']) ? $product_raw_data['수령인 국가정보'] : null, 'label' => 'Recipient country information', ], [ 'type' => 'input', 'name' => 't_membership_usage_amount', 'value' => $product_raw_data['T멤버십사용금액'], 'label' => 'T-membership usage amount', ], [ 'type' => 'input', 'name' => 'customer_class', 'value' => $product_raw_data['고객등급'], 'label' => 'Customer class', ], [ 'type' => 'input', 'name' => 'market_classification', 'value' => $product_raw_data['마켓구분'], 'label' => 'Market classification', ], [ 'type' => 'input', 'name' => 'worldwide_shipping', 'value' => $product_raw_data['전세계배송'], 'label' => 'Worldwide shipping', ], [ 'type' => 'input', 'name' => '11st_pay_transaction', 'value' => $product_raw_data['11stPay 거래'], 'label' => '11stPay transaction', ], [ 'type' => 'input', 'name' => 'export_agency_fee', 'value' => $product_raw_data['수출대행수수료(%)'], 'label' => 'Export agency fee (%)', ], [ 'type' => 'input', 'name' => 'delivery_on_desired_date', 'value' => $product_raw_data['희망일배송'], 'label' => 'Delivery on desired date', ], [ 'type' => 'input', 'name' => 'whether_the_abandoned_home_appliance', 'value' => $product_raw_data['폐가전여부'], 'label' => 'Whether the abandoned home appliance', ], [ 'type' => 'input', 'name' => 'model_code', 'value' => $product_raw_data['모델코드'], 'label' => 'Model code', ], ]; break; # 11st end case '7': # Interpark // dd($product_raw_data); $fields = [ [ 'type' => 'input', 'name' => 'receipt_number', 'value' => $product_raw_data['영수증번호'], 'label' => 'Receipt Number', ], [ 'type' => 'input', 'name' => 'shipping_fee_payment_method', 'value' => $product_raw_data['배송비납부방식(선불,착불)'], 'label' => 'Shipping Fee Payment Method', ], [ 'type' => 'input', 'name' => 'gifts', 'value' => $product_raw_data['사은품'], 'label' => 'Gifts', ], [ 'type' => 'input', 'name' => 'shipping_date', 'value' => $product_raw_data['발송예정일'], 'label' => 'Shipping date', ], [ 'type' => 'input', 'name' => 'manufacturer_publisher', 'value' => $product_raw_data['제조사/출판사'], 'label' => 'Manufacturer/Publisher', ], [ 'type' => 'input', 'name' => 'gift_message', 'value' => $product_raw_data['선물메세지'], 'label' => 'Gift message', ], [ 'type' => 'input', 'name' => 'product_back', 'value' => $product_raw_data['상품뒤문구'], 'label' => 'Product back', ], [ 'type' => 'input', 'name' => 'points_awarded_to_sellers', 'value' => $product_raw_data['판매자부여 포인트'], 'label' => 'Points awarded to sellers', ], [ 'type' => 'input', 'name' => 'seller_product_option_number', 'value' => $product_raw_data['판매자상품옵션번호'], 'label' => 'Seller product option number', ], [ 'type' => 'input', 'name' => 'quantity_of_free_gifts', 'value' => $product_raw_data['사은품수량'], 'label' => 'Quantity of free gifts', ], [ 'type' => 'input', 'name' => 'whether_special_sales', 'value' => $product_raw_data['특판여부'], 'label' => 'Whether special sales', ], [ 'type' => 'input', 'name' => 'sales_cost', 'value' => $product_raw_data['판매원가'], 'label' => 'Sales cost', ], [ 'type' => 'input', 'name' => 'company_coupon_amount', 'value' => $product_raw_data['업체쿠폰금액'], 'label' => 'Company coupon amount', ], [ 'type' => 'input', 'name' => 'basic_sales_fee', 'value' => $product_raw_data['기본판매수수료'], 'label' => 'Basic Sales Fee', ], [ 'type' => 'input', 'name' => 'point_mall_sales_fee', 'value' => $product_raw_data['포인트몰판매수수료'], 'label' => 'Point Mall Sales Fee', ], [ 'type' => 'input', 'name' => 'affiliate_marketing_fee', 'value' => $product_raw_data['제휴마케팅수수료'], 'label' => 'Affiliate Marketing Fee', ], [ 'type' => 'input', 'name' => 'interest_free_installment_fee', 'value' => $product_raw_data['무이자할부수수료'], 'label' => 'Interest-free installment fee', ], [ 'type' => 'input', 'name' => 'estimated_shipping_quantity', 'value' => $product_raw_data['발송예정수량'], 'label' => 'Estimated Shipping Quantity', ], [ 'type' => 'input', 'name' => 'standard_shipping_date', 'value' => $product_raw_data['기준출고일'], 'label' => 'Standard shipping date', ], [ 'type' => 'input', 'name' => 'reasons_for_change_of_scheduled_shipment_date', 'value' => $product_raw_data['발송예정일 변경사유'], 'label' => 'Reasons for change of scheduled shipment date', ], ]; break; // Interpark end case '8': # Naver Store Farm // dd($product_raw_data); $fields = [ [ 'type' => 'input', 'name' => 'invoice_no', 'value' => $product_raw_data['송장번호'], 'label' => 'External Invoice No.', ], [ 'type' => 'input', 'name' => 'gifts', 'value' => $product_raw_data['사은품'], 'label' => 'Gifts', ], [ 'type' => 'input', 'name' => 'product_order_number', 'value' => $product_raw_data['상품주문번호'], 'label' => 'Product order number', ], [ 'type' => 'input', 'name' => 'sales_channel', 'value' => $product_raw_data['판매채널'], 'label' => 'Sales Channel', ], [ 'type' => 'input', 'name' => 'Shipping date', 'value' => $product_raw_data['발송일'], 'label' => 'Shipping date', ], [ 'type' => 'input', 'name' => 'order_details', 'value' => $product_raw_data['주문세부상태'], 'label' => 'Order details', ], [ 'type' => 'input', 'name' => 'payment_location', 'value' => $product_raw_data['결제위치'], 'label' => 'Payment location', ], [ 'type' => 'input', 'name' => 'product_type', 'value' => $product_raw_data['상품종류'], 'label' => 'Product type', ], [ 'type' => 'input', 'name' => 'option_information', 'value' => $product_raw_data['옵션정보'], 'label' => 'Option information', ], [ 'type' => 'input', 'name' => 'option_management_code', 'value' => $product_raw_data['옵션관리코드'], 'label' => 'Option management code', ], [ 'type' => 'input', 'name' => 'option_price', 'value' => $product_raw_data['옵션가격'], 'label' => 'Option price', ], [ 'type' => 'input', 'name' => 'shipping_processing_date', 'value' => $product_raw_data['발송처리일'], 'label' => 'Shipping processing date', ], [ 'type' => 'input', 'name' => 'invoice_output_date', 'value' => $product_raw_data['송장출력일'], 'label' => 'Invoice output date', ], [ 'type' => 'input', 'name' => 'shipping_cost_form', 'value' => $product_raw_data['배송비 형태'], 'label' => 'Shipping cost form', ], [ 'type' => 'input', 'name' => 'shipping_cost_bundle_number', 'value' => $product_raw_data['배송비 묶음번호'], 'label' => 'Shipping cost bundle number', ], [ 'type' => 'input', 'name' => 'shipping_type', 'value' => $product_raw_data['배송비 유형'], 'label' => 'Shipping type', ], [ 'type' => 'input', 'name' => 'jeju_do_island_additional_shipping_fee', 'value' => $product_raw_data['제주/도서 추가배송비'], 'label' => 'Jeju/do Island additional shipping fee', ], [ 'type' => 'input', 'name' => 'shipping_cost_discount', 'value' => $product_raw_data['배송비 할인액'], 'label' => 'Shipping cost discount', ], [ 'type' => 'input', 'name' => 'seller_internal_code_1', 'value' => $product_raw_data['판매자 내부코드1'], 'label' => 'Seller Internal Code 1', ], [ 'type' => 'input', 'name' => 'seller_internal_code_2', 'value' => $product_raw_data['판매자 내부코드2'], 'label' => 'Seller Internal Code 2', ], // [ // 'type' => 'input', // 'name' => 'for_fee_payment_method', // 'value' => $product_raw_data['수수료결제방식'], // 'label' => 'For fee payment method', // ], [ 'type' => 'input', 'name' => 'sales_linkage_fee', 'value' => $product_raw_data['매출연동 수수료'], 'label' => 'Sales linkage fee', ], [ 'type' => 'input', 'name' => 'sales_linkage_fee_classification', 'value' => $product_raw_data['매출연동 수수료 구분']??null, 'label' => 'Sales linkage fee classification', ], [ 'type' => 'input', 'name' => 'estimated_settlement_amount', 'value' => $product_raw_data['정산예정금액'], 'label' => 'Estimated settlement amount', ], [ 'type' => 'input', 'name' => 'funnel', 'value' => isset($product_raw_data['매출연동수수료 유입경로'])??null, 'label' => 'funnel', ], [ 'type' => 'input', 'name' => 'individual_customs_clearance_code', 'value' => $product_raw_data['개인통관고유부호'], 'label' => 'Individual customs clearance code', ], [ 'type' => 'input', 'name' => 'delivery_attribute', 'value' => $product_raw_data['배송속성'], 'label' => 'Delivery attribute', ], [ 'type' => 'input', 'name' => 'shipping_deadline', 'value' => $product_raw_data['발송기한'], 'label' => 'Shipping deadline', ], ]; break; case '17': # amazon $is_business_order = null; if (isset($product_raw_data['is_business_order'])) { $is_business_order = $product_raw_data['is_business_order'] ? 1 : 0; } $fields = [ [ 'type' => 'input', 'input_type' => 'date', 'name' => 'purchase_date', 'value' => $product_raw_data['purchase-date'], 'label' => 'Purchase Date', ], [ 'type' => 'input', 'name' => 'ship_service_level', 'value' => $product_raw_data['ship-service-level'], 'label' => __('cms.order.others_section.amazon.ship_service_level'), ], [ 'type' => 'input', 'name' => 'product_order_item', 'value' => $product_raw_data['order-item-id'], 'label' => 'Order Item ID', ], [ 'type' => 'input', 'input_type' => 'date', 'name' => 'delivery_start_date', 'value' => $product_raw_data['delivery-start-date'], 'label' => __('cms.order.others_section.amazon.delivery_start_date'), ], [ 'type' => 'input', 'input_type' => 'date', 'name' => 'delivery_end_date', 'value' => $product_raw_data['delivery-end-date'], 'label' => 'Delivery End Date', ], [ 'type' => 'input', 'name' => 'ship-city', 'value' => $product_raw_data['ship-city'], 'label' => 'Ship City', ], [ 'type' => 'input', 'name' => 'delivery_time_zone', 'value' => $product_raw_data['delivery-time-zone'], 'label' => 'Delivery Time Zone', ], [ 'type' => 'input', 'name' => 'ship_state', 'value' => $product_raw_data['ship-state'], 'label' => 'Ship State', ], [ 'type' => 'input', 'name' => 'delivery_Instructions', 'value' => $product_raw_data['delivery-Instructions'], 'label' => 'Delivery Instructions', ], ]; break; case '13': # Rakuten $fields = [ [ 'type' => 'input', 'name' => 'other_status', 'value' => $product_raw_data['ステータス'], 'label' => 'Status', ], [ 'type' => 'input', 'name' => 'other_sub_status_id', 'value' => $product_raw_data['サブステータスID'], 'label' => 'Sub Status ID', ], [ 'type' => 'input', 'name' => 'other_sub_status', 'value' => $product_raw_data['サブステータス'], 'label' => 'Sub Status', ], [ 'type' => 'input', 'name' => 'other_date_time', 'value' => $product_raw_data['注文日時'], 'label' => 'Order Date & Time', ], [ 'type' => 'input', 'name' => 'Shipping other_cancellation_date', 'value' => $product_raw_data['キャンセル期限日'], 'label' => 'Cancellation Deadline', ], [ 'type' => 'input', 'name' => 'other_confirmation_date', 'value' => $product_raw_data['注文確認日時'], 'label' => 'Order Confirmation Date & Time', ], [ 'type' => 'input', 'name' => 'other_shipping_instruction_date', 'value' => $product_raw_data['発送指示日時'], 'label' => 'Shipping Instruction Date & Time', ], [ 'type' => 'input', 'name' => 'other_shipment_completion_date', 'value' => $product_raw_data['発送完了報告日時'], 'label' => 'Shipment Completion Report Date & Time', ], [ 'type' => 'input', 'name' => 'other_credit_payment_method', 'value' => $product_raw_data['クレジットカード支払い方法'], 'label' => 'Credit Card Payment Method', ], [ 'type' => 'input', 'name' => 'other_credit_card_payment_count', 'value' => $product_raw_data['クレジットカード支払い回数'], 'label' => 'Credit Card Payment Count', ], [ 'type' => 'input', 'name' => 'other_distribution_division', 'value' => $product_raw_data['配送区分'], 'label' => 'Distribution Division', ], [ 'type' => 'input', 'name' => 'other_multiple_dest_flag', 'value' => $product_raw_data['複数送付先フラグ'], 'label' => 'Multiple Destination Flags', ], [ 'type' => 'input', 'name' => 'other_dest_match_flag', 'value' => $product_raw_data['送付先一致フラグ'], 'label' => 'Destination Match Flag', ], [ 'type' => 'input', 'name' => 'other_remote_island_flag', 'value' => $product_raw_data['離島フラグ'], 'label' => 'Remote Island Flag', ], [ 'type' => 'input', 'name' => 'other_rakuten_checking_flag', 'value' => $product_raw_data['楽天確認中フラグ'], 'label' => 'Rakuten Checking Flag', ], [ 'type' => 'input', 'name' => 'other_warning_display_type', 'value' => $product_raw_data['警告表示タイプ'], 'label' => 'Warning Display Type', ], [ 'type' => 'input', 'name' => 'other_rakuten_member_flag', 'value' => $product_raw_data['楽天会員フラグ'], 'label' => 'Rakuten Member Flag', ], [ 'type' => 'input', 'name' => 'other_purchase_history', 'value' => $product_raw_data['購入履歴修正有無フラグ'], 'label' => 'Purchase History Correction Presence / Absence Flag', ], [ 'type' => 'input', 'name' => 'other_point_usage', 'value' => $product_raw_data['ポイント利用額'], 'label' => 'Point usage amount', ], [ 'type' => 'input', 'name' => 'other_total_coupon_usage', 'value' => $product_raw_data['クーポン利用総額'], 'label' => 'Total coupon usage', ], [ 'type' => 'input', 'name' => 'other_store_issued_coupon_amount', 'value' => $product_raw_data['店舗発行クーポン利用額'], 'label' => 'Store-issued coupon usage amount', ], [ 'type' => 'input', 'name' => 'other_rakuten_issed_coupon_amount', 'value' => $product_raw_data['楽天発行クーポン利用額'], 'label' => 'Rakuten issued coupon usage amount', ], [ 'type' => 'input', 'name' => 'other_buyer_gender', 'value' => $product_raw_data['注文者性別'], 'label' => 'Buyer Gender', ], [ 'type' => 'input', 'name' => 'other_application_number', 'value' => $product_raw_data['申込番号'], 'label' => 'Application Number', ], [ 'type' => 'input', 'name' => 'other_application_deliveries', 'value' => $product_raw_data['申込お届け回数'], 'label' => 'Number of Application Deliveries', ], [ 'type' => 'input', 'name' => 'other_dest_id', 'value' => $product_raw_data['送付先ID'], 'label' => 'Destination ID', ], [ 'type' => 'input', 'name' => 'other_delivery_fee', 'value' => $product_raw_data['送付先代引料'], 'label' => 'Delivery Fee', ], [ 'type' => 'input', 'name' => 'other_noshi', 'value' => $product_raw_data['のし'], 'label' => 'Noshi', ], [ 'type' => 'input', 'name' => 'other_commodity_detail_id', 'value' => $product_raw_data['商品明細ID'], 'label' => 'Commodity Detail ID', ], [ 'type' => 'input', 'name' => 'other_commodity_id', 'value' => $product_raw_data['商品ID'], 'label' => 'Commodity ID', ], [ 'type' => 'input', 'name' => 'other_product_control_no', 'value' => $product_raw_data['商品管理番号'], 'label' => 'Product Control Number', ], [ 'type' => 'input', 'name' => 'other_shipping_included', 'value' => $product_raw_data['送料込別'], 'label' => 'Shipping Fee Included (Extra)', ], [ 'type' => 'input', 'name' => 'other_tax_not_included', 'value' => $product_raw_data['税込別'], 'label' => 'Tax Included (Extra)', ], [ 'type' => 'input', 'name' => 'other_cash_on_delivery', 'value' => $product_raw_data['代引手数料込別'], 'label' => 'Cash on Delivery Fee Included (Extra)', ], [ 'type' => 'input', 'name' => 'other_items', 'value' => $product_raw_data['項目・選択肢'], 'label' => 'Items/Choices', ], [ 'type' => 'input', 'name' => 'other_point_magnification', 'value' => $product_raw_data['ポイント倍率'], 'label' => 'Point Magnification', ], [ 'type' => 'input', 'name' => 'other_delivery_info', 'value' => $product_raw_data['納期情報'], 'label' => 'Delivery Information', ], [ 'type' => 'input', 'name' => 'other_inventory_type', 'value' => $product_raw_data['在庫タイプ'], 'label' => 'Inventory Type', ], [ 'type' => 'input', 'name' => 'other_wrapping_title1', 'value' => $product_raw_data['ラッピングタイトル1'], 'label' => 'Wrapping Title 1', ], [ 'type' => 'input', 'name' => 'other_wrapping_name1', 'value' => $product_raw_data['ラッピング名1'], 'label' => 'Wrapping Name 1', ], [ 'type' => 'input', 'name' => 'other_wrapping_fee1', 'value' => $product_raw_data['ラッピング料金1'], 'label' => 'Wrapping Fee 1', ], [ 'type' => 'input', 'name' => 'other_tax_not1', 'value' => $product_raw_data['ラッピング税込別1'], 'label' => 'Wrapping Tax Not Included 1', ], [ 'type' => 'input', 'name' => 'other_type1', 'value' => $product_raw_data['ラッピング種類1'], 'label' => 'Wrapping Type 1', ], [ 'type' => 'input', 'name' => 'other_wrapping_title2', 'value' => $product_raw_data['ラッピングタイトル2'], 'label' => 'Wrapping Title 2', ], [ 'type' => 'input', 'name' => 'other_wrapping_name2', 'value' => $product_raw_data['ラッピング名2'], 'label' => 'Wrapping Name 2', ], [ 'type' => 'input', 'name' => 'other_wrapping_fee2', 'value' => $product_raw_data['ラッピング料金2'], 'label' => 'Wrapping Fee 2', ], [ 'type' => 'input', 'name' => 'other_wrapping_tax_not2', 'value' => $product_raw_data['ラッピング税込別2'], 'label' => ' Wrapping Tax Not Included 2', ], [ 'type' => 'input', 'name' => 'other_wrapping_type2', 'value' => $product_raw_data['ラッピング種類2'], 'label' => 'Wrapping Type 2', ], [ 'type' => 'input', 'name' => 'other_delivery_timezone', 'value' => $product_raw_data['お届け時間帯'], 'label' => 'Delivery Time Zone', ], [ 'type' => 'input', 'name' => 'other_designated_delivery_date', 'value' => $product_raw_data['お届け日指定'], 'label' => 'Designated Delivery Date', ], [ 'type' => 'input', 'name' => 'other_manager', 'value' => $product_raw_data['担当者'], 'label' => 'Manager', ], [ 'type' => 'input', 'name' => 'other_a_word_memo', 'value' => $product_raw_data['ひとことメモ'], 'label' => 'A Word Memo', ], [ 'type' => 'input', 'name' => 'other_email_insert', 'value' => $product_raw_data['メール差込文 (お客様へのメッセージ)'], 'label' => 'Email Insert (message to customer)', ], [ 'type' => 'input', 'name' => 'other_gift_delivery', 'value' => $product_raw_data['ギフト配送希望'], 'label' => 'Gift Delivery Request', ], [ 'type' => 'input', 'name' => 'other_terminal_used', 'value' => $product_raw_data['利用端末'], 'label' => 'Terminal Used', ], [ 'type' => 'input', 'name' => 'other_email_carrier', 'value' => $product_raw_data['メールキャリアコード'], 'label' => 'Email Carrier Code', ], [ 'type' => 'input', 'name' => 'other_easy_tomorrow', 'value' => $product_raw_data['あす楽希望フラグ'], 'label' => 'Easy Tomorrow Request Flag', ], [ 'type' => 'input', 'name' => 'other_drug_order_flag', 'value' => $product_raw_data['医薬品受注フラグ'], 'label' => 'Drug Order Flag', ], [ 'type' => 'input', 'name' => 'other_rakuten_super', 'value' => $product_raw_data['楽天スーパーDEAL商品受注フラグ'], 'label' => 'Rakuten Super DEAL Product Order Flag', ], [ 'type' => 'input', 'name' => 'other_membership_program', 'value' => $product_raw_data['メンバーシッププログラム受注タイプ'], 'label' => 'Membership program order type', ], [ 'type' => 'input', 'name' => 'other_settlement_fee', 'value' => $product_raw_data['決済手数料'], 'label' => 'Settlement Fee', ], [ 'type' => 'input', 'name' => 'other_total_orderer', 'value' => $product_raw_data['注文者負担金合計'], 'label' => 'Total Orderer Contribution', ], [ 'type' => 'input', 'name' => 'other_total_store', 'value' => $product_raw_data['店舗負担金合計'], 'label' => 'Total Store Contribution', ], [ 'type' => 'input', 'name' => 'other_settlement_fee_tax_rate', 'value' => $product_raw_data['決済手数料税率'], 'label' => 'Settlement Fee Tax Rate', ], [ 'type' => 'input', 'name' => 'other_wrapping_tax_rate1', 'value' => $product_raw_data['ラッピング税率1'], 'label' => 'Wrapping tax rate 1', ], [ 'type' => 'input', 'name' => 'other_wrapping_tax_amount1', 'value' => $product_raw_data['ラッピング税額1'], 'label' => 'Wrapping tax amount 1', ], [ 'type' => 'input', 'name' => 'other_wrapping_tax_rate2', 'value' => $product_raw_data['ラッピング税率2'], 'label' => 'Wrapping Tax Rate 2', ], [ 'type' => 'input', 'name' => 'other_wrapping_tax_amount2', 'value' => $product_raw_data['ラッピング税額2'], 'label' => 'Wrapping tax amount 2', ], [ 'type' => 'input', 'name' => 'other_total_non_dest_tax', 'value' => $product_raw_data['送付先外税合計'], 'label' => 'Total non-destination tax', ], [ 'type' => 'input', 'name' => 'other_shipping_tax_rate', 'value' => $product_raw_data['送付先送料税率'], 'label' => 'Shipping Tax Rate', ], [ 'type' => 'input', 'name' => 'other_cash_on_delivery_tax', 'value' => $product_raw_data['送付先代引料税率'], 'label' => 'Cash On Delivery Tax Rate', ], [ 'type' => 'input', 'name' => 'other_commodity_tax', 'value' => $product_raw_data['商品税率'], 'label' => 'Commodity Tax Rate', ], [ 'type' => 'input', 'name' => 'other_price_include_tax', 'value' => $product_raw_data['商品毎税込価格'], 'label' => 'Price Including Tax For Each Product', ], [ 'type' => 'input', 'name' => 'other_10_tax_rate', 'value' => $product_raw_data['10%税率'], 'label' => '10% Tax Rate', ], [ 'type' => 'input', 'name' => 'other_10_tax_requested_amount', 'value' => $product_raw_data['10%請求金額'], 'label' => '10% Of The Requested Amount', ], [ 'type' => 'input', 'name' => 'other_10_tax_billed_amount', 'value' => $product_raw_data['10%請求額に対する税額'], 'label' => 'Tax Amount For 10% Billed Amount', ], [ 'type' => 'input', 'name' => 'other_10_total_amount', 'value' => $product_raw_data['10%合計金額'], 'label' => '10% Of The Total Amount', ], [ 'type' => 'input', 'name' => 'other_10_settlement_fee', 'value' => $product_raw_data['10%決済手数料'], 'label' => '10% Settlement Fee', ], [ 'type' => 'input', 'name' => 'other_10_coupon_discount', 'value' => $product_raw_data['10%クーポン割引額'], 'label' => '10% Coupon Discount Amount', ], [ 'type' => 'input', 'name' => 'other_10_point_used', 'value' => $product_raw_data['10%利用ポイント数'], 'label' => '10% Points Used', ], [ 'type' => 'input', 'name' => 'other_8_tax_rate', 'value' => $product_raw_data['8%税率'], 'label' => '8% Tax Rate', ], [ 'type' => 'input', 'name' => 'other_8_tax_requested_amount', 'value' => $product_raw_data['8%請求金額'], 'label' => '8% Of The Requested Amount', ], [ 'type' => 'input', 'name' => 'other_8_tax_billed_amount', 'value' => $product_raw_data['8%請求額に対する税額'], 'label' => '8% Tax On Billed Amount', ], [ 'type' => 'input', 'name' => 'other_8_total_amount', 'value' => $product_raw_data['8%合計金額'], 'label' => '8% Of Total Amount', ], [ 'type' => 'input', 'name' => 'other_8_settlement_fee', 'value' => $product_raw_data['8%決済手数料'], 'label' => '8% settlement fee', ], [ 'type' => 'input', 'name' => 'other_8_coupon_discount', 'value' => $product_raw_data['8%クーポン割引額'], 'label' => '8% Coupon Discount Amount', ], [ 'type' => 'input', 'name' => 'other_8_point_used', 'value' => $product_raw_data['8%利用ポイント数'], 'label' => '8% Number Of Points Used', ], [ 'type' => 'input', 'name' => 'other_0_tax_rate', 'value' => $product_raw_data['0%税率'], 'label' => '0% Tax Rate', ], [ 'type' => 'input', 'name' => 'other_0_tax_requested_amount', 'value' => $product_raw_data['0%請求金額'], 'label' => '0% Request Amount', ], [ 'type' => 'input', 'name' => 'other_0_tax_billed_amount', 'value' => $product_raw_data['0%請求額に対する税額'], 'label' => 'Tax Amount For 0% Billed Amount', ], [ 'type' => 'input', 'name' => 'other_0_total_amount', 'value' => $product_raw_data['0%合計金額'], 'label' => '0% Of Total Amount', ], [ 'type' => 'input', 'name' => 'other_0_settlement_fee', 'value' => $product_raw_data['0%決済手数料'], 'label' => '0% Settlement Fee', ], [ 'type' => 'input', 'name' => 'other_0_coupon_discount', 'value' => $product_raw_data['0%クーポン割引額'], 'label' => '0% Coupon Discount Amount', ], [ 'type' => 'input', 'name' => 'other_0_point_used', 'value' => $product_raw_data['0%利用ポイント数'], 'label' => '0% Number Of Points Used', ], [ 'type' => 'input', 'name' => 'other_single_item', 'value' => $product_raw_data['単品配送フラグ'], 'label' => 'Single Item Delivery Flag', ], [ 'type' => 'input', 'name' => 'other_shipping_company', 'value' => $product_raw_data['購入時配送会社'], 'label' => 'Shipping Company At The Time Of Purchase', ], [ 'type' => 'input', 'name' => 'other_no_receipts', 'value' => $product_raw_data['領収書発行回数'], 'label' => 'Number Of Receipts Issued', ], [ 'type' => 'input', 'name' => 'other_receipt_first', 'value' => $product_raw_data['領収書初回発行日時'], 'label' => 'Receipt First Issue Date And Time', ], [ 'type' => 'input', 'name' => 'other_last_issue', 'value' => $product_raw_data['領収書最終発行日時'], 'label' => 'Last Issue Date And Time Of Receipt', ], [ 'type' => 'input', 'name' => 'other_payment_deadline', 'value' => $product_raw_data['支払い期限日'], 'label' => 'Payment Deadline', ], [ 'type' => 'input', 'name' => 'other_payent_method_change_deadline', 'value' => $product_raw_data['支払い方法変更期限日'], 'label' => 'Payment Method Change Deadline', ], [ 'type' => 'input', 'name' => 'other_refund_procedure_dl', 'value' => $product_raw_data['返金手続き期限日'], 'label' => 'Refund procedure deadline', ], [ 'type' => 'input', 'name' => 'other_store_coupon_code', 'value' => $product_raw_data['店舗発行クーポンコード'], 'label' => 'Store Issued Coupon Code', ], [ 'type' => 'input', 'name' => 'other_store_coupon_name', 'value' => $product_raw_data['店舗発行クーポン名'], 'label' => 'Store Issued Coupon Name', ], [ 'type' => 'input', 'name' => 'other_rakuten_coupon_code', 'value' => $product_raw_data['楽天発行クーポンコード'], 'label' => 'Rakuten Issued Coupon Code', ], [ 'type' => 'input', 'name' => 'other_rakuten_coupon_name', 'value' => $product_raw_data['楽天発行クーポン名'], 'label' => 'Rakuten Issued Coupon Name', ], [ 'type' => 'input', 'name' => 'order_rakuten_order_checking', 'value' => $product_raw_data['注文確認日時'], 'label' => 'Order Checking Date & Time', ], [ 'type' => 'input', 'name' => 'order_rakuten_type', 'value' => $product_raw_data['注文種別'], 'label' => 'Order Type', ], ]; break; case '12': # Qoo 10 $product_raw_data['注文日'] = Carbon\Carbon::parse($product_raw_data['注文日']); $fields = [ [ 'type' => 'input', 'name' => 'other_delivery_status', 'value' => $product_raw_data['配送状態'], 'label' => 'Delivery Status', ], [ 'type' => 'input', 'name' => 'other_cart_no', 'value' => $product_raw_data['カート番号'], 'label' => 'Cart Number', ], [ 'type' => 'input', 'name' => 'other_invoice_no', 'value' => $product_raw_data['送り状番号'], 'label' => 'Invoice Number', ], [ 'type' => 'input', 'name' => 'other_date_of_ship', 'value' => $product_raw_data['発送日'], 'label' => 'Date of Shipment', ], [ 'type' => 'input', 'name' => 'other_order_date', 'value' => $product_raw_data['注文日'], 'label' => 'Order Date', ], [ 'type' => 'input', 'name' => 'other_preferred_arrived_date', 'value' => $product_raw_data['お届け希望日'], 'label' => 'Preferred Arrival Date', ], [ 'type' => 'input', 'name' => 'other_estimated_ship_date', 'value' => $product_raw_data['発送予定日'], 'label' => 'Estimated Shipping Date', ], [ 'type' => 'input', 'name' => 'other_delivery_complet_date', 'value' => $product_raw_data['配送完了日'], 'label' => 'Delivery Completion Date', ], [ 'type' => 'input', 'name' => 'other_item_no', 'value' => $product_raw_data['商品番号'], 'label' => 'Item Number', ], [ 'type' => 'input', 'name' => 'other_option_info', 'value' => $product_raw_data['オプション情報'], 'label' => 'Option information', ], [ 'type' => 'input', 'name' => 'other_option_code', 'value' => $product_raw_data['オプションコード'], 'label' => 'Option Code', ], [ 'type' => 'input', 'name' => 'other_bonus', 'value' => $product_raw_data['おまけ'], 'label' => 'Bonus', ], [ 'type' => 'input', 'name' => 'other_payment_site', 'value' => $product_raw_data['決済サイト'], 'label' => 'Payment Site', ], [ 'type' => 'input', 'name' => 'other_currency', 'value' => $product_raw_data['通貨'], 'label' => 'Currency', ], [ 'type' => 'input', 'name' => 'other_total_cost_of_supply', 'value' => $product_raw_data['供給原価の合計'], 'label' => 'Total Cost Of Supply', ], [ 'type' => 'input', 'name' => 'other_buyer_mobile', 'value' => $product_raw_data['購入者携帯電話番号'], 'label' => 'Buyer Mobile Phone Number', ], [ 'type' => 'input', 'name' => 'other_sell_product_code', 'value' => $product_raw_data['販売者商品コード'], 'label' => 'Seller Product Code', ], [ 'type' => 'input', 'name' => 'other_standard_no', 'value' => $product_raw_data['規格番号'], 'label' => 'Standard Number', ], [ 'type' => 'input', 'name' => 'other_present_giver', 'value' => $product_raw_data['プレゼント贈り主'], 'label' => 'Present Giver', ], [ 'type' => 'input', 'name' => 'other_external_ads', 'value' => $product_raw_data['外部広告'], 'label' => 'External Ads', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['素材'], 'label' => 'Material', ], ]; break; case '14': # Wowma $fields = []; $existKey = ['orderId','itemCode','itemName','shippingDayDispText','mailAddress','ordererName','ordererKana','ordererAddress', 'ordererPhoneNumber1','senderName','senderKana','senderZipCode', 'senderAddress','senderPhoneNumber1','senderPhoneNumber2', 'userComment','itemPrice','discount','unit', 'totalItemPrice','postagePrice','totalPrice', 'requestPrice','deliveryMethodId', 'shippingNumber','paymentDate','order-item-id','상품주문번호']; foreach($product_raw_data as $key=>$val){ if(!in_array($key,$existKey)){ array_push($fields,[ 'type'=>'input', 'name'=>$key, 'value'=>$val, 'label'=>$key ]); } } break; case '15': # Japan $fields = [ [ 'type' => 'input', 'name' => 'line_id', 'value' => $product_raw_data['LineId'], 'label' => 'Line ID', ], [ 'type' => 'input', 'name' => 'item_id', 'value' => $product_raw_data['ItemId'], 'label' => 'Item ID', ], [ 'type' => 'input', 'name' => 'subcode', 'value' => $product_raw_data['SubCode'], 'label' => 'Sub Code', ], [ 'type' => 'input', 'name' => 'item_option_name', 'value' => $product_raw_data['ItemOptionName'], 'label' => 'Item Option Name', ], [ 'type' => 'input', 'name' => 'item_option_value', 'value' => $product_raw_data['ItemOptionValue'], 'label' => 'Item Option Value', ], [ 'type' => 'input', 'name' => 'other_preferred_arriv_date', 'value' => $product_raw_data['SubCodeOption'], 'label' => 'Sub Code Option', ], [ 'type' => 'input', 'name' => 'other_estimated_ship_date', 'value' => $product_raw_data['InscriptionName'], 'label' => 'Inscription Name', ], [ 'type' => 'input', 'name' => 'other_delivery_complet_date', 'value' => $product_raw_data['InscriptionValue'], 'label' => 'Inscription Value', ], [ 'type' => 'input', 'name' => 'other_item_no', 'value' => $product_raw_data['UnitGetPoint'], 'label' => 'Unit Get Point', ], [ 'type' => 'input', 'name' => 'other_option_info', 'value' => $product_raw_data['LineGetPoint'], 'label' => 'Line Get Point', ], [ 'type' => 'input', 'name' => 'other_option_code', 'value' => $product_raw_data['PointFspCode'], 'label' => 'Point Fsp Code', ], [ 'type' => 'input', 'name' => 'other_bonus', 'value' => $product_raw_data['Condition'], 'label' => 'Condition', ], [ 'type' => 'input', 'name' => 'other_payment_site', 'value' => $product_raw_data['CouponId'], 'label' => 'Coupon ID', ], [ 'type' => 'input', 'name' => 'other_currency', 'value' => $product_raw_data['CouponDiscount'], 'label' => 'Coupon Discount', ], [ 'type' => 'input', 'name' => 'other_total_cost_of_supply', 'value' => $product_raw_data['OriginalPrice'], 'label' => 'Original Price', ], [ 'type' => 'input', 'name' => 'other_buyer_mobile', 'value' => $product_raw_data['IsGetPointFix'], 'label' => 'Is get point fix', ], [ 'type' => 'input', 'name' => 'other_sell_product_code', 'value' => $product_raw_data['GetPointFixDate'], 'label' => 'Get Point Fix Date', ], [ 'type' => 'input', 'name' => 'other_standard_no', 'value' => $product_raw_data['ReleaseDate'], 'label' => 'Release Date', ], [ 'type' => 'input', 'name' => 'other_present_giver', 'value' => $product_raw_data['GetPointType'], 'label' => 'Get Point Type', ], [ 'type' => 'input', 'name' => 'other_external_ads', 'value' => $product_raw_data['ProductId'], 'label' => 'Product ID', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ParentOrderId'], 'label' => 'Parent Order ID', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['IsAffiliate'], 'label' => 'Is Affiliate', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['FspLicenseCode'], 'label' => 'Fsp License Code', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['FspLicenseName'], 'label' => 'Fsp License Name', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['OrderTimeUnixEpoch'], 'label' => 'Order Time Unix Epoch', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['UsePointType'], 'label' => 'Use Point Type', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['OrderStatus'], 'label' => 'Order Status', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['StoreStatus'], 'label' => 'Store Status', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['Referer'], 'label' => 'Referer', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['EntryPoint'], 'label' => 'Entry Point', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['Clink'], 'label' => 'Clink', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['SuspectMessage'], 'label' => 'Suspect Message', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['IsItemCoupon'], 'label' => 'Is Item Coupon', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['IsShippingCoupon'], 'label' => 'Is Shipping Coupon', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ShipSection1Field'], 'label' => 'Ship Section 1 Field', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ShipSection1Value'], 'label' => 'Ship Section 1 Value', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ShipSection2Field'], 'label' => 'Ship Section 2 Field', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ShipSection2Value'], 'label' => 'Ship Section 2 Value', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ShipMethodName'], 'label' => 'Ship Method Name', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ShipRequestDate'], 'label' => 'Ship Request Date', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ShipRequestTime'], 'label' => 'Ship Request Time', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ArriveType'], 'label' => 'Arrive Type', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ShipInvoiceNumber1'], 'label' => 'Ship Invoice Number 1', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ShipInvoiceNumber2'], 'label' => 'Ship Invoice Number 2', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ShipUrl'], 'label' => 'Ship Url', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ShipDate'], 'label' => 'Ship Date', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['GiftWrapType'], 'label' => 'Gift Wrap Type', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['GiftWrapPaperType'], 'label' => 'Gift Wrap Paper Type', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['GiftWrapName'], 'label' => 'Gift Wrap Name', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['NeedBillSlip'], 'label' => 'Need Bill Slip', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['NeedDetailedSlip'], 'label' => 'Need Detailed Slip', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['NeedReceipt'], 'label' => 'Need Receipt', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['Option1Field'], 'label' => 'Option 1 Field', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['Option1Value'], 'label' => 'Option 1 Value', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['Option2Field'], 'label' => 'Option 2 Field', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['Option2Value'], 'label' => 'Option 2 Value', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['GiftWrapMessage'], 'label' => 'Gift Wrap Message', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['BillSection1Field'], 'label' => 'Bill Section 1 Field', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['BillSection1Value'], 'label' => 'Bill Section 1 Value', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['BillSection2Field'], 'label' => 'Bill Section 2 Field', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['BillSection2Value'], 'label' => 'Bill Section 2 Value', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['BillEmgPhoneNumber'], 'label' => 'Bill Emg Phone Number', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['PayMethod'], 'label' => 'Pay Method', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['PayKind'], 'label' => 'Pay Kind', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['CardPayCount'], 'label' => 'Card Pay Count', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['CardPayType'], 'label' => 'Card Pay Type', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['SettleStatus'], 'label' => 'Settle Status', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['SettleId'], 'label' => 'Settle Id', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['PayNoIssueDate'], 'label' => 'Pay No Issue Date', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['BuyerComments'], 'label' => 'Buyer Comments', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['AgeConfirm'], 'label' => 'Age Confirm', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['QuantityDetail'], 'label' => 'Quantity Detail', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['PayCharge'], 'label' => 'Pay Charge', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['GiftWrapCharge'], 'label' => 'Gift Wrap Charge', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['UsePoint'], 'label' => 'Use Point', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['GetPoint'], 'label' => 'Get Point', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ShippingCouponDiscount'], 'label' => 'Shipping Coupon Discount', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ItemCouponDiscount'], 'label' => 'Item Coupon Discount', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['PayStatus'], 'label' => 'Pay Status', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['TotalMallCouponDiscount'], 'label' => 'Total Mall Coupon Discount', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['Id'], 'label' => 'ID', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['GetPointChargedToStore'], 'label' => 'Get Point Charged To Store', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['CancelReason'], 'label' => 'Cancel Reason', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['CancelReasonDetail'], 'label' => 'Cancel Reason Detail', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['IsMultiShip'], 'label' => 'Is Multi Ship', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['MultiShipId'], 'label' => 'Multi Ship Id', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ShipStatus'], 'label' => 'Ship Status', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ShipCompanyCode'], 'label' => 'Ship Company Code', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['ShipInvoiceNumberEmptyReason'], 'label' => 'Ship Invoice Number Empty Reason', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['CombinedPayMethod'], 'label' => 'Combined Pay Method', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['CombinedPayMethodName'], 'label' => 'Combined Pay Method Name', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['CombinedPayKind'], 'label' => 'Combined Pay Kind', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['IsApplePay'], 'label' => 'Is Apple Pay', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['Adjustments'], 'label' => 'Adjustments', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['PayMethodAmount'], 'label' => 'Pay Method Amount', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['CombinedPayMethodAmount'], 'label' => 'Combined Pay Method Amount', ], [ 'type' => 'input', 'name' => 'other_material', 'value' => $product_raw_data['DeviceType'], 'label' => 'Device Type', ], ]; break; case '18': # soupang // dd($product_raw_data); $fields = [ [ 'type' => 'input', 'name' => 'invoice_no', 'value' => $product_raw_data['Invoice 1'], 'label' => 'External Invoice No.', ], [ 'type' => 'input', 'name' => 'payment_location', 'value' => $product_raw_data['Payment location'], 'label' => 'Payment location', ], [ 'type' => 'input', 'name' => 'shipping_cost_form', 'value' => $product_raw_data['Shipping fee classification'], 'label' => 'Shipping cost form', ], [ 'type' => 'input', 'name' => 'shipping_cost_bundle_number', 'value' => $product_raw_data['Bundle delivery number'], 'label' => 'Shipping cost bundle number', ], [ 'type' => 'input', 'name' => 'funnel', 'value' => isset($product_raw_data['Additional message from the buyer'])??null, 'label' => 'funnel', ], [ 'type' => 'input', 'name' => 'individual_customs_clearance_code', 'value' => $product_raw_data['Personal Customs Clearance Code (PCCC)'], 'label' => 'Individual customs clearance code', ], [ 'type' => 'input', 'name' => 'shipping_deadline', 'value' => $product_raw_data['Expected shipment date upon order'], 'label' => 'Shipping deadline', ], [ 'type' => 'input', 'name' => 'Split-delivery-Y/N', 'value' => $product_raw_data['Split delivery Y/N'], 'label' => 'Split delivery Y/N', ], [ 'type' => 'input', 'name' => 'Expected-shipment-date-for-split-delivery', 'value' => $product_raw_data['Expected shipment date for split delivery'], 'label' => 'Expected shipment date for split delivery', ], [ 'type' => 'input', 'name' => 'Expected-shipment-date-upon-order', 'value' => $product_raw_data['Expected shipment date upon order'], 'label' => 'Expected shipment date upon order', ], [ 'type' => 'input', 'name' => 'Purchase_confirm_date', 'value' => $product_raw_data['Purchase confirm date'], 'label' => 'Purchase confirm date', ], [ 'type' => 'input', 'name' => 'Others', 'value' => $product_raw_data['Others'], 'label' => 'Others', ], [ 'type' => 'input', 'name' => 'Barcode', 'value' => $product_raw_data['Bar code'], 'label' => 'Bar code', ], [ 'type' => 'input', 'name' => 'additional1', 'value' => $product_raw_data['Additional message per product'], 'label' => 'Additional message per product', ], [ 'type' => 'input', 'name' => 'Additional2', 'value' => $product_raw_data['Additional message from the buyer'], 'label' => 'Additional message from the buyer', ], [ 'type' => 'input', 'name' => 'Additional3', 'value' => $product_raw_data['Expected delivery completion date'], 'label' => 'Expected delivery completion date', ], ]; break; case '19': $bundle = []; $shipping_cost_bundle = []; foreach ($order->products as $product){ array_push($bundle,$product->code); array_push($shipping_cost_bundle,$product->raw_data['배송번호']); } $fields = [ [ 'type' => 'input', 'name' => 'product_order_number', 'value' => implode("|",$bundle), 'label' => 'Product order number', ], [ 'type' => 'input', 'name' => 'purchase_date', 'value' => $product_raw_data['발주일'], 'label' => 'Purchase Date', ], [ 'type' => 'input', 'name' => 'market_own_item_code', 'value' => $product_raw_data['마켓 자체 품목 코드'], 'label' => 'Market own item code', ], [ 'type' => 'input', 'name' => 'expected_delivery_time', 'value' => $product_raw_data['희망배송시간'], 'label' => 'Expected delivery time', ], [ 'type' => 'input', 'name' => 'Expected delivery date', 'value' => $product_raw_data['희망배송일'], 'label' => 'expected_delivery_date', ], [ 'type' => 'input', 'name' => 'delivery_waiting_days', 'value' => $product_raw_data['배송대기일'], 'label' => 'Delivery waiting days', ], [ 'type' => 'input', 'name' => 'delivery_type', 'value' => $product_raw_data['배송구분'], 'label' => 'Delivery Type', ], [ 'type' => 'input', 'name' => 'shipping_cost_bundle_number', 'value' => implode("|",$shipping_cost_bundle), 'label' => 'Shipping cost bundle number', ], [ 'type' => 'input', 'name' => 'payment_type', 'value' => $product_raw_data['결제구분'], 'label' => 'Payment Type', ], [ 'type' => 'input', 'name' => 'additional_discount_by_product_details', 'value' => $product_raw_data['상품별 추가할인 상세'], 'label' => 'Additional discount by product details', ], [ 'type' => 'input', 'name' => 'tax-rate', 'value' => $product_raw_data['세율(%)'], 'label' => 'tax rate(%)', ], [ 'type' => 'input', 'name' => 'inflow_path', 'value' => $product_raw_data['유입경로'], 'label' => 'inflow path', ], [ 'type' => 'input', 'name' => 'deposit_account_number', 'value' => $product_raw_data['입금 계좌번호'], 'label' => 'Deposit account number', ], [ 'type' => 'input', 'name' => 'deposit_bank', 'value' => $product_raw_data['입금은행'], 'label' => 'Deposit Bank', ], [ 'type' => 'input', 'name' => 'order_path', 'value' => $product_raw_data['주문경로'], 'label' => 'Order path', ], [ 'type' => 'input', 'name' => 'order_path-m', 'value' => $product_raw_data['주문경로(PC/모바일)'], 'label' => 'Order path (PC/mobile)', ], [ 'type' => 'input', 'name' => 'customer_sign_up_date', 'value' => $product_raw_data['주문자 가입일'], 'label' => 'Customer Sign-up date', ], [ 'type' => 'input', 'name' => 'membership_grade', 'value' => $product_raw_data['회원등급'], 'label' => 'Membership grade', ], [ 'type' => 'input', 'name' => 'customer_date_of_birth', 'value' => $product_raw_data['주문자 생년월일'], 'label' => 'Customer Date of Birth', ], [ 'type' => 'input', 'name' => 'postpaid_payment_fee', 'value' => $product_raw_data['후불결제수수료'], 'label' => 'Postpaid payment fee', ], [ 'type' => 'input', 'name' => 'payment_company', 'value' => $product_raw_data['결제업체'], 'label' => 'Payment company', ], [ 'type' => 'input', 'name' => 'payment_guide', 'value' => $product_raw_data['결제안내'], 'label' => 'Payment Guide', ], [ 'type' => 'input', 'name' => 'payment_number', 'value' => $product_raw_data['결제번호'], 'label' => 'Payment Number', ], ]; break; case '20': # amazon fba $is_business_order = null; if (isset($product_raw_data['is_business_order'])) { $is_business_order = $product_raw_data['is_business_order'] ? 1 : 0; } $fields = [ [ 'type' => 'input', 'input_type' => 'date', 'name' => 'purchase_date', 'value' => $product_raw_data['purchase-date'], 'label' => 'Purchase Date', ], [ 'type' => 'input', 'name' => 'ship_service_level', 'value' => $product_raw_data['ship-service-level'], 'label' => __('cms.order.others_section.amazon.ship_service_level'), ], [ 'type' => 'input', 'name' => 'product_order_item', 'value' => $product_raw_data['order-item-id'], 'label' => 'Order Item ID', ], [ 'type' => 'input', 'name' => 'ship-city', 'value' => $product_raw_data['ship-city'], 'label' => 'Ship City', ], [ 'type' => 'input', 'name' => 'ship_state', 'value' => $product_raw_data['ship-state'], 'label' => 'Ship State', ], ]; break; default: $fields = []; break; } @endphp
@php $statuses_options = []; for ($i=1; $i < 8; $i++) { $statuses_options[$i] = __('cms.order.status.' . $i); } $fields = [ [ 'type' => 'select', 'name' => 'status', 'label' => __('cms.status'), 'value' => $order->status, 'options' => $statuses_options ], [ 'type' => 'textarea', 'name' => 'status_remarks', 'label' => __('cms.order.status_remarks'), 'value' => $order->status_remarks ], ]; @endphp
Dispatch Note @foreach ($order->attachments->sortByDesc('created_at') as $attachment) @php if($attachment->type ==0){ @endphp @php $file_url = $attachment->file_url; @endphp
{{ basename($file_url) }}
{{ $attachment->created_at }}
@php $file_type = 'image'; if (strpos(strtolower($file_url), '.pdf') !== false ) { $file_type = 'pdf'; } @endphp
@php } @endphp @endforeach {{ Form::open(['method' => 'POST', 'route' => ['cms.orders.delete_attachment', $order, 'attachment_id'], 'class' => 'form-delete-attachment']) }} {{ Form::close() }}
Upload Dispatch Note
{{ Form::open(['route' => ['cms.orders.upload_attachment', $order->id], 'method' => 'POST', 'id' => 'form_import_1', 'files' => true]) }} {{ Form::fileUpload('attachments', null, [ 'multiple' => true, 'type' => 'document', 'accept' => '.pdf, .jpg, .jpeg, .png, .tiff', ]) }}
{{ Form::close() }}
Delivery Note @foreach ($order->attachments->sortByDesc('created_at') as $attachment) @php if($attachment->type ==2){ @endphp @php $file_url = $attachment->file_url; @endphp
{{ basename($file_url) }}
{{ $attachment->created_at }}
@php $file_type = 'image'; if (strpos(strtolower($file_url), '.pdf') !== false ) { $file_type = 'pdf'; } @endphp
@php } @endphp @endforeach {{ Form::open(['method' => 'POST', 'route' => ['cms.orders.delete_attachment', $order, 'attachment_id'], 'class' => 'form-delete-attachment']) }} {{ Form::close() }}
Upload Delivery Note
{{ Form::open(['route' => ['cms.orders.upload_attachment', $order->id], 'method' => 'POST', 'id' => 'form_import_2', 'files' => true]) }} {{ Form::fileUpload('attachments3', null, [ 'multiple' => true, 'type' => 'document', 'accept' => '.pdf, .jpg, .jpeg, .png, .tiff', ]) }}
{{ Form::close() }}
@php if ($order->status == 7){ @endphp
Returned Tracking
@php $fields = [ [ 'type' => 'input', 'name' => 'tracking_number', 'label' => 'Returned Tracking No. / HAWB No.', 'value' => $order->returned_tracking_no == null ?'N/A':$order->returned_tracking_no ], ]; @endphp
{{ Form::close() }} {{ Form::open(['method' => 'POST', 'route' => ['cms.orders.upload_attachment', $order, 'attachment_id'], 'class' => 'form-update-tracking']) }} {{ Form::close() }}
@foreach ($order->attachments->sortByDesc('created_at') as $attachment) @php if($attachment->type ==1){ @endphp @php $file_url = $attachment->file_url; @endphp
{{ basename($file_url) }}
{{ $attachment->created_at }}
@php $file_type = 'image'; if (strpos(strtolower($file_url), '.pdf') !== false ) { $file_type = 'pdf'; } @endphp
@php } @endphp @endforeach Upload Returned Images
{{ Form::open(['route' => ['cms.orders.upload_attachment', $order->id], 'method' => 'POST', 'id' => 'form_import', 'files' => true]) }} {{ Form::fileUpload('attachments2', null, [ 'multiple' => true, 'type' => 'document', 'accept' => '.pdf, .jpg, .jpeg, .png, .tiff', ]) }}
{{ Form::close() }}
@php } @endphp
{{ __('cms.last_updated') }}

{{ __('cms.by') . ' ' . $order->updated_by_user->name}}

{{ $order->updated_at }}
Date
{{ __('cms.order.order_date')}}: {{ $order->order_datetime }}
{{ __('cms.order.import_date')}}: {{ $order->created_at }}

Time log
@php $fields = [ [ 'type' => 'input', 'name' => 'orderer_id', 'value' => $order->orderer_id, 'label' => __('cms.order.buyer_id'), ], [ 'type' => 'input', 'name' => 'orderer_name', 'value' => $order->orderer_name, 'label' => __('cms.order.buyer_name'), ], [ 'type' => 'input', 'name' => 'orderer_phone_number', 'value' => $order->orderer_phone_number, 'label' => __('cms.order.buyer_phone'), ], // [ // 'type' => 'input', // 'name' => 'orderer_mobile_number', // 'value' => $order->orderer_mobile_number, //FIX: no show this?? milo: added it back when added GA platform // 'label' => __('cms.order.buyer_mobile'), // ], [ 'type' => 'input', 'name' => 'orderer_email', 'value' => $order->orderer_email, 'label' => __('cms.order.buyer_email'), ], [ 'type' => 'input', 'name' => 'receiver_social_number', 'value' => $order->receiver_social_number, //FIX: buyer social number??? 'label' => __('cms.order.buyer_social_no'), ], //FIX: only hv receiver_social_number but not orderder social number in DB wo milo: they only have a field 'Social Security Number', I mapped it to receiver_social_number ]; @endphp
{{ __('cms.order.payment_info') }}
@php $fields = [ [ 'type' => 'input', 'name' => 'payment_datetime', 'value' => $order->payment_datetime, 'label' => __('cms.order.payment_date'), ], [ 'type' => 'input', 'input_type' => 'date', 'name' => 'payment_method', 'value' => $order->payment_method, 'label' => __('cms.order.payment_method'), ], [ 'type' => 'input', 'name' => 'billing_name', 'value' => $order->billing_name, 'label' => __('cms.order.billing_name'), ], [ 'type' => 'input', 'name' => 'billing_address', 'value' => $order->billing_address, 'label' => __('cms.order.billing_address'), ], [ 'type' => 'input', 'name' => 'billing_contact', 'value' => $order->billing_contact, 'label' => __('cms.order.billing_contact'), ], [ 'type' => 'input', 'name' => 'payment_reference_number', 'value' => $order->payment_reference_number, 'label' => __('cms.order.payment_reference_number'), ], ]; @endphp
{{ __('cms.status_log.invoice_number') }} {{ $order->invoice_number }}
{{ __('cms.created_by') }}
{{ $order->created_by_user->name }}
{{ __('cms.status_log.import_date') }}
{{ $order->created_at }}
{{ __('cms.status_log.order_date') }}
{{ $order->order_datetime }}
{{ __('cms.status_log.date') }} {{ __('cms.status_log.status') }} {{ __('cms.status_log.username') }}
@endsection