@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) }}
@if (empty($orders))

{{ $lang->shop_no_orders }}

@else @foreach ($orders as $o) @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') }} @php $shp_ds = $o->display_status ?? $o->status; @endphp{{ $lang->{'shop_status_' . $shp_ds} ?? $shp_ds }} {{ $lang->shop_view }}@if ($shp_ds === 'confirmed' && !empty($o->needs_review)) {{ $lang->shop_write_review }}@endif

{{ !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 @if (!empty($credit_logs))

{{ $lang->shop_credit_history }}

@foreach ($credit_logs as $cl) @endforeach
{{ $lang->shop_credit_date }}{{ $lang->shop_credit_change }}{{ $lang->shop_credit_balance }}{{ $lang->shop_credit_type }}
{{ zdate($cl->regdate, 'Y.m.d H:i') }} {{ $cl->amount >= 0 ? '+' : '' }}{{ number_format($cl->amount) }} {{ number_format($cl->balance_after) }} {{ $lang->{'shop_credit_type_' . $cl->type} ?? $cl->type }}
@endif @else

{{ $lang->shop_guest_lookup_help }}

@endif