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

{{ $lang->shop_order_detail }}

@php $shp_unrv = Context::get('unreviewed_items') ?: []; @endphp @if (count($shp_unrv))
{{ Context::get('review') ? '구매확정 완료! 리뷰를 작성해보세요' : '아직 리뷰를 작성하지 않은 상품이 있어요' }} 리뷰를 남기면 다른 구매자에게 큰 도움이 됩니다.
@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 (['결제 완료', '배송 준비', '배송 중', '배송 완료', '구매확정'] as $shp_si => $shp_sl)
@if ($shp_si < $shp_step_idx) @endif {{ $shp_sl }}
@endforeach
@endif
{{ $lang->shop_order_code }}
{{ $order->order_code }}
{{ $lang->reservation_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' ? '배송이 완료되었어요' : $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