@version(2) @load('css/shop.css')

{{ $lang->shop_order_detail }}

@if ($order->status === 'pending') @php $shp_deadline = Context::get('pending_deadline'); $shp_resume = Context::get('resume_pay_url'); @endphp

{{ $shp_deadline ? sprintf($lang->shop_pending_notice, zdate($shp_deadline, 'Y.m.d A g:i')) : $lang->shop_pending_notice_nodate }}

@if ($shp_resume) {{ $lang->shop_resume_pay }} @else

{{ $lang->shop_pending_expired }}

@endif
@endif @php $shp_unrv = Context::get('unreviewed_items') ?: []; @endphp @if (count($shp_unrv))
{{ Context::get('review') ? $lang->shop_review_prompt_confirmed : $lang->shop_review_prompt_pending }} {{ $lang->shop_review_prompt_note }}
@foreach ($shp_unrv as $shp_unrv_srl => $shp_unrv_name) @endforeach
{{-- 상품 상세로 보내지 않고 이 자리에서 바로 등록한다 --}} @foreach ($shp_unrv as $shp_unrv_srl => $shp_unrv_name) @endforeach
@endif @php $shp_ds_pre = Context::get('display_status') ?: $order->status; $shp_step_keys = ['paid', 'preparing', 'shipping', 'delivered', 'confirmed']; $shp_step_idx = array_search($shp_ds_pre, $shp_step_keys); @endphp @if ($shp_step_idx !== false)
@foreach ([$lang->shop_status_paid, $lang->shop_status_preparing, $lang->shop_status_shipping, $lang->shop_status_delivered, $lang->shop_status_confirmed] as $shp_si => $shp_sl)
@if ($shp_si < $shp_step_idx) @endif {{ $shp_sl }}
@endforeach
@endif
{{ $lang->shop_order_code }}
{{ $order->order_code }}
{{ $lang->shop_status }}
@php $shp_ds = Context::get('display_status') ?: $order->status; @endphp
{{ $lang->{'shop_status_' . $shp_ds} ?? $shp_ds }}
{{ $lang->shop_orderer }}
{{ $order->orderer_name }}
{{ $lang->shop_item_total }}
{{ shop_money_in($order->item_total, $order->currency ?? 'KRW') }}
@if ($order->discount_total > 0)
{{ $lang->shop_discount }}
-{{ shop_money_in($order->discount_total, $order->currency ?? 'KRW') }}
@endif @if (!empty($order->credit_used) && $order->credit_used > 0)
{{ $lang->shop_credit }}
-{{ shop_money_in($order->credit_used, $order->currency ?? 'KRW') }}
@endif
{{ $lang->shop_ship_fee }}
{{ $order->delivery_fee_total > 0 ? shop_money_in($order->delivery_fee_total, $order->currency ?? 'KRW') : $lang->shop_ship_free }}
{{ $lang->shop_total }}
{{ shop_money_in($order->payment_price, $order->currency ?? 'KRW') }}
@foreach ($order_items as $oi) @endforeach
{{ $lang->shop_item }}{{ $lang->shop_qty }}{{ $lang->shop_subtotal }}
{{ $oi->item_name }}@if (!empty($oi->option_name))
{{ $oi->option_name }}@endif
{{ $oi->qty }} {{ shop_money_in($oi->subtotal, $order->currency ?? 'KRW') }}
@foreach ($order_sellers as $os) @if (!empty($os->shipping_invoice)) @php $shp_tk = Context::get('tracking_info'); $shp_tk_details = ($shp_tk && is_array($shp_tk->details ?? null)) ? array_reverse($shp_tk->details) : []; @endphp
@if ($shp_tk)
{{ $shp_tk->complete === 'Y' ? $lang->shop_delivered_note : $shp_tk->status_name }} @if (count($shp_tk_details)){{ $shp_tk_details[0]['time'] ?? '' }}@endif
@endif
{{ $lang->shop_shipping_info }}{{ $os->shipping_company }} {{ $os->shipping_invoice }}
@if (count($shp_tk_details))
    @foreach ($shp_tk_details as $shp_ti => $shp_td)
  1. {{ $shp_td['where'] ?: '-' }} {{ $shp_td['kind'] }} {{ $shp_td['time'] }}
  2. @endforeach
@if (count($shp_tk_details) > 4) @endif @endif
@endif @endforeach @php $shp_can_confirm = false; foreach ($order_sellers as $shp_os_c) { if (($shp_os_c->status ?? '') === 'delivered') { $shp_can_confirm = true; } } @endphp @if ($order->status === 'paid' && $shp_can_confirm)
@if ($order->member_srl == 0) @endif
@endif @php $shp_claim_type = ''; $shp_claim_label = ''; if ($order->status === 'pending' || $shp_ds === 'paid') { $shp_claim_type = 'cancel'; $shp_claim_label = $lang->shop_cancel_order; } elseif ($shp_ds === 'preparing') { $shp_claim_type = 'cancel'; $shp_claim_label = $lang->shop_request_cancel; } elseif ($shp_ds === 'shipping' || $shp_ds === 'delivered') { $shp_claim_type = 'return'; $shp_claim_label = $lang->shop_request_return; } @endphp @if ($shp_claim_type !== '')
@if ($order->member_srl == 0) @endif
@endif