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

{{ $lang->shop_my_orders }}

@if ($is_member)
@if (!empty($my_grade))
{{ $lang->shop_grade }}{{ $my_grade->title }} {{ sprintf($lang->shop_grade_total, shop_money_base($my_grade->total_spend)) }}
@endif
{{ $lang->shop_credit_balance }}{{ shop_money_base($credit_balance) }}
@php $shp_status_counts = []; foreach ($orders ?? [] as $shp_o) { $shp_k = $shp_o->display_status ?? $shp_o->status; $shp_status_counts[$shp_k] = ($shp_status_counts[$shp_k] ?? 0) + 1; } @endphp
@if (empty($orders))

{{ $lang->shop_no_orders }}

@else @if (count($shp_status_counts) > 1)
@foreach ($shp_status_counts as $shp_sk => $shp_sn) @endforeach
@endif @foreach ($orders as $o) @php $shp_ds = $o->display_status ?? $o->status; @endphp @if ($shp_ds === 'pending') @endif @endforeach
{{ $lang->shop_order_code }}{{ $lang->shop_total }}{{ $lang->shop_status }}
{{ $o->order_code }}
{{ zdate($o->regdate, 'Y.m.d H:i') }}
{{ shop_money_in($o->payment_price, $o->currency ?? 'KRW') }} {{ $lang->{'shop_status_' . $shp_ds} ?? $shp_ds }} {{ $lang->shop_view }}

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

@if (!empty($o->resume_pay_url)) {{ $lang->shop_resume_pay }} @else {{ $lang->shop_pending_expired }} @endif
@endif
@else

{{ $lang->shop_guest_lookup_help }}

@endif