@version(2) @load('css/shop.css')
@include('_currency') @php $shp_images = []; if (!empty($item->images)) { $shp_decoded = json_decode($item->images, true); if (is_array($shp_decoded)) { $shp_images = array_values(array_filter($shp_decoded, 'is_string')); } } if (!count($shp_images) && !empty($item->thumb)) { $shp_images = [$item->thumb]; } $shp_main_image = $shp_images[0] ?? ''; $shp_thumb_style = $shp_main_image !== '' ? "background-image:url('" . $shp_main_image . "');" : ''; $shp_base_soldout = ($item->use_stock ?? 'Y') === 'Y' && (int)$item->stock <= 0; $shp_basic_opts = []; $shp_extra_opts = []; foreach ($options ?? [] as $shp_o) { if (($shp_o->option_type ?? 'basic') === 'extra') { $shp_extra_opts[] = $shp_o; } else { $shp_basic_opts[] = $shp_o; } } $shp_has_basic = count($shp_basic_opts) > 0; @endphp @php $shp_sticky = (($shop_config->item_sticky ?? 'N') === 'Y'); @endphp
@include('_buy')
@if (!empty($item->content)){!! $item->content !!}@endif

{{ $lang->shop_reviews ?? '리뷰' }} {{ count($reviews ?? []) }}

@if (!count($reviews ?? []))

{{ $lang->shop_no_reviews ?? '아직 등록된 리뷰가 없습니다.' }}

@else
    @foreach ($reviews as $rv)
  • @foreach ([1, 2, 3, 4, 5] as $shp_s) @endforeach {{ $rv->nick_name }} {{ zdate($rv->regdate, 'Y.m.d') }} @if (!empty($is_shop_admin) || ((!empty($is_logged)) && (int)($logged_info->member_srl ?? 0) === (int)$rv->member_srl))
    @endif

    {{ $rv->content }}

    @php $shp_rv_media = json_decode((string)($rv->images ?? ''), true); @endphp @if (is_array($shp_rv_media) && count($shp_rv_media))
    @foreach ($shp_rv_media as $shp_rm) @if (preg_match('/\.(mp4|mov|webm)$/i', $shp_rm)) @else @endif @endforeach
    @endif @if (!empty($rv->reply))
    {{ $lang->shop_seller_reply ?? '판매자 답변' }}

    {{ $rv->reply }}

    @endif
  • @endforeach
@endif @if (!empty($can_review)) @php $shp_rc_text = (int)($shop_config->review_credit_text ?? 0); $shp_rc_photo = (int)($shop_config->review_credit_photo ?? 0); @endphp @else

{{ $lang->shop_review_buyer_note ?? '리뷰는 이 상품을 구매한 회원만 작성할 수 있습니다.' }}

@endif

{{ $lang->shop_inquiries ?? '문의' }} {{ count($inquiries ?? []) }}

@if (!count($inquiries ?? []))

{{ $lang->shop_no_inquiries ?? '아직 등록된 문의가 없습니다.' }}

@else
    @foreach ($inquiries as $iq) @php $shp_iq_mine = !empty($is_shop_admin) || ((!empty($is_logged)) && (int)($logged_info->member_srl ?? 0) === (int)$iq->member_srl); $shp_iq_visible = $iq->is_secret !== 'Y' || $shp_iq_mine; @endphp
  • {{ $iq->nick_name }} @if ($iq->is_secret === 'Y'){{ $lang->shop_secret_inquiry ?? '비밀글' }}@endif {{ zdate($iq->regdate, 'Y.m.d') }} @if ($shp_iq_mine)
    @endif

    {{ $shp_iq_visible ? $iq->content : ($lang->shop_secret_body ?? '비밀글입니다.') }}

    @if ($shp_iq_visible && !empty($iq->answer))
    {{ $lang->shop_seller_reply ?? '판매자 답변' }}

    {{ $iq->answer }}

    @endif
  • @endforeach
@endif @if (!empty($is_logged)) @else

{{ $lang->shop_inquiry_login_note ?? '문의는 로그인 후 작성할 수 있습니다.' }}

@endif
@if ($shp_sticky) @endif