@props([ 'order', 'editing' => '0' ]) @php $product_raw_data = $order->products->first()->raw_data; $ecommerce = 0; if($order->platform_id === 8){ $ecommerce = round($order->total_amount - $product_raw_data['정산예정금액']??0,2); }else{ $ecommerce = $order->ecommerce_fee; } $fields = [ [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'ecommerce_fee', 'value' => $ecommerce, 'label' => 'E-commerce handling charges', 'required' => '1' ], [ 'type' => 'input', 'input_type' => 'amount', 'name' => 'vat_payable', 'value' => $order->vat_payable, 'label' => 'VAT Payable', 'required' => '1' ], [ 'type' => 'input', 'name' => 'shipping_fee_paid_to_courier', 'value' => $order->shipping_fee_paid_to_courier, 'label' => 'Shipping Fee Paid to Courier', 'required' => '1' ], ]; @endphp

Total KRW Production Cost*

{{number_format($order->total_krw_cost,2)}}

@foreach($order->products as $product) @endforeach
SKU Product Name Quantity KRW Production Cost Sub Total KRW Production Cost
{{ $product->barcode }} {{ $product->product->name_en }} {{ $product->quantity }} {{ number_format($product->total_krw_cost/$product->quantity , 2) }} {{ number_format($product->total_krw_cost, 2) }}

Total JPY Production Cost*

{{number_format($order->total_jpy_cost,2)}}

@foreach($order->products as $product) @endforeach
SKU Product Name Quantity JPY Production Cost Sub Total JPY Production Cost
{{ $product->barcode }} {{ $product->product->name_en }} {{ $product->quantity }} {{ number_format($product->total_jpy_cost/$product->quantity, 2) }} {{ number_format($product->total_jpy_cost, 2) }}

Total USD Production Cost*

{{number_format($order->total_usd_cost,2)}}

@foreach($order->products as $product) @endforeach
SKU Product Name Quantity USD Production Cost Sub Total USD Production Cost
{{ $product->barcode }} {{ $product->product->name_en }} {{ $product->quantity }} {{ number_format($product->total_usd_cost/$product->quantity, 2) }} {{ number_format($product->total_usd_cost,2) }}